Good morning,
today I tried to get this automation to work:
automation:
- alias: "Create notifications for "service" errors"
trigger:
platform: event
event_type: system_log_event
condition:
condition: template
value_template: '{{ "service" in trigger.event.data.message[0] }}'
action:
service: persistent_notification.create
data:
title: Something bad happened
message: "{{ trigger.event.data.message }}"
This is the automation example from https://www.home-assistant.io/integrations/system_log/
The dire event is true.
If I tried to save this automation there is this error:
Message malformed: required key not provided @ data[‘action’]
Hope someone can help