zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

PC321: Template variable warning: 'dict object' has no attribute 'current_l1'

Open renaiku opened this issue 10 months ago • 2 comments

What happened?

I have the following properties filtered from the tab Settings of the device in Z2M

voltage_l1
voltage_l2
voltage_l3
current_l1
current_l2
current_l3
reactive_energy_l1
reactive_energy_l2
reactive_energy_l3
reactive_power_l1
reactive_power_l2
reactive_power_l3
energy
power
linkquality

and home assistant logs are spammed with this for all parameters EXCEPT power and linkquality

WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'voltage_l1' when rendering '{{ value_json.voltage_l1 }}'

I only use power_l1 to l3.

What did you expect to happen?

Not spamming HA logs

How to reproduce it (minimal and precise)

Add a parameter to the device tab Settings in Z2M

Zigbee2MQTT version

1.33.1

Adapter firmware version

20210708

Adapter

Sonoff Dongle P

Debug log

No response

renaiku avatar Oct 19 '23 07:10 renaiku

Seems like that adding filtered attributes on a device needs to be validated by tapping on the ENTER key. the value is not validated on blur.

renaiku avatar Nov 02 '23 15:11 renaiku

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar May 01 '24 00:05 github-actions[bot]