Xiaomi Aqara sensor update does not work

Hello,

I am having a problem with updates of sensors. I am having door and temperature sensors. My gateway firmware is 1.4.1_150.0143, I am using latest hass and I am running it on Windows Server 2016 from console. Discovery works and sensor data is refreshed at hass restart. After that no new data is visible in UI.

I am getting one error on hass startup:

[31m2017-10-30 20:12:15 ERROR (MainThread) [homeassistant.components.sensor] Error on device update!e[0m
Traceback (most recent call last):
  File "c:\program files\python36\lib\site-packages\homeassistant\helpers\entity_component.py", line 216, in async_add_entity
    yield from entity.async_device_update(warning=False)
  File "c:\program files\python36\lib\site-packages\homeassistant\helpers\entity.py", line 309, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "c:\program files\python36\lib\asyncio\futures.py", line 332, in __iter__
    yield self  # This tells Task to wait for completion.
  File "c:\program files\python36\lib\asyncio\tasks.py", line 250, in _wakeup
    future.result()
  File "c:\program files\python36\lib\asyncio\futures.py", line 245, in result
    raise self._exception
  File "c:\program files\python36\lib\concurrent\futures\thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\program files\python36\lib\site-packages\homeassistant\components\sensor\systemmonitor.py", line 124, in update
    self._state = round(psutil.disk_usage(self.argument).free /
  File "c:\docker\hass\config\deps\Python36\site-packages\psutil\__init__.py", line 2050, in disk_usage
    return _psplatform.disk_usage(path)
  File "c:\docker\hass\config\deps\Python36\site-packages\psutil\_pswindows.py", line 249, in disk_usage
    total, free = cext.disk_usage(path)

In Wireshark I am seeing UDP multicast packets from hub, so data from hub is comming. Sample data looks OK and one packet from temperature sensor looks like this:

I ran out of ideas how to solve this issue.

Do you have any idea?

Tnx

Have you tried to enable debugging for the component?

The error you see is for the systemmonitor sensor.

Thank you for quick response.

I enabled now debug logging for aqara and I cannot see anything meaningful. There are no new logs after 5 minutes of running.
C:\temp>hass -c c:\docker\hass\config
Config directory: c:\docker\hass\config
e[32m2017-10-31 12:51:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off>e[0m
e[32m2017-10-31 12:51:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_on>e[0m
e[32m2017-10-31 12:51:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=toggle>e[0m
e[32m2017-10-31 12:51:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=stop>e[0m
e[32m2017-10-31 12:51:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=restart>e[0m
e[32m2017-10-31 12:51:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=check_config>e[0m
e[32m2017-10-31 12:51:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=reload_core_config>e[0m
e[32m2017-10-31 12:51:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=create>e[0m
e[32m2017-10-31 12:51:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=dismiss>e[0m
e[32m2017-10-31 12:51:46 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initializede[0m
e[32m2017-10-31 12:51:47 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.historye[0m
e[32m2017-10-31 12:51:47 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recordere[0m
e[32m2017-10-31 12:51:47 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.httpe[0m
e[32m2017-10-31 12:51:47 INFO (MainThread) [homeassistant.loader] Loaded logger from homeassistant.components.loggere[0m
e[32m2017-10-31 12:51:47 INFO (MainThread) [homeassistant.setup] Setting up loggere[0m
e[33m2017-10-31 12:51:47 WARNING (MainThread) [homeassistant.components.xiaomi_aqara] Static address (192.168.202.108:9898) of the gateway provided. Discovery of this host will be skipped.e[0m
e[36m2017-10-31 12:51:48 DEBUG (SyncWorker_2) [homeassistant.components.xiaomi_aqara] Expecting 1 gatewayse[0m
e[32m2017-10-31 12:51:48 INFO (SyncWorker_2) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 1)e[0m
e[33m2017-10-31 12:51:48 WARNING (SyncWorker_16) [requests.packages.urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.202.150e[0m
e[33m2017-10-31 12:51:48 WARNING (SyncWorker_8) [requests.packages.urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.202.150e[0m
e[33m2017-10-31 12:51:48 WARNING (SyncWorker_11) [requests.packages.urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.202.150e[0m
e[36m2017-10-31 12:51:53 DEBUG (SyncWorker_2) [homeassistant.components.xiaomi_aqara] Gateways discovered. Listening for broadcastse[0m