Mercurial > code > home > repos > homeauto
view 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 |
line wrap: on
line source
# facing the receiver board, # pins: 3v3 | (cs) | D15 | gnd esphome: name: rf_switch_desk platform: esp32 board: lolin32 logger: baud_rate: 115200 level: INFO wifi: networks: - ssid: !secret wifi_ssid password: !secret wifi_password ota: mqtt: broker: "mqtt2.bigasterisk.com" port: 1883 username: "" password: "" light: - platform: status_led id: "status_out" pin: 2 remote_receiver: - id: rf_in pin: number: GPIO15 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] - light.turn_on: id: status_out flash_length: 30ms - mqtt.publish_json: topic: rf_switch_desk/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);