Hello, I have following zigbee2mqtt device. I see Voltage below, but it is not listed as separate entity. I would like to add that voltage as separate entity to see history graph. Is that possible?
You can just create a template sensor from the attribute.
Thank you but I cannot get the configuration right. This gives TemplateSyntaxError: expected name or number
:
sensor:
- platform: template
sensors:
0x60a423fffe138d2b_battery:
value_template: "{{ state_attr("sensor.0x60a423fffe138d2b_battery"."voltage") }}"
the message from mqtt is following:
value_template: "{{ state_attr('sensor.0x60a423fffe138d2b_battery', 'voltage') }}"
This worked, thank you very much sir!