Smarter control of lighting conditions on arrival at home #51

This commit is contained in:
2022-10-12 17:02:10 -04:00
parent 8abf3844cf
commit e5ad88d653

View File

@@ -300,23 +300,11 @@ script:
- switch.basement_echo_dot_do_not_disturb_switch - switch.basement_echo_dot_do_not_disturb_switch
- switch.living_room_echo_dot_do_not_disturb_switch - switch.living_room_echo_dot_do_not_disturb_switch
- switch.master_bedroom_echo_dot_do_not_disturb_switch - switch.master_bedroom_echo_dot_do_not_disturb_switch
- service: light.turn_off - service: script.welcome_home
target:
area_id:
- furnace_room
- kallen_bedroom
- nursery
- master_bedroom
- upstairs_hallway
- basement_studio
- downstairs_bathroom
- upstairs_bathroom
- dining_room
- living_room
- if: - if:
- condition: sun - condition: state
after: sunset entity_id: input_boolean.early_night_mode
after_offset: -00:30 state: 'on'
then: then:
- service: light.turn_on - service: light.turn_on
target: target:
@@ -327,7 +315,7 @@ script:
- delay: - delay:
hours: 0 hours: 0
minutes: 0 minutes: 0
seconds: 5 seconds: 3
milliseconds: 0 milliseconds: 0
- service: input_select.select_option - service: input_select.select_option
target: target:
@@ -359,6 +347,34 @@ script:
- living_room - living_room
- dining_room - dining_room
- mud_room - mud_room
- service: script.welcome_home - delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: input_select.select_option
target:
entity_id:
- input_select.living_room_scenes
- input_select.tina_lamp_scenes
- input_select.mud_room_scenes
data:
option: Adaptive
- service: input_select.select_option
target:
entity_id: input_select.dining_room_lamp_scenes
data:
option: Full
- service: light.turn_off
target:
area_id:
- furnace_room
- kallen_bedroom
- nursery
- master_bedroom
- upstairs_hallway
- basement_studio
- downstairs_bathroom
- upstairs_bathroom
mode: single mode: single
icon: mdi:home-account icon: mdi:home-account