Closed marciogranzotto closed 3 years ago
I think i have finding one other device that have getting one patch for this but it was having battery but not working. https://github.com/zigpy/zha-device-handlers/commit/9d01ded6f086438a293430eb43bfe6d16882aa64
The device is having one normal PowerConfiguration.cluster_id,
https://github.com/zigpy/zha-device-handlers/blob/8c61c6da4e44906183a4d96e022e67f8c2ba005d/zhaquirks/konke/temp.py#L35 but is getting one with name PowerConfigurationCluster,
https://github.com/zigpy/zha-device-handlers/blob/8c61c6da4e44906183a4d96e022e67f8c2ba005d/zhaquirks/konke/temp.py#L52 that is being "made" in the quirk root init for devices that is having bad battery readings.
The device type looks OK then its one temp and humidity sensor.
Try doing one quirk with the Konke design konke/temp.py but putting your device signature and cluster and hopefully its being loaded and fixing the battery problem.
Its also possible "cooking" one manual power cluster with different data from the device lik is being made in this commitment https://github.com/zigpy/zha-device-handlers/commit/ddac75b8e407d8e75bf83995e1a0ab1cb63bbcba but i think its better trying the "standard patch".
Is your feature request related to a problem? Please describe. https://zigbee.blakadder.com/Zemismart_ZXZTH.html Temperature and Humidity reports are working, but not battery percentage.
Sniffing the traffic between the sensor and Zemismart's hub, I see that the device reports that it is AC powered (Tuya... right?)
But then happyly reports battery percentage
Describe the solution you'd like Add a quirk that listens to power configuration anyways and ignores the AC powered flag
Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.