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.yaml16
1 files changed, 13 insertions, 3 deletions
diff --git a/custom/scripts/sleep-and-wake.yaml b/custom/scripts/sleep-and-wake.yaml
index c8e180d..0fe478d 100644
--- a/custom/scripts/sleep-and-wake.yaml
+++ b/custom/scripts/sleep-and-wake.yaml
@@ -36,9 +36,12 @@ sleep_and_wake:
value_template: '{{ mode == "sleep" }}'
sequence:
- parallel:
+ - service: scene.turn_on
+ target:
+ entity_id: scene.lg_aircon_power_off
- service: switch.turn_off
target:
- entity_id: switch.smart_power_strip_pro_socket_1
+ entity_id: switch.smart_power_strip_pro_socket_2
- service: switch.turn_off
target:
entity_id: switch.living_lights_right
@@ -60,7 +63,7 @@ sleep_and_wake:
# entity_id: switch.plugs_office
- service: switch.turn_off
target:
- entity_id: switch.smart_power_strip_pro_socket_1
+ entity_id: switch.smart_power_strip_pro_socket_2
- service: switch.turn_off
target:
entity_id: switch.living_lights_right
@@ -104,6 +107,13 @@ sleep_and_wake:
value_template: '{{ mode == "sleep" }}'
sequence:
- parallel:
+ - service: script.bedroom_aircon_off
+# - service: scene.turn_on
+# target:
+# entity_id: scene.hyundai_aircon2_off
+ - service: scene.turn_on
+ target:
+ entity_id: scene.lg_aircon_power_off
# Wait until we fix both sleep and WOL on laptop
# - service: switch.turn_off
# target:
@@ -113,7 +123,7 @@ sleep_and_wake:
entity_id: media_player.smartpi
- service: switch.turn_off
target:
- entity_id: switch.smart_power_strip_pro_socket_1
+ entity_id: switch.smart_power_strip_pro_socket_2
- service: switch.turn_off
target:
entity_id: switch.lights_all