zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

VES-ZB-WAL-012 Battery 200%

Open tobiasg021 opened this issue 2 years ago • 4 comments

What happened?

The battery is on 200% Screenshot_20240122_014802_Home Assistant Screenshot_20240122_014751_Home Assistant

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

tobiasg021 avatar Jan 22 '24 00:01 tobiasg021

@martyn-vesternet could you check this?

Koenkk avatar Jan 22 '24 19:01 Koenkk

@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.

martyn-vesternet avatar Jan 30 '24 11:01 martyn-vesternet

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

github-actions[bot] avatar Jul 29 '24 00:07 github-actions[bot]

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

tobiasg021 avatar Nov 03 '25 18:11 tobiasg021