Use bedtime mode instead of night mode for master bedroom sleep switch
Fix
This commit is contained in:
@ -99,6 +99,10 @@ script:
|
|||||||
- service: button.press
|
- service: button.press
|
||||||
target:
|
target:
|
||||||
entity_id: button.master_bedroom_day_mode
|
entity_id: button.master_bedroom_day_mode
|
||||||
|
else:
|
||||||
|
- service: button.press
|
||||||
|
target:
|
||||||
|
entity_id: button.master_bedroom_night_mode
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: switch.master_bedroom_echo_dot_do_not_disturb_switch
|
entity_id: switch.master_bedroom_echo_dot_do_not_disturb_switch
|
||||||
@ -171,7 +175,7 @@ script:
|
|||||||
then:
|
then:
|
||||||
- service: button.press
|
- service: button.press
|
||||||
target:
|
target:
|
||||||
entity_id: button.master_bedroom_night_mode
|
entity_id: button.master_bedroom_bedtime_mode
|
||||||
- wait_template: "{{ is_state('light.master_bedroom_lights','off') }}"
|
- wait_template: "{{ is_state('light.master_bedroom_lights','off') }}"
|
||||||
timeout:
|
timeout:
|
||||||
minutes: 60
|
minutes: 60
|
||||||
|
Reference in New Issue
Block a user