A battery-powered ESP32 device can expose its remaining charge through Zigbee’s standard battery reporting rather than as a generic sensor. ESPHome connects its battery-level and voltage sensors to the device’s power information, with documentation showing the configuration.

ZHA exposes voltage as an extra attribute of the battery entity. Zigbee2MQTT automatically detects the battery level, while a separate voltage entity needs a custom converter. These readings describe the device’s own battery, not an external battery being monitored.