Skip to content

Commit

Permalink
Fix if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Jul 26, 2024
1 parent cfc83cd commit c33255f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions yeelight_light_lamp9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ binary_sensor:
on_click:
then:
- if:
condition:
light.is_off: bedside_light
then:
light.turn_on:
id: bedside_light
brightness: 1.0
else:
light.turn_off: bedside_light
condition:
light.is_off: bedside_light
then:
light.turn_on:
id: bedside_light
brightness: 1.0
else:
light.turn_off: bedside_light
on_press:
then:
- if:
Expand Down

0 comments on commit c33255f

Please sign in to comment.