Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template errors when pairing an IKEA Parasoll door/window sensor #733

Open
weljajoh opened this issue Feb 19, 2025 · 0 comments
Open

Template errors when pairing an IKEA Parasoll door/window sensor #733

weljajoh opened this issue Feb 19, 2025 · 0 comments

Comments

@weljajoh
Copy link

Description of the issue

Paired a new IKEA Parasoll door/window sensor and found the following errors in home-assistant.log:

2025-02-19 10:47:23.034 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.battery }}'
2025-02-19 10:47:23.036 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {"latest_version":"{{ value_json['update']['latest_version'] }}","installed_version":"{{ value_json['update']['installed_version'] }}","update_percentage":{{ value_json['update'].get('progress', 'null') }}})
2025-02-19 10:47:23.036 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.contact }}'
2025-02-19 10:47:23.037 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {{ value_json.contact }})

The device is functional so this seems a transient error.

Addon version

2.1.1-1

Platform

Core 2025.2.4
Supervisor 2025.02.1
Operating System 14.2
Frontend 20250214.0

Logs of the issue (if applicable)

home-assistant.log:

2025-02-19 10:47:23.034 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.battery }}'
2025-02-19 10:47:23.036 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {"latest_version":"{{ value_json['update']['latest_version'] }}","installed_version":"{{ value_json['update']['installed_version'] }}","update_percentage":{{ value_json['update'].get('progress', 'null') }}})
2025-02-19 10:47:23.036 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.contact }}'
2025-02-19 10:47:23.037 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'value_json' is undefined (value: , template: {{ value_json.contact }})

zigbee2mqqt log:

[2025-02-19 10:47:13] info: 	zh:controller: Succesfully interviewed '0xd44867fffeb418d9'
[2025-02-19 10:47:13] info: 	z2m: Successfully interviewed '0xd44867fffeb418d9', device has successfully been paired
[2025-02-19 10:47:13] info: 	z2m: Device '0xd44867fffeb418d9' is supported, identified as: IKEA PARASOLL door/window sensor (E2013)
[2025-02-19 10:47:14] info: 	z2m: Configuring '0xd44867fffeb418d9'
[2025-02-19 10:47:14] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/0xd44867fffeb418d9/contact/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state
","value_template":"{{ value_json.state }}"}],"device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xd44867fffeb418d9"],"manufacturer":"IKEA","model":"PARASOLL door/window sensor","model_
id":"E2013","name":"0xd44867fffeb418d9","sw_version":"1.0.19","via_device":"zigbee2mqtt_bridge_0xe0798dfffea6a7cc"},"device_class":"door","object_id":"0xd44867fffeb418d9_contact","origin"
:{"name":"Zigbee2MQTT","sw":"2.1.1","url":"https://www.zigbee2mqtt.io"},"payload_off":true,"payload_on":false,"state_topic":"zigbee2mqtt/0xd44867fffeb418d9","unique_id":"0xd44867fffeb418d
9_contact_zigbee2mqtt","value_template":"{{ value_json.contact }}"}'
[2025-02-19 10:47:14] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"PARASOLL door/window sensor","exposes":[{"access":
1,"description":"Indicates whether the device is opened or closed","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":2,"
category":"config","description":"Initiate device identification. This device is asleep by default.You may need to wake it up first before sending the identify command.","label":"Identify
","name":"identify","property":"identify","type":"enum","values":["identify"]},{"access":5,"category":"diagnostic","description":"Remaining battery in %","label":"Battery","name":"battery
","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality",
"name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"E2013","options":[{"access":2,"description":"Sets the duration of the 
identification procedure in seconds (i.e., how long the device would flash).The value ranges from 1 to 30 seconds (default: 3).","label":"Identify timeout","name":"identify_timeout","prop
erty":"identify_timeout","type":"numeric","value_max":30,"value_min":1}],"supports_ota":true,"vendor":"IKEA"},"friendly_name":"0xd44867fffeb418d9","ieee_address":"0xd44867fffeb418d9","sta
tus":"successful","supported":true},"type":"device_interview"}'
[2025-02-19 10:47:14] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/button/0xd44867fffeb418d9/identify/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","val
ue_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0xd44867fffeb418d9/set/identify","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xd44867fffeb418d9"],"manufactur
er":"IKEA","model":"PARASOLL door/window sensor","model_id":"E2013","name":"0xd44867fffeb418d9","sw_version":"1.0.19","via_device":"zigbee2mqtt_bridge_0xe0798dfffea6a7cc"},"device_class":
"identify","entity_category":"config","object_id":"0xd44867fffeb418d9_identify","origin":{"name":"Zigbee2MQTT","sw":"2.1.1","url":"https://www.zigbee2mqtt.io"},"payload_press":"identify",
"unique_id":"0xd44867fffeb418d9_identify_zigbee2mqtt"}'
[2025-02-19 10:47:14] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xd44867fffeb418d9/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","valu
e_template":"{{ value_json.state }}"}],"device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xd44867fffeb418d9"],"manufacturer":"IKEA","model":"PARASOLL door/window sensor","model_id":"E2
013","name":"0xd44867fffeb418d9","sw_version":"1.0.19","via_device":"zigbee2mqtt_bridge_0xe0798dfffea6a7cc"},"device_class":"battery","enabled_by_default":true,"entity_category":"diagnost
ic","object_id":"0xd44867fffeb418d9_battery","origin":{"name":"Zigbee2MQTT","sw":"2.1.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0xd4486
7fffeb418d9","unique_id":"0xd44867fffeb418d9_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}'
[2025-02-19 10:47:14] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xd44867fffeb418d9/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","
value_template":"{{ value_json.state }}"}],"device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xd44867fffeb418d9"],"manufacturer":"IKEA","model":"PARASOLL door/window sensor","model_id"
:"E2013","name":"0xd44867fffeb418d9","sw_version":"1.0.19","via_device":"zigbee2mqtt_bridge_0xe0798dfffea6a7cc"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:sign
al","name":"Linkquality","object_id":"0xd44867fffeb418d9_linkquality","origin":{"name":"Zigbee2MQTT","sw":"2.1.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_to
pic":"zigbee2mqtt/0xd44867fffeb418d9","unique_id":"0xd44867fffeb418d9_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
[2025-02-19 10:47:14] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/update/0xd44867fffeb418d9/update/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value
_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/bridge/request/device/ota_update/update","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xd44867fffeb418d9"],"manu
facturer":"IKEA","model":"PARASOLL door/window sensor","model_id":"E2013","name":"0xd44867fffeb418d9","sw_version":"1.0.19","via_device":"zigbee2mqtt_bridge_0xe0798dfffea6a7cc"},"device_c
lass":"firmware","entity_category":"config","entity_picture":"https://github.com/Koenkk/zigbee2mqtt/raw/master/images/logo.png","name":null,"object_id":"0xd44867fffeb418d9","origin":{"nam
e":"Zigbee2MQTT","sw":"2.1.1","url":"https://www.zigbee2mqtt.io"},"payload_install":"{\"id\": \"0xd44867fffeb418d9\"}","state_topic":"zigbee2mqtt/0xd44867fffeb418d9","unique_id":"0xd44867
fffeb418d9_update_zigbee2mqtt","value_template":"{\"latest_version\":\"{{ value_json['update']['latest_version'] }}\",\"installed_version\":\"{{ value_json['update']['installed_version'] 
}}\",\"update_percentage\":{{ value_json['update'].get('progress', 'null') }}}"}'
[2025-02-19 10:47:17] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xd44867fffeb418d9', payload '{"battery":null,"contact":false,"identify":null,"linkquality":164,"update":{"insta
lled_version":-1,"latest_version":-1,"state":null}}'
[2025-02-19 10:47:20] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xd44867fffeb418d9', payload '{"battery":90,"contact":false,"identify":null,"linkquality":160,"update":{"install
ed_version":-1,"latest_version":-1,"state":null}}'
[2025-02-19 10:47:20] info: 	z2m: Successfully configured '0xd44867fffeb418d9'
[2025-02-19 10:47:23] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xd44867fffeb418d9', payload ''
[2025-02-19 10:47:23] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/0xd44867fffeb418d9/contact/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state
","value_template":"{{ value_json.state }}"}],"device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xd44867fffeb418d9"],"manufacturer":"IKEA","model":"PARASOLL door/window sensor","model_
id":"E2013","name":"Raamsensor slaapkamer","sw_version":"1.0.19","via_device":"zigbee2mqtt_bridge_0xe0798dfffea6a7cc"},"device_class":"door","object_id":"raamsensor_slaapkamer_contact","o
rigin":{"name":"Zigbee2MQTT","sw":"2.1.1","url":"https://www.zigbee2mqtt.io"},"payload_off":true,"payload_on":false,"state_topic":"zigbee2mqtt/Raamsensor slaapkamer","unique_id":"0xd44867
fffeb418d9_contact_zigbee2mqtt","value_template":"{{ value_json.contact }}"}'
[2025-02-19 10:47:23] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Raamsensor slaapkamer', payload '{"battery":90,"contact":false,"identify":null,"linkquality":160,"update":{"inst
alled_version":-1,"latest_version":-1,"state":null}}'
[2025-02-19 10:47:23] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/rename', payload '{"data":{"from":"0xd44867fffeb418d9","homeassistant_rename":false,"to":
"Raamsensor slaapkamer"},"status":"ok","transaction":"uhsue-3"}'
[2025-02-19 10:47:23] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/button/0xd44867fffeb418d9/identify/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","val
ue_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/Raamsensor slaapkamer/set/identify","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xd44867fffeb418d9"],"manufac
turer":"IKEA","model":"PARASOLL door/window sensor","model_id":"E2013","name":"Raamsensor slaapkamer","sw_version":"1.0.19","via_device":"zigbee2mqtt_bridge_0xe0798dfffea6a7cc"},"device_c
lass":"identify","entity_category":"config","object_id":"raamsensor_slaapkamer_identify","origin":{"name":"Zigbee2MQTT","sw":"2.1.1","url":"https://www.zigbee2mqtt.io"},"payload_press":"i
dentify","unique_id":"0xd44867fffeb418d9_identify_zigbee2mqtt"}'
[2025-02-19 10:47:23] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xd44867fffeb418d9/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","valu
e_template":"{{ value_json.state }}"}],"device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xd44867fffeb418d9"],"manufacturer":"IKEA","model":"PARASOLL door/window sensor","model_id":"E2
013","name":"Raamsensor slaapkamer","sw_version":"1.0.19","via_device":"zigbee2mqtt_bridge_0xe0798dfffea6a7cc"},"device_class":"battery","enabled_by_default":true,"entity_category":"diagn
ostic","object_id":"raamsensor_slaapkamer_battery","origin":{"name":"Zigbee2MQTT","sw":"2.1.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/R
aamsensor slaapkamer","unique_id":"0xd44867fffeb418d9_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}'
[2025-02-19 10:47:23] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xd44867fffeb418d9/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","
value_template":"{{ value_json.state }}"}],"device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xd44867fffeb418d9"],"manufacturer":"IKEA","model":"PARASOLL door/window sensor","model_id"
:"E2013","name":"Raamsensor slaapkamer","sw_version":"1.0.19","via_device":"zigbee2mqtt_bridge_0xe0798dfffea6a7cc"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:s
ignal","name":"Linkquality","object_id":"raamsensor_slaapkamer_linkquality","origin":{"name":"Zigbee2MQTT","sw":"2.1.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","st
ate_topic":"zigbee2mqtt/Raamsensor slaapkamer","unique_id":"0xd44867fffeb418d9_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
[2025-02-19 10:47:23] info: 	z2m:mqtt: MQTT publish: topic 'homeassistant/update/0xd44867fffeb418d9/update/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value
_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/bridge/request/device/ota_update/update","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xd44867fffeb418d9"],"manu
facturer":"IKEA","model":"PARASOLL door/window sensor","model_id":"E2013","name":"Raamsensor slaapkamer","sw_version":"1.0.19","via_device":"zigbee2mqtt_bridge_0xe0798dfffea6a7cc"},"devic
e_class":"firmware","entity_category":"config","entity_picture":"https://github.com/Koenkk/zigbee2mqtt/raw/master/images/logo.png","name":null,"object_id":"raamsensor_slaapkamer","origin"
:{"name":"Zigbee2MQTT","sw":"2.1.1","url":"https://www.zigbee2mqtt.io"},"payload_install":"{\"id\": \"0xd44867fffeb418d9\"}","state_topic":"zigbee2mqtt/Raamsensor slaapkamer","unique_id":
"0xd44867fffeb418d9_update_zigbee2mqtt","value_template":"{\"latest_version\":\"{{ value_json['update']['latest_version'] }}\",\"installed_version\":\"{{ value_json['update']['installed_v
ersion'] }}\",\"update_percentage\":{{ value_json['update'].get('progress', 'null') }}}"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant