Skip to content

Commit

Permalink
Update red led to be configurable
Browse files Browse the repository at this point in the history
Instead of it just being the status_led, now you can choose which led is on when power is on
  • Loading branch information
untergeek committed Nov 3, 2024
1 parent 365ec76 commit 907756b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions template/linkind-switch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,32 @@ switch:
inverted: false
on_turn_on:
- output.turn_on:
id: green_led
id: redlight
on_turn_off:
- output.turn_off:
id: green_led
id: redlight

light:
- platform: binary
id: greenlight
internal: true
name: Green LED
output: green_led
- platform: status_led
- platform: binary
id: redlight
internal: true
name: Red LED
pin: GPIO26
output: red_led

output:
- platform: gpio
pin: GPIO14
inverted: false
id: green_led
- platform: gpio
pin: GPIO26
inverted: False
id: red_led


binary_sensor:
Expand Down

0 comments on commit 907756b

Please sign in to comment.