diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2023-04-09 21:17:59 +0400 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2023-04-09 21:17:59 +0400 |
commit | 756a33999df9255deb1c08a443a5621d94da0126 (patch) | |
tree | ed40d4465637d99a4da2a0069f18fb15d82f21d5 /custom/scripts/sleep-and-wake.yaml | |
parent | 3b67e6bbc959b5d24f12e7df1574e96085431a56 (diff) | |
download | hass-756a33999df9255deb1c08a443a5621d94da0126.tar.gz hass-756a33999df9255deb1c08a443a5621d94da0126.tar.bz2 hass-756a33999df9255deb1c08a443a5621d94da0126.tar.xz hass-756a33999df9255deb1c08a443a5621d94da0126.zip |
Fixes, multi-room sounds, motion tracking in rooms
Diffstat (limited to 'custom/scripts/sleep-and-wake.yaml')
-rw-r--r-- | custom/scripts/sleep-and-wake.yaml | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/custom/scripts/sleep-and-wake.yaml b/custom/scripts/sleep-and-wake.yaml index a71518a..c8e180d 100644 --- a/custom/scripts/sleep-and-wake.yaml +++ b/custom/scripts/sleep-and-wake.yaml @@ -42,6 +42,9 @@ sleep_and_wake: - service: switch.turn_off target: entity_id: switch.living_lights_right + - service: input_boolean.turn_on + target: + entity_id: input_boolean.mode_office_sleep - conditions: - condition: template @@ -61,6 +64,12 @@ sleep_and_wake: - service: switch.turn_off target: entity_id: switch.living_lights_right + - service: input_boolean.turn_on + target: + entity_id: + - input_boolean.mode_office_sleep + - input_boolean.mode_office_hibernate + - conditions: - condition: template @@ -78,6 +87,12 @@ sleep_and_wake: - service: wake_on_lan.send_magic_packet data: mac: "e8:6a:64:7b:5d:0a" + - service: input_boolean.turn_off + target: + entity_id: + - input_boolean.mode_office_sleep + - input_boolean.mode_office_hibernate + - conditions: - condition: template @@ -108,7 +123,10 @@ sleep_and_wake: # entity_id: switch.hall_lights_right - service: input_boolean.turn_on target: - entity_id: input_boolean.mode_house_sleep + entity_id: + - input_boolean.mode_house_sleep + - input_boolean.mode_office_sleep + - input_boolean.mode_office_hibernate - conditions: - condition: template @@ -126,7 +144,11 @@ sleep_and_wake: entity_id: switch.hall_lights_right - service: input_boolean.turn_on target: - entity_id: input_boolean.mode_house_hibernate + entity_id: + - input_boolean.mode_office_sleep + - input_boolean.mode_office_hibernate + - input_boolean.mode_house_sleep + - input_boolean.mode_house_hibernate - conditions: - condition: template |