Mercurial > code > home > repos > homeauto
changeset 803:bb3a7869b54d
some cleanup and read support
author | drewp@bigasterisk.com |
---|---|
date | Sat, 27 Mar 2021 22:18:25 -0700 |
parents | d88085f35745 |
children | 771f19d632f6 |
files | espNode/theater_blaster.yaml |
diffstat | 1 files changed, 27 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/espNode/theater_blaster.yaml Sat Mar 27 22:15:56 2021 -0700 +++ b/espNode/theater_blaster.yaml Sat Mar 27 22:18:25 2021 -0700 @@ -5,10 +5,18 @@ # MAC: 3c:71:bf:ab:6e:94 +logger: + baud_rate: 0 + level: INFO + logs: + out: INFO + wifi: ssid: !secret wifi_ssid password: !secret wifi_password use_address: 10.2.0.38 + +ota: mqtt: broker: '10.2.0.1' @@ -64,12 +72,6 @@ address: 0x4BB6 command: 0x39C6 -logger: - baud_rate: 115200 - level: DEBUG - -ota: - remote_receiver: - id: ir_in @@ -78,15 +80,25 @@ mode: INPUT inverted: True dump: nec - - id: rf_in - pin: GPIO13 - dump: all - # Settings to optimize recognition of RF devices - tolerance: 50% - filter: 250us - idle: 4ms - buffer_size: 2kb - + - id: rf_in + pin: GPIO13 + tolerance: 20% + filter: 250us + idle: 8ms + dump: rc_switch + on_rc_switch: + then: + - logger.log: + level: INFO + tag: out + format: "RF read; proto %d; code %08llx" + args: [x.protocol, x.code] + - mqtt.publish_json: + topic: theater_blaster/rf_received + payload: !lambda |- + root["protocol"] = x.protocol; + root["code0"] = static_cast<unsigned long>(x.code >> 32); + root["code1"] = static_cast<unsigned long>(x.code & 0xffff); remote_transmitter: id: ir_out pin: GPIO14