Skip to content

Commit

Permalink
add led
Browse files Browse the repository at this point in the history
Add led state to be controlled by switch or button
  • Loading branch information
tarontop authored Aug 28, 2023
1 parent 34d9bf2 commit b9b3136
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion athom-mini-switch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ output:

light:
- platform: status_led
id: led
name: "${friendly_name} Blue LED"
disabled_by_default: true
pin:
Expand Down Expand Up @@ -81,7 +82,7 @@ binary_sensor:
mode: INPUT_PULLUP
on_state:
- light.toggle: mini_relay

- light.toggle: led
on_multi_click:
- timing:
- ON for at most 0.5s
Expand Down Expand Up @@ -109,6 +110,7 @@ binary_sensor:
- OFF for at least 0.2s
then:
- light.toggle: mini_relay
- light.toggle: led
- timing:
- ON for at least 4s
then:
Expand Down

0 comments on commit b9b3136

Please sign in to comment.