Master bedroom sleep no longer controls entire second floor lights

This commit is contained in:
2024-05-15 17:33:22 -04:00
parent c8cb6f6824
commit d29acd787b

View File

@@ -147,17 +147,17 @@ script:
alias: 'Master Bedroom Sleep' alias: 'Master Bedroom Sleep'
mode: restart mode: restart
sequence: sequence:
- wait_template: "{{ is_state('light.master_bedroom_lights','off') }}"
timeout:
minutes: 60
continue_on_timeout: true
- if: - if:
- condition: template - condition: template
value_template: "{{ is_state('input_boolean.give_me_darkness','on') and is_state('input_boolean.goodnight','off') }}" value_template: "{{ is_state('input_boolean.give_me_darkness','on') and is_state('input_boolean.goodnight','off') }}"
then: then:
- service: script.turn_on - service: light.turn_off
target: target:
entity_id: script.goodnight_on_second_floor entity_id: light.master_bedroom_lights
- wait_template: "{{ is_state('light.master_bedroom_lights','off') }}"
timeout:
minutes: 60
continue_on_timeout: true
- service: switch.turn_on - service: switch.turn_on
target: target:
entity_id: switch.adaptive_lighting_master_bedroom entity_id: switch.adaptive_lighting_master_bedroom