Home assistant do not get updates from Mi Motion Sensor & Mi Door sensor (but temperature sensor work fine) #22584

Home Assistant release with the issue:
version - 0.90.2

Operating environment (Hass.io/Docker/Windows/etc.):
VirtualBox (macOS Mojave host) - hassos_ova-2.11.vdi.gz
VB Network - Bridge to en0 (wifi)

Component/platform:
components/xiaomi_aqara

Description of problem:
I have:

  • Xiaomi Mijia Gateway lumi.gateway.v3
  • Motion Sensor (1st generation)
  • Temperature and Humidity Sensor (1st generation)
  • Door and Window Sensor (1st generation)

I can toggle “Gateway Light”, and get information about temperature and humidity but motion sensor dont work.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

xiaomi_aqara: discovery_retry: 5 gateways: - key: KEY_FROM_MY_MI_HOME_APP

Logs

Unable to load /config/known_devices.yaml: Config file not found: /config/known_devices.yaml
11:59 components/device_tracker/__init__.py (ERROR)
Ended unfinished session (id=10 from 2019-03-31 08:31:33.423301)
11:59 components/recorder/__init__.py (WARNING)

I have updates:

  • I try to open door and reload virtual machine.
  • After loading, Door sensor was “opened”
  • I close door and Door sensor switched to “closed”

Then i try to open door again and Door senson do not react on this.

(mihome app react on all events)

I have the same problem.
Solution??

I’m trying to update to 0.91.4 and I get the same problem.

Even worse, the status remains “closed” but in history, I can see status has changed :

It seems it happens for other components, the interface doesn’t get any update of the status ?!

Ok, I could figure out this one : it’s the custom-ui component that causes problems. Commented it out, and everything is fine.