I have this automation setup to send me an email when an integration errors out. Everything works great, but for some reason, the line breaks (\n
) in the output is not being honored. Everything appears on a single line. Thoughts?
alias: Integration Errors
description: Create a persistent notification on an Integration error
triggers:
- trigger: event
event_type: system_log_event
event_data:
level: ERROR
conditions:
- condition: template
value_template: "{{ \"Error setting up entry\" in trigger.event.data.message[0] }}"
actions:
- action: persistent_notification.create
data:
title: Integration Error
message: "{{ trigger.event.data.message[0] }}"
enabled: true
- action: notify.email
data:
title: Home Assistant - Integration Error
message: |-
{{ trigger.event.data.message[0] }}
{{ trigger.event.data }}