My notifications to my phone don’t work anymore. They were working fine for months. When running them manually in the automattion I see this error:
error rendering data template: undefinederror: ‘trigger’ is undefined
What could be the problem? None of the entities changed.
alias: Smoke
description: ""
triggers:
- entity_id:
- binary_sensor.0x00158d0003d49d60_smoke
- binary_sensor.0x00158d00039d8c52_smoke
- binary_sensor.0x00158d00039d90ec_smoke
- binary_sensor.0x00158d00045cd343_smoke
from: "off"
to: "on"
enabled: true
trigger: state
- entity_id:
- binary_sensor.0x00158d0003d49d60_smoke
- binary_sensor.0x00158d00039d8c52_smoke
- binary_sensor.0x00158d00039d90ec_smoke
- binary_sensor.0x00158d00045cd343_smoke
from: unavailable
to: "on"
enabled: true
trigger: state
- entity_id:
- binary_sensor.0x00158d0003d49d60_smoke
- binary_sensor.0x00158d00039d8c52_smoke
- binary_sensor.0x00158d00039d90ec_smoke
- binary_sensor.0x00158d00045cd343_smoke
to: "on"
enabled: true
from: unknown
trigger: state
conditions: []
actions:
- data:
title: Feueralarm
message: "Ort: {{ trigger.to_state.name }}"
data:
ttl: 0
priority: high
channel: alarm_stream
persistent: true
tag: persistent
action: notify.mobile_app_pixel_7