Skip to content

Commit

Permalink
Toggle LED strip on button press (Closes: #70) (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored Jan 20, 2024
1 parent 6a36225 commit 0fb796c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions yeelight_light_strip6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ logger:

api:

binary_sensor:
- platform: gpio
pin:
number: GPIO19
name: "${name} button"
on_press:
- light.toggle: light0

output:
- platform: ledc
pin: GPIO13
Expand All @@ -37,6 +45,7 @@ output:

light:
- platform: rgb
id: light0
name: "${name} rgb"
red: output_red
green: output_green
Expand Down

0 comments on commit 0fb796c

Please sign in to comment.