Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.74k stars 1.64k forks source link

VES-ZB-WAL-012 Battery 200% #20936

Closed tobiasg021 closed 1 week ago

tobiasg021 commented 7 months ago

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

Koenkk commented 7 months ago

@martyn-vesternet could you check this?

martyn-vesternet commented 7 months ago

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

github-actions[bot] commented 1 month ago

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