summaryrefslogtreecommitdiffstats
path: root/custom/scripts/sleep-and-wake.yaml
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2023-06-23 04:44:16 +0400
committerSuren A. Chilingaryan <csa@suren.me>2023-06-23 04:44:16 +0400
commit2674a5226e13a68b1ee570aef552e78b7a7337b8 (patch)
treecaf3b55045249cd124717109a652506576ff2cfc /custom/scripts/sleep-and-wake.yaml
parent756a33999df9255deb1c08a443a5621d94da0126 (diff)
downloadhass-2674a5226e13a68b1ee570aef552e78b7a7337b8.tar.gz
hass-2674a5226e13a68b1ee570aef552e78b7a7337b8.tar.bz2
hass-2674a5226e13a68b1ee570aef552e78b7a7337b8.tar.xz
hass-2674a5226e13a68b1ee570aef552e78b7a7337b8.zip
Massive update: Few fixes, more new integrations & extensions
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