zigpy / zha-device-handlers

ZHA device handlers bridge the functionality gap created when manufacturers deviate from the ZCL specification, handling deviations and exceptions by parsing custom messages to and from Zigbee devices.
Apache License 2.0
734 stars 673 forks source link

Tuya T&H devices give in ZHA only half of the battery percentage #3185

Open WilbertWilbers opened 4 months ago

WilbertWilbers commented 4 months ago

Problem description

The Temperature and Humidity devices give in ZHA only half of the battery percentage that was presented in the Tuya Integration before and also in the Zigbee device configuration. The real value is 100%! (so it is 100% end ZHA reports 50%)

image

image

Solution description

Solve the issue if that is possible?

Screenshots/Video

Screenshots/Video [Paste/upload your media here] ![image](https://github.com/zigpy/zha-device-handlers/assets/159058432/7e71f8f4-0a04-4dc6-adf9-e7f88430c1fe) ![image](https://github.com/zigpy/zha-device-handlers/assets/159058432/4da3687f-a08a-4f4a-914d-79740612db38)

Device signature

**Device name TS0601 by _TZE200_yjjdcqsq** ![image](https://github.com/zigpy/zha-device-handlers/assets/159058432/9e6504b1-2bd5-4c61-b317-445bcba94b9e) ```json [Paste the device signature here] ``` **Device name TS0601 by _TZE200_yjjdcqsq**

Diagnostic information

Diagnostic information ```json [Paste the diagnostic information here] ```

Logs

Logs ```python [Paste the logs here] ```

Custom quirk

Custom quirk ```python [Paste your custom quirk here] ```

Additional information

This is my first comment that I posted on github. Please tell me if I haven't put the good fields in this request/error. Thank you.

HelgeGitHub commented 3 months ago

Same issue for _TZE204_yjjdcqsq TS0601 (sensor for temperature and huminity, using ts0601_sensor.py) : From the beginning of usage always battery 50%