zigbee2mqtt
zigbee2mqtt copied to clipboard
PC321: Template variable warning: 'dict object' has no attribute 'current_l1'
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
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.
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