Skip to content

Commit 630253e

Browse files
committed
Add automation to notify users when the Kitchen Accent power is cut and switches go offline. Includes triggers for switch state changes and conditions to check the state of a specific group. Enhances user awareness for kitchen appliances. Closes Closes Notify Stacey when she turns off the Kitchen Accent switch.
Fixes #771
1 parent fb5a8b8 commit 630253e

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

config/automation/System/watchdog_light.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,32 @@
5252
- light.hallway
5353
- light.hallway_lights
5454
- light.foyer
55+
56+
##############################################################################
57+
### Alert when the Kitchen Accent power is cut and the switches go offline
58+
##############################################################################
59+
60+
- alias: Kitchen Accent Power Reminder
61+
id: b7c767d3-359f-4db4-9156-bba9e7d90602
62+
mode: single
63+
trigger:
64+
- platform: state
65+
entity_id:
66+
- switch.kitchen_accent_1
67+
- switch.kitchen_accent_2
68+
to: 'unavailable'
69+
for: '00:00:30'
70+
71+
condition:
72+
- condition: state
73+
entity_id: group.bed
74+
state: 'off'
75+
- condition: template
76+
value_template: "{{ trigger.from_state is not none and trigger.from_state.state != 'unavailable' }}"
77+
78+
action:
79+
- service: notify.alexa_media_kitchen
80+
data:
81+
message: "The Kitchen Accent plug was switched off. Please turn it back on."
82+
data:
83+
type: announce

0 commit comments

Comments
 (0)