Xiaomi sensors status not updated

Hi all, I am using HA (0.83.1) to control my Xiaomi gateway that is connected to several sensors (door, temperature, smart plug, water leak etc). In general the system works fine, and I created different automations, but I have a problem: I noticed that sometimes (I can say in 20% of times) some sensor status changes are not captured by HA. For instance I open the door and I receive a notification, but when I close it, in HA, the status remain “opened” (there is no closure event in the registry), while in the official Mi Home app the status is correctly reported as “closed” (also in the event registry). In order to be see the correct status in HA I need to wait for an unpredictable time (e.g. 30 min) or I need to restart HA.

Is there someone that has the same problem? Is there a way in HA to force the status update of sensors without restart the system (e.g. specific configuration)?

I really would like to use HA, but if the sensor status is not accurate the automations cannot work properly!

Thank you very much for your help!

Martino

Hi, There were several issues reported around th Xiaomi Gateway after the 83.+ update. Slow and no functioning sensor and switches. https://github.com/home-assistant/home-assistant/issues?utf8=✓&q=is%3Aissue+xiaomi+

There are some fixes planned for the next release: https://github.com/home-assistant/home-assistant/pulls?utf8=✓&q=is%3Apr+xiaomi

I hope this is helpful.

Thank you, I will check the next versions.

Have you managed to solve this issues? I have just started using hassio , by integrating my xiaomi gateway, and had similar problem with my door sensor not updating correct status.