can someone help me with these errors? i have no clue whats causing them
e[31m2025-11-08 23:58:00.645 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.battery }}'e[0m
e[31m2025-11-08 23:58:00.646 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.detection_interval }}'e[0m
e[31m2025-11-08 23:58:00.646 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {{ value_json.detection_interval }})e[0m
e[31m2025-11-08 23:58:00.647 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.illuminance }}'e[0m
e[31m2025-11-08 23:58:00.647 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.device_temperature }}'e[0m
e[31m2025-11-08 23:58:00.647 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.motion_sensitivity }}'e[0m
e[31m2025-11-08 23:58:00.649 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {{ value_json.motion_sensitivity }})e[0m
e[33m2025-11-08 23:58:00.650 WARNING (MainThread) [homeassistant.components.mqtt.update] Unable to process payload '' for topic zigbee2mqtt/0x54ef44100144ee3e, with value template 'Template<template=({"latest_version":"{{ value_json['update']['latest_version'] }}","installed_version":"{{ value_json['update']['installed_version'] }}","update_percentage":{{ value_json['update'].get('progress', 'null') }},"in_progress":{{ (value_json['update']['state'] == 'updating')|lower }}}) renders=1046>'e[0m
e[31m2025-11-08 23:58:00.650 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{% if value_json.trigger_indicator %}true{% else %}false{% endif %}'e[0m
e[31m2025-11-08 23:58:00.650 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {% if value_json.trigger_indicator %}true{% else %}false{% endif %})e[0m
e[31m2025-11-08 23:58:00.651 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.occupancy }}'e[0m
e[31m2025-11-08 23:58:00.652 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {{ value_json.occupancy }})e[0m
e[31m2025-11-08 23:58:00.652 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.linkquality }}'e[0m
e[31m2025-11-08 23:58:00.653 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.voltage }}'e[0m
e[33m2025-11-08 23:58:00.984 WARNING (MainThread) [homeassistant.helpers.dispatcher] Unable to remove unknown dispatcher <bound method MqttAvailabilityMixin.async_mqtt_connection_state_changed of <entity unknown.unknown=unknown>>e[0m
Did you recently create a Helper that has a template ?
francisp
(Francis)
November 9, 2025, 8:13am
4
Maybe show how you created this ?
Are these errors that occurred when you were working through the template logic? Clear your log, reboot HA and post any related errors…
basically just helpers → filled out this form. Then i use it in this automation
alias: Entry Lights - Auto On
triggers:
- alias: Presence detected
trigger: state
entity_id: binary_sensor.entrance_presence_sensor_occupancy
to: "on"
- alias: Front door opened
trigger: state
entity_id: binary_sensor.front_door_sensor_contact
to: "on"
- alias: Rear door opened
trigger: state
entity_id: binary_sensor.rear_door_sensor_contact
to: "on"
conditions:
- condition: state
entity_id: binary_sensor.entrance_presence_sensor_occupancy
state: "on"
- condition: template
value_template: |
{{ states('sensor.entrance_presence_sensor_illuminance') | float(0)
< states('input_number.entry_lux_threshold') | float(50) }}
- condition: not
conditions:
- condition: state
entity_id:
- light.front_entry_light
- light.rear_entry_light
state: "on"
actions:
- action: light.turn_on
target:
entity_id:
- light.front_entry_light
- light.rear_entry_light
mode: single
francisp
(Francis)
November 9, 2025, 8:19am
7
I don’t see an error in that template.
It doesnt seem like it its related to a helper @francisp @LiQuid_cOOled , Its when I got edit the name of a motion sensor in z2mqtt , and i also check “update in home assistant”
Was the name already used previously when trying to edit the name via Z2M?
If not, did you update the automation’s target entity to include the new entity name?
no the name wasnt used previously and this sensor isnt even in an automation. I can change the device name to anything, like “foo” and i’ll get this error
@LiQuid_cOOled @francisp edited another devices in z2mqtt and I got the same issue (slightly different stuff, but same error )
e[31m2025-11-09 00:25:53.337 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.current }}'e[0m
e[31m2025-11-09 00:25:53.338 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.state }}'e[0m
e[31m2025-11-09 00:25:53.338 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {{ value_json.state }})e[0m
e[31m2025-11-09 00:25:53.339 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.energy }}'e[0m
e[33m2025-11-09 00:25:53.339 WARNING (MainThread) [homeassistant.components.mqtt.update] Unable to process payload '' for topic zigbee2mqtt/Plug (router), with value template 'Template<template=({"latest_version":"{{ value_json['update']['latest_version'] }}","installed_version":"{{ value_json['update']['installed_version'] }}","update_percentage":{{ value_json['update'].get('progress', 'null') }},"in_progress":{{ (value_json['update']['state'] == 'updating')|lower }}}) renders=2>'e[0m
e[31m2025-11-09 00:25:53.340 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.power_on_behavior }}'e[0m
e[31m2025-11-09 00:25:53.340 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {{ value_json.power_on_behavior }})e[0m
e[31m2025-11-09 00:25:53.340 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.voltage }}'e[0m
e[31m2025-11-09 00:25:53.340 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.power }}'e[0m
All the errors show a value_json error that is most likely originating from Z2M device that no longer exists(name changed ), but is still referenced in an automation
Moe info is most likely needed to debug…
Have you changed multiple entity names via Z2M’s dashboard?
when i change the name of any device in z2M and i have “Update Home Assistant entity ID” checked, this error shows up.
or some reason when i remove a motion sensor from z2m, the device gets removed from mqtt in HA, but when i add it back to z2m, it shows up with the old name in mqtt in HA …
Please provide your system info
Installation method ?
Core ?
Supervisor ?
Operating System ?
Frontend ?
How is Z2M and your broker installed as well?
HA OS running in VM
where do i find the rest?
Z2M and Broker and installed via add ons
Settings(gear icon ) in the sidebar and About tab at the very bottom
You are up to date. I run my Z2M and broker in separate docker containers so I am unsure if your renaming entities via Z2M are taking in HA. When you change the name in the Z2M UI, does the entity name change in the MQTT integration entity list?
if i check this box, yes but for this specific device it doesnt
Alter the friendly name temporarily and see if it takes.