Make it easier to activate nightlight in master bedroom
This commit is contained in:
@ -1149,10 +1149,23 @@
|
|||||||
entity_id: switch.adaptive_lighting_master_bedroom
|
entity_id: switch.adaptive_lighting_master_bedroom
|
||||||
action: switch.turn_off
|
action: switch.turn_off
|
||||||
brightness_down_short_action:
|
brightness_down_short_action:
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: light.master_bedroom_lights
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
|
- action: input_select.select_option
|
||||||
|
metadata: {}
|
||||||
|
data:
|
||||||
|
option: Nightlight
|
||||||
|
target:
|
||||||
|
entity_id: input_select.master_bedroom_scenes
|
||||||
|
else:
|
||||||
- data: {}
|
- data: {}
|
||||||
target:
|
target:
|
||||||
entity_id: switch.adaptive_lighting_master_bedroom
|
entity_id: switch.adaptive_lighting_master_bedroom
|
||||||
action: switch.turn_off
|
action: switch.turn_off
|
||||||
|
alias: Activate nightlight if lights are off, otherwise act normal
|
||||||
brightness_down_long_action:
|
brightness_down_long_action:
|
||||||
- data: {}
|
- data: {}
|
||||||
target:
|
target:
|
||||||
|
Reference in New Issue
Block a user