E's bedroom switch now turns off second floor lights during the day
This commit is contained in:
@ -984,10 +984,18 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: input_boolean.emma_sleeping
|
entity_id: input_boolean.emma_sleeping
|
||||||
off_short_action:
|
off_short_action:
|
||||||
- service: script.turn_on
|
- if:
|
||||||
data: {}
|
- condition: state
|
||||||
target:
|
entity_id: binary_sensor.early_night_mode
|
||||||
entity_id: script.evening_on_second_floor
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- service: script.evening_on_second_floor
|
||||||
|
data: {}
|
||||||
|
else:
|
||||||
|
- service: light.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: light.second_floor_lights
|
||||||
- id: '1682561310614'
|
- id: '1682561310614'
|
||||||
alias: Kallen Bedroom Switch Handler
|
alias: Kallen Bedroom Switch Handler
|
||||||
description: ''
|
description: ''
|
||||||
|
Reference in New Issue
Block a user