mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-03 11:31:42 +00:00
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
This commit is contained in:
@@ -52,3 +52,32 @@
|
|||||||
- light.hallway
|
- light.hallway
|
||||||
- light.hallway_lights
|
- light.hallway_lights
|
||||||
- light.foyer
|
- light.foyer
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
### Alert when the Kitchen Accent power is cut and the switches go offline
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
- alias: Kitchen Accent Power Reminder
|
||||||
|
id: b7c767d3-359f-4db4-9156-bba9e7d90602
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- switch.kitchen_accent_1
|
||||||
|
- switch.kitchen_accent_2
|
||||||
|
to: 'unavailable'
|
||||||
|
for: '00:00:30'
|
||||||
|
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: group.bed
|
||||||
|
state: 'off'
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ trigger.from_state is not none and trigger.from_state.state != 'unavailable' }}"
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: notify.alexa_media_kitchen
|
||||||
|
data:
|
||||||
|
message: "The Kitchen Accent plug was switched off. Please turn it back on."
|
||||||
|
data:
|
||||||
|
type: announce
|
||||||
|
|||||||
Reference in New Issue
Block a user