Mercurial > code > home > repos > homeauto
comparison espNode/rf_switch_desk.yaml @ 1737:c480732442ec
reformat
author | drewp@bigasterisk.com |
---|---|
date | Fri, 01 Sep 2023 17:10:47 -0700 |
parents | 250f4c27d56f |
children | 28a3e35bc23f |
comparison
equal
deleted
inserted
replaced
1736:66eabe163dd4 | 1737:c480732442ec |
---|---|
1 # facing the receiver board, | 1 # facing the receiver board, |
2 # pins: 3v3 | (cs) | D15 | gnd | 2 # pins: 3v3 | (cs) | D15 | gnd |
3 | |
4 | 3 |
5 esphome: | 4 esphome: |
6 name: rf_switch_desk | 5 name: rf_switch_desk |
7 platform: esp32 | 6 platform: esp32 |
8 board: lolin32 | 7 board: lolin32 |
9 | 8 |
10 | |
11 logger: | 9 logger: |
12 baud_rate: 115200 | 10 baud_rate: 115200 |
13 level: INFO | 11 level: INFO |
14 | 12 |
15 | |
16 wifi: | 13 wifi: |
17 networks: | 14 networks: |
18 - ssid: !secret wifi_ssid | 15 - ssid: !secret wifi_ssid |
19 password: !secret wifi_password | 16 password: !secret wifi_password |
20 | |
21 | 17 |
22 ota: | 18 ota: |
23 | |
24 | 19 |
25 mqtt: | 20 mqtt: |
26 broker: '10.2.0.1' | 21 broker: '10.2.0.1' |
27 port: 1883 | 22 port: 1883 |
28 username: '' | 23 username: "" |
29 password: '' | 24 password: "" |
30 | |
31 | 25 |
32 remote_receiver: | 26 remote_receiver: |
33 - id: rf_in | 27 - id: rf_in |
34 pin: | 28 pin: |
35 number: GPIO15 | 29 number: GPIO15 |
37 filter: 250us | 31 filter: 250us |
38 idle: 8ms | 32 idle: 8ms |
39 dump: rc_switch | 33 dump: rc_switch |
40 on_rc_switch: | 34 on_rc_switch: |
41 then: | 35 then: |
42 # - logger.log: | 36 # - logger.log: |
43 # level: INFO | 37 # level: INFO |
44 # tag: out | 38 # tag: out |
45 # format: "RF read; proto %d; code %08llx" | 39 # format: "RF read; proto %d; code %08llx" |
46 # args: [x.protocol, x.code] | 40 # args: [x.protocol, x.code] |
47 - mqtt.publish_json: | 41 - mqtt.publish_json: |
48 topic: rf_switch_desk/rf_received | 42 topic: rf_switch_desk/rf_received |
49 payload: !lambda |- | 43 payload: !lambda |- |
50 root["protocol"] = x.protocol; | 44 root["protocol"] = x.protocol; |
51 root["code0"] = static_cast<unsigned long>(x.code >> 32); | 45 root["code0"] = static_cast<unsigned long>(x.code >> 32); |