My notifications havenāt worked for some time, possibly a month or more. I have run the action for one of my notifications and this was the trace output, I have redacted names with xxx
{
"trace": {
"last_step": "action/0",
"run_id": "9f528a04f0b585f24c41b5e2e21774cf",
"state": "stopped",
"script_execution": "error",
"timestamp": {
"start": "2026-01-03T09:55:05.195674+00:00",
"finish": "2026-01-03T09:55:05.213720+00:00"
},
"domain": "automation",
"item_id": "1747674118010",
"error": "UndefinedError: 'dict object' has no attribute 'entity_id'",
"trigger": null,
"trace": {
"trigger": [
{
"path": "trigger",
"timestamp": "2026-01-03T09:55:05.199385+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.xxx_leaving_home",
"state": "on",
"attributes": {
"id": "1747674118010",
"last_triggered": "2025-12-30T14:51:49.744070+00:00",
"mode": "parallel",
"current": 0,
"max": 10,
"friendly_name": "xxx Home"
},
"last_changed": "2025-12-28T20:08:46.975867+00:00",
"last_reported": "2025-12-30T14:51:50.268688+00:00",
"last_updated": "2025-12-30T14:51:50.268688+00:00",
"context": {
"id": "01KDQVWVKAXN1JP4WKSV6X7VWJ",
"parent_id": "01KDQVWVK9A2HRB69PX0FXW8BB",
"user_id": null
}
},
"trigger": {
"platform": null
},
"custom_button_arriving_text": "",
"custom_button_arriving_url": "",
"zone_inputs": [
"zone.home"
],
"zones": [
"zone.home"
],
"home_zone_name": "home",
"home_zone": "zone.home",
"not_home": "not_home",
"zone_names": [
"home",
"Home"
],
"zones_leaving": [],
"zones_leaving_names": [],
"notify_device": "f3dc496d916ccf1acb014efd43c1bf72",
"notify_group": "",
"notify_service": "notify.mobile_app_xxxs_iphone",
"is_arriving_notification_enabled": true,
"is_leaving_notification_enabled": true,
"custom_action_arriving": [],
"custom_action_leaving": [],
"critical_notification": false
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2026-01-03T09:55:05.202127+00:00",
"changed_variables": {
"context": {
"id": "01KE1MGCBB81E1CNGXSXA98FA2",
"parent_id": "01KE1MGCBASQB806EQYV2SC5SA",
"user_id": null
}
},
"error": "UndefinedError: 'dict object' has no attribute 'entity_id'"
}
]
},
"config": {
"variables": {
"custom_button_arriving_text": "",
"custom_button_arriving_url": "",
"zone_inputs": [
"zone.home"
],
"zones": "{% if zone_inputs | count > 0 %}\n {{ zone_inputs }}\n{% else %}\n {{ integration_entities('zone') | default([]) }}\n{% endif %}\n",
"home_zone_name": "{{ 'home' | lower }}",
"home_zone": "{{ 'zone.home' | lower }}",
"not_home": "{{ 'not_home' | lower }}",
"zone_names": "{% set friendly = namespace(name=[]) %}\n{% for zone in zones %}\n {% set new_zone = state_attr(zone,'friendly_name') %}\n {% if home_zone == zone %}\n {% set friendly.name = friendly.name + [home_zone_name] %}\n {% endif %}\n {% set friendly.name = friendly.name + [new_zone.strip()] %}\n{% endfor %}\n\n{{ friendly.name }}\n",
"zones_leaving": [],
"zones_leaving_names": "{% set friendly = namespace(name=[]) %}\n{% for zone in zones_leaving %}\n {% set new_zone = state_attr(zone,'friendly_name') %}\n {% if home_zone == zone %}\n {% set friendly.name = friendly.name + [home_zone_name] %}\n {% endif %}\n {% set friendly.name = friendly.name + [new_zone.strip()] %}\n{% endfor %}\n\n{{ friendly.name }}\n",
"notify_device": "f3dc496d916ccf1acb014efd43c1bf72",
"notify_group": "",
"notify_service": "{% if(notify_group is defined and notify_group != '' ) %}\n notify.{{ notify_group }}\n{% elif (notify_device != none and notify_device != '' ) %}\n notify.mobile_app_{{ device_attr(notify_device, \"name\") | slugify }}\n{% endif %}\n",
"is_arriving_notification_enabled": true,
"is_leaving_notification_enabled": true,
"custom_action_arriving": [],
"custom_action_leaving": [],
"critical_notification": false
},
"mode": "parallel",
"triggers": {
"platform": "state",
"entity_id": [
"person.xxx"
],
"for": {
"hours": 0,
"minutes": 0,
"seconds": 0
}
},
"actions": [
{
"variables": {
"person": "{{ state_attr(trigger.entity_id,'friendly_name') }}",
"zone_from": "{{ iif(trigger.from_state.state | lower != not_home,iif(trigger.from_state.state | lower == home_zone_name,state_attr(home_zone,'friendly_name'),trigger.from_state.state),not_home) }}",
"zone_to": "{{ iif(trigger.to_state.state | lower != not_home,iif(trigger.to_state.state | lower == home_zone_name,state_attr(home_zone,'friendly_name'),trigger.to_state.state),not_home) }}",
"notification_color": [
100,
200,
240
],
"notification_color_hex": "