Mercurial > code > home > repos > homeauto
comparison espNode/rf_switch_desk.yaml @ 1747:e9f3c2317cf8
flicker status light when rf comes
author | drewp@bigasterisk.com |
---|---|
date | Sat, 30 Dec 2023 18:46:42 -0800 |
parents | 28a3e35bc23f |
children |
comparison
equal
deleted
inserted
replaced
1746:3d69222680c8 | 1747:e9f3c2317cf8 |
---|---|
21 broker: "mqtt2.bigasterisk.com" | 21 broker: "mqtt2.bigasterisk.com" |
22 port: 1883 | 22 port: 1883 |
23 username: "" | 23 username: "" |
24 password: "" | 24 password: "" |
25 | 25 |
26 light: | |
27 - platform: status_led | |
28 id: "status_out" | |
29 pin: 2 | |
30 | |
26 remote_receiver: | 31 remote_receiver: |
27 - id: rf_in | 32 - id: rf_in |
28 pin: | 33 pin: |
29 number: GPIO15 | 34 number: GPIO15 |
30 tolerance: 20% | 35 tolerance: 20% |
36 # - logger.log: | 41 # - logger.log: |
37 # level: INFO | 42 # level: INFO |
38 # tag: out | 43 # tag: out |
39 # format: "RF read; proto %d; code %08llx" | 44 # format: "RF read; proto %d; code %08llx" |
40 # args: [x.protocol, x.code] | 45 # args: [x.protocol, x.code] |
46 - light.turn_on: | |
47 id: status_out | |
48 flash_length: 30ms | |
41 - mqtt.publish_json: | 49 - mqtt.publish_json: |
42 topic: rf_switch_desk/rf_received | 50 topic: rf_switch_desk/rf_received |
43 payload: !lambda |- | 51 payload: !lambda |- |
44 root["protocol"] = x.protocol; | 52 root["protocol"] = x.protocol; |
45 root["code0"] = static_cast<unsigned long>(x.code >> 32); | 53 root["code0"] = static_cast<unsigned long>(x.code >> 32); |