Refactor Kitchen Accent power notification to ensure parents are informed when the plug is switched off. The notification action has been moved to enhance clarity and maintainability of the automation script. #771

This commit is contained in:
Carlo Costanzo
2025-11-21 18:11:02 -05:00
parent 65c8376a66
commit 0a42f42a0b

View File

@@ -76,13 +76,15 @@
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
- service: script.notify_engine
data:
title: "Kitchen Accent Power"
value1: "The Kitchen Accent plug was switched off. Please turn it back on."
who: 'parents'
- service: notify.alexa_media_kitchen
data:
message: "The Kitchen Accent plug was switched off. Please turn it back on."
data:
type: announce