summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2025-09-08 19:47:19 +0400
committerSuren A. Chilingaryan <csa@suren.me>2025-09-08 19:47:19 +0400
commitce5ca99405f1eb74bfa8ae68d6617c91a5e98daf (patch)
tree928dc55bfd1c7fbc03ba5a262c120395690fa4fb
parent0494cf139a6a3324e10e2cfa3479d9b0b3ddd779 (diff)
downloadhass-ce5ca99405f1eb74bfa8ae68d6617c91a5e98daf.tar.gz
hass-ce5ca99405f1eb74bfa8ae68d6617c91a5e98daf.tar.bz2
hass-ce5ca99405f1eb74bfa8ae68d6617c91a5e98daf.tar.xz
hass-ce5ca99405f1eb74bfa8ae68d6617c91a5e98daf.zip
Entity naming fixes in automations & scriptsHEADmaster
-rw-r--r--automations.yaml14
-rw-r--r--custom/scripts/sleep-and-wake.yaml8
-rw-r--r--custom/scripts/turn-on-office-lights.yaml2
3 files changed, 12 insertions, 12 deletions
diff --git a/automations.yaml b/automations.yaml
index 621c215..f2fa359 100644
--- a/automations.yaml
+++ b/automations.yaml
@@ -865,7 +865,7 @@
- condition: or
conditions:
- condition: state
- entity_id: switch.smart_power_strip_pro_socket_2
+ entity_id: switch.office_power_strip_socket_2
state: 'off'
- condition: state
entity_id: switch.office_table
@@ -922,7 +922,7 @@
- condition: or
conditions:
- condition: state
- entity_id: switch.smart_power_strip_pro_socket_2
+ entity_id: switch.office_power_strip_socket_2
state: 'off'
- condition: state
entity_id: switch.office_table
@@ -1067,7 +1067,7 @@
- condition: trigger
id: sleep
- condition: state
- entity_id: switch.smart_power_strip_pro_socket_2
+ entity_id: switch.office_power_strip_socket_2
state: 'on'
sequence:
- service: script.sleep_and_wake
@@ -1108,7 +1108,7 @@
trigger:
- platform: state
entity_id:
- - switch.smart_power_strip_pro_socket_4
+ - switch.office_power_strip_socket_4
from: 'off'
to: 'on'
for:
@@ -1829,7 +1829,7 @@
trigger:
- platform: state
entity_id:
- - switch.smart_power_strip_pro_socket_1
+ - switch.office_power_strip_socket_1
to: unavailable
for:
hours: 0
@@ -1837,7 +1837,7 @@
seconds: 0
- platform: state
entity_id:
- - switch.smart_power_strip_pro_socket_1
+ - switch.office_power_strip_socket_1
to: 'off'
for:
hours: 0
@@ -1853,7 +1853,7 @@
seconds: 0
condition: []
action:
- - service: notify.mobile_app_lm_g810
+ - service: notify.mobile_app_sm_s926b
data:
message: SmartPI out of power
- service: notify.smartpi
diff --git a/custom/scripts/sleep-and-wake.yaml b/custom/scripts/sleep-and-wake.yaml
index a430515..a5782c1 100644
--- a/custom/scripts/sleep-and-wake.yaml
+++ b/custom/scripts/sleep-and-wake.yaml
@@ -41,7 +41,7 @@ sleep_and_wake:
entity_id: scene.lg_aircon_power_off
- service: switch.turn_off
target:
- entity_id: switch.smart_power_strip_pro_socket_2
+ entity_id: switch.office_power_strip_socket_2
- service: switch.turn_off
target:
entity_id: switch.living_lights_right
@@ -66,7 +66,7 @@ sleep_and_wake:
entity_id: scene.lg_aircon_power_off
- service: switch.turn_off
target:
- entity_id: switch.smart_power_strip_pro_socket_2
+ entity_id: switch.office_power_strip_socket_2
- service: switch.turn_off
target:
entity_id: switch.living_lights_right
@@ -86,7 +86,7 @@ sleep_and_wake:
target:
entity_id:
- switch.plugs_office
- - switch.smart_power_strip_pro_socket_2
+ - switch.office_power_strip_socket_2
- service: wake_on_lan.send_magic_packet
data:
mac: "e8:6a:64:7b:5d:0a"
@@ -128,7 +128,7 @@ sleep_and_wake:
entity_id: media_player.smartpi
- service: switch.turn_off
target:
- entity_id: switch.smart_power_strip_pro_socket_2
+ entity_id: switch.office_power_strip_socket_2
- service: switch.turn_off
target:
entity_id: switch.lights_all
diff --git a/custom/scripts/turn-on-office-lights.yaml b/custom/scripts/turn-on-office-lights.yaml
index e1a7e80..9520db0 100644
--- a/custom/scripts/turn-on-office-lights.yaml
+++ b/custom/scripts/turn-on-office-lights.yaml
@@ -32,6 +32,6 @@ turn_on_office_lights:
entity_id:
- switch.lights_living_lustre
- light.office_chair_led_office_chair_led
- - switch.living_tablesocket
+ - switch.living_tablelampsocket