mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-03 03:21:47 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user