changeset 1747:e9f3c2317cf8

flicker status light when rf comes
author drewp@bigasterisk.com
date Sat, 30 Dec 2023 18:46:42 -0800
parents 3d69222680c8
children d012c53c5ae8
files espNode/rf_switch_desk.yaml
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/espNode/rf_switch_desk.yaml	Sat Dec 30 18:45:50 2023 -0800
+++ b/espNode/rf_switch_desk.yaml	Sat Dec 30 18:46:42 2023 -0800
@@ -23,6 +23,11 @@
   username: ""
   password: ""
 
+light:
+  - platform: status_led
+    id: "status_out"
+    pin: 2
+
 remote_receiver:
   - id: rf_in
     pin:
@@ -38,6 +43,9 @@
         #            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 |-