I’m working on a custom ESP32 based ZigBee sensor reporting temperature, humidity, …
It works perfectly and now I wanted to add support for reporting the current battery percentage and mV but I can not get Home Assistant to show the battery percentage icon next to my device.
If I reconfigure the device, I get battery_voltage reported as UNREPORTABLE_ATTRIBUTE as seen in the screenshot bellow.
I can manually read the battery voltage from the ZigBee attribute as seen bellow and it reports sane values from the range [0,200] where each number is a 0.5% step as requested by the ZigBee standard (3.3.2.2.3.1 BatteryVoltage Attribute).
Besides that I also started reporting BatteryRatedVoltage, BatteryAHrRating and BatterySize with no effect so far although I can read them from within the Manage Zigbee Device dialog in HASS.
Is there anything I’m missing or do I just need to write a custom ZHA quirk for the battery percentage to show up at all?

