164 x times the same error in logs when rebbot

Hello,

I have the same error in logs (164x times), every time i reboot my HA. I don’t knwon where to begin to find the problem. Is there a parameter to active to have more precise debug logs ?
Where shoud i begin to investigate ?
Thanks in advance for help.

2023-05-15 07:22:16.695 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})
2023-05-15 07:22:16.696 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
2023-05-15 07:22:16.698 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})
2023-05-15 07:22:16.699 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
2023-05-15 07:22:16.700 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})
2023-05-15 07:22:16.702 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
2023-05-15 07:22:16.705 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})
2023-05-15 07:22:16.706 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
2023-05-15 07:22:16.707 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})
2023-05-15 07:22:16.709 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
2023-05-15 07:22:16.710 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})
2023-05-15 07:22:16.712 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
2023-05-15 07:22:16.713 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})
2023-05-15 07:22:16.719 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'
2023-05-15 07:22:16.721 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: online, template: {{ value_json.state }})

screenshot_1314

The reference to value_json points to a likely REST sensor template you have set up, and it’s value not only seems to have a very small interval but isn’t responding with a JSON payload. Check there first to see if you have a REST sensor, then you can execute the URL manually in a browser tab and see the output.

Thank you for your response.
I have desactivated rest templates, then reboot HA.
Same errors in the logs…

Here is the solution: Uncheck Legacy availability payload

screenshot_1339