summaryrefslogtreecommitdiffstats
path: root/custom/scripts/sleep-and-wake.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'custom/scripts/sleep-and-wake.yaml')
-rw-r--r--custom/scripts/sleep-and-wake.yaml26
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