Error parsing value: 'value_json' is undefined (value: offline, template: {{ value_json.state }})

Hello
I have the following error message and I dont know where to start look. I took a look at the development tools but I was not able to finde values like offline/online… strange. Does anyone know where I could find the solution?
Thanks
tom

Logger: homeassistant.helpers.template
Source: helpers/template.py:749
First occurred: 21:27:53 (3 occurrences)
Last logged: 21:29:54

Error parsing value: 'value_json' is undefined (value: offline, template: {{ value_json.state }})
Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})

You have a Template entity defined that uses {{ value_json.state }} somewhere in its configuration. That template may be part of the entity’s availability option.

Look in the file where you have configured your Template entities.

Are you using zigbee2mqtt?

2 Likes

Thats it!! Thanks a lot @123 and @freshcoast for your help. very much appreciated. I disabled legacy_availability_payload, made a reboot. No more error…

1 Like

Please mark freshcoast’s post with the Solution tag for the benefit of other people searching for a solution to the same problem.

2 Likes