VES-ZB-WAL-012 Battery 200%
What happened?
The battery is on 200%
What did you expect to happen?
100% or lower
How to reproduce it (minimal and precise)
Connect to Zigbee2mqtt
Zigbee2MQTT version
1.35.1
Adapter firmware version
20230507
Adapter
Sonoff dongle P
Setup
Zigbee2mqtt as Home assistant addons on Intel Nuc
Debug log
No response
@martyn-vesternet could you check this?
@tobiasg021 earlier firmware versions of this device report battery as 0 - 100 so no conversion was required to make that into a percentage.
Later firmware versions of this device report battery as 0 - 200 (to allow for greater precision), so for these versions the reported value needs dividing by 2.
There are external converters that should fix the issue on the Vesternet Github at https://github.com/vesternet/zigbee2mqtt-herdsman-converters
Guidance on using external converters is available at https://www.zigbee2mqtt.io/guide/configuration/more-config-options.html#external-converters
These changes will eventually be submitted into the main zigbee2mqtt codebase, I just haven't had time to do that yet.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days
1.5 years later, the converter no longer works. When will the change be implemented in series production? See log.
z2m: Invalid external converter 'VES-ZB-WAL-012_as_button_controller.js' was ignored and renamed to prevent interference with Zigbee2MQTT. (Cannot read properties of undefined (reading 'options'))
PS: warning: z2m: External converters are not meant for long term usage, but for local testing after which a pull request should be created to add out-of-the-box support for the device