mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +00:00
Changed "Conditional Messages" example (#15431)
The example has been fit to behave correctly keeping into account that message is an array
This commit is contained in:
parent
55f89879d1
commit
b5fb8283a4
@ -111,7 +111,7 @@ automation:
|
|||||||
event_type: system_log_event
|
event_type: system_log_event
|
||||||
condition:
|
condition:
|
||||||
condition: template
|
condition: template
|
||||||
value_template: '{{ "service" in trigger.event.data.message }}'
|
value_template: '{{ "service" in trigger.event.data.message[0] }}'
|
||||||
action:
|
action:
|
||||||
service: persistent_notification.create
|
service: persistent_notification.create
|
||||||
data:
|
data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user