Skip to content

Commit 0a42f42

Browse files
committed
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
1 parent 65c8376 commit 0a42f42

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

config/automation/System/watchdog_light.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@
7676
value_template: "{{ trigger.from_state is not none and trigger.from_state.state != 'unavailable' }}"
7777

7878
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
8479
- service: script.notify_engine
8580
data:
8681
title: "Kitchen Accent Power"
8782
value1: "The Kitchen Accent plug was switched off. Please turn it back on."
8883
who: 'parents'
84+
85+
- service: notify.alexa_media_kitchen
86+
data:
87+
message: "The Kitchen Accent plug was switched off. Please turn it back on."
88+
data:
89+
type: announce
90+

0 commit comments

Comments
 (0)