domoticz-zigbee2mqtt-plugin icon indicating copy to clipboard operation
domoticz-zigbee2mqtt-plugin copied to clipboard

Xiaomi Aqara devices with temperature/humudity not updating in Domoticz

Open Flappiee opened this issue 2 years ago • 15 comments

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.

Flappiee avatar Dec 26 '21 20:12 Flappiee

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)?

sammyke007 avatar Jan 05 '22 08:01 sammyke007

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

stas-demydiuk avatar Jan 05 '22 21:01 stas-demydiuk

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

Flappiee avatar Jan 06 '22 08:01 Flappiee

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?

sammyke007 avatar Jan 07 '22 13:01 sammyke007

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

Flappiee avatar Jan 17 '22 11:01 Flappiee

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.

sammyke007 avatar Jan 18 '22 09:01 sammyke007

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.

Flappiee avatar Jan 18 '22 10:01 Flappiee

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

sammyke007 avatar May 19 '22 18:05 sammyke007

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.

Flappiee avatar May 20 '22 04:05 Flappiee

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

sammyke007 avatar May 20 '22 05:05 sammyke007

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

Flappiee avatar May 20 '22 05:05 Flappiee

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

rolfie23 avatar Jun 03 '22 11:06 rolfie23

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

sammyke007 avatar Jun 03 '22 12:06 sammyke007

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

rolfie23 avatar Jun 03 '22 14:06 rolfie23

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

image

sammyke007 avatar Jun 03 '22 15:06 sammyke007

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.

stale[bot] avatar Sep 01 '22 16:09 stale[bot]