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:
Francesco 2020-11-07 12:10:59 +01:00 committed by GitHub
parent 55f89879d1
commit b5fb8283a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: