stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 98 forks source link

Xiaomi Aqara devices with temperature/humudity not updating in Domoticz #757

Closed Flappiee closed 2 years ago

Flappiee commented 2 years ago

Issue description I have a few Xiaomi Aqara temperature sensors. Alle of there sensors stopped updating it's temperature and humudity in Domoticz. The Zigbee2MQTT interface is showing the correct values. If i check my devices in Domoticz, it showed up as "0x00158d0002c77714_th" This device doesn't have the correct values. The device "0x00158d0002c77714" has the correct values. Howver, i always use the _the device which only shows temp and humity (and not the device that shows pressure)

Additional information Zigbee2MQTT version: 1.22.1 (and also tried latest dev: 1.22.1-dev commit: b0585172) Python version: pi@domoticz:~ $ python --version: Python 2.7.16 | pi@domoticz:~ $ python3 --version: Python 3.7.3 Domoticz version: Version: 2021.1 (build 13949) Plugin version: 3.1.0 BETA

For example, as you can see, the device ending with "_th" isn't updated anymore: 2021_12_26_21_37

Zigbee2MQTT Web Gui is showing the correct values: 2021_12_26_21_38_13

It looks like it stopped working around 9 december. Can't remember what exaclty changed. I think it whas the update to Zigbee2MQTT version 1.22.1 and the latest BETA plugin of Zigbee2MQTT plugin. Howver, it shows up correctly in Zigbee2MQTT web gui, so i think there is something broken in the plugin.

sammyke007 commented 2 years ago

Yeah stas, can you please fix this? The "_th" devices are not used any longer. I don't need pressure, so I would like to have them back if possible. See this commit WSDCGQ11LM is the device. So that it adds/creates (Temperature + Humidity + Barometer) for a thb device, but also a (Temperature + Humidity)?

stas-demydiuk commented 2 years ago

Try to just remove this _th device from Domoticz and restart the plugin, after that plugin should re-create the broken device

Flappiee commented 2 years ago

When removing the device i will lose all history. Is there an other option to fix this?

sammyke007 commented 2 years ago

Try to just remove this _th device from Domoticz and restart the plugin, after that plugin should re-create the broken device

AFAIK it only creates a T+H+B device and not a T+H device. Is that correct?

Flappiee commented 2 years ago

I removed 3 temperature sensors and restarted Domoticz to get them recreated. They all show this information (so no temp and so on): 2022_01_17_12_34_13

sammyke007 commented 2 years ago

It didn't work for me neither, but did you wait at least 50 minutes to receive a device update? Aqara/Xiaomi battery devices send data every 50 minutes.

Flappiee commented 2 years ago

Yes, thank you. I see most of them are updated now. 2 are missing and i think their battery needs to be replaced. But what happend with the plugin? Looks like things has changed since i don't have _th devices anymore. They all show their zigbee address as id an the plugin creates unit numbers.

sammyke007 commented 2 years ago

Any update on this? Are temp+hum devices created again or only temp+hum+bar? I'm still on v3.0 because of this...

Flappiee commented 2 years ago

I'm on latest beta 3.1. i removed the devices and they are recreated and after this they are working again. You will lose your history by recreating the devices.

sammyke007 commented 2 years ago

Are they created as temp + humidity only or as temp + humidity + barometer? Or both?

Flappiee commented 2 years ago

I have: Temp Temp + Humidity Humidity Temp + Humidity + Baro Baro

rolfie23 commented 2 years ago

@stas-demydiuk can we get the _th device back again? year ago or so we also asked for it. You made the _th device back. Don't want to deleted it because of the log of 4 years and longer. It makes now an thb device, but you can't replace those in domoticz.

sammyke007 commented 2 years ago

@rolfie23, I have updated and the plugin created a temp, hum, barom, temp+hum and a temp+hum+barom device for each Aqara temperature sensor. I'm on the latest commit. Working fine except the SQL errors, but everything works.

rolfie23 commented 2 years ago

@rolfie23, I have updated and the plugin created a temp, hum, barom, temp+hum and a temp+hum+barom device for each Aqara temperature sensor. I'm on the latest commit. Working fine except the SQL errors, but everything works.

Okay, here that didn't happen. Going to look when I have some time. Reverted back to dev branche, errors also gone. Definitely not stable yet.

sammyke007 commented 2 years ago

This is what 1 of my Aqara tempsensors looks like on the latest plugin version:

image

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.