Changed script to automation, added toggle switch. Much cleaner UX.

This commit is contained in:
2022-12-22 14:50:10 -05:00
parent c6d5d30a02
commit ee94091856
3 changed files with 90 additions and 60 deletions

View File

@ -21,6 +21,10 @@ stop_netflix:
give_me_darkness:
alias: Give Me Darkness
sequence:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.give_me_darkness
- service: light.turn_on
data: {}
target:
@ -31,11 +35,16 @@ give_me_darkness:
entity_id:
- switch.adaptive_lighting_sleep_mode_dining_room
data: {}
- service: input_select.select_option
data:
option: Night Mode
target:
entity_id: input_select.tina_desk_scenes
- if:
- condition: state
entity_id: person.christina_stork
state: home
then:
- service: input_select.select_option
data:
option: Night Mode
target:
entity_id: input_select.tina_desk_scenes
- service: input_select.select_option
target:
entity_id: