Template error after upgrade

Hi,

After upgrade from 2024.1.3 to 2024.5.5 i’m seeing the following log entry:

Logger: homeassistant.helpers.template
Source: helpers/template.py:2613
First occurred: 1 June 2024 at 14:08:15 (80 occurrences)
Last logged: 12:08:49

    Template variable error: 'None' has no attribute 'event' when rendering '{{ wait.trigger.event.data.action == action_1 }}'
    Template variable error: 'None' has no attribute 'event' when rendering '{{ wait.trigger.event.data.action == action_2 }}'

It would have been helpful to know where this is coming from, i.e. no idea which automation or config part to look at, any suggestions?

Thanks!

It’s in an automation that employs wait_for_trigger (possibly with an Event Trigger). Might be an automation produced by a Blueprint.

1 Like

I faced the same issue too just now.

Logger: homeassistant.helpers.template
Source: helpers/template.py:2613
First occurred: 16:28:29 (14 occurrences)
Last logged: 16:29:19

Template variable error: 'value_json' is undefined when rendering '{{ value_json.occupancy }}'
Template variable error: 'value_json' is undefined when rendering '{{ value_json.battery_low }}'
Template variable error: 'value_json' is undefined when rendering '{{ value_json.battery }}'
Template variable error: 'value_json' is undefined when rendering '{{ value_json.linkquality }}'>