Problem with multiple Xiaomi Aqara Gateways

Hello everyone!

It has being 10 days now with constant reading and frustration about my setup, I hope someone could help me out here, please!

I have both my house and office connected on the same network (same block). Here is my setup:

  1. Xiaomi Mi Router 3 Office - Internet and DHCP, were one of my Aqara gateways is connected
  2. TP-Link CPE510 Office - Access point, wired to the office router

“Wireless range extender”

  1. TP-Link CPE510 Home - Client, at home, wired to the next router
  2. Xiaomi Mi Router 3 Home - Access point, no DHCP, second Aqara gateway

The problem is that, at home only, my gateway keeps loosing packets when pinging and behaves unstable with HA (Hassio). This only happens when my Pi3B running Hassio is loaded and running, if not, all packets are returned successfully when pinging, very odd right? The moment I boot my Hassio, I think when the component is loaded, it start loosing packets. This doesn’t happens when I disable the Aqara component.

No packets are lost when pinging the office router from my home, the office aqara gateway, my local router and another wireless device at home (broadlink mini) does not skip a packet. I don’t believe that’s a cable problem with my LAN. All cables are new since I’ve moved 6 months ago.

Here is my ping results from my house to my local gateway:

Resposta de 192.168.1.14: bytes=32 tempo=20ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=7ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=405ms TTL=255
Esgotado o tempo limite do pedido.
Esgotado o tempo limite do pedido.
Esgotado o tempo limite do pedido.
Resposta de 192.168.1.14: bytes=32 tempo=4ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=6ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Esgotado o tempo limite do pedido.
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=14ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Esgotado o tempo limite do pedido.
Resposta de 192.168.1.14: bytes=32 tempo=1074ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=6ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=7ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=6ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=414ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=4ms TTL=255
Esgotado o tempo limite do pedido.
Esgotado o tempo limite do pedido.
Esgotado o tempo limite do pedido.
Esgotado o tempo limite do pedido.
Resposta de 192.168.1.14: bytes=32 tempo=3ms TTL=255
Resposta de 192.168.1.14: bytes=32 tempo=10ms TTL=255

And then my log is flooded with this errors:

2018-02-02 11:23:06 ERROR (SyncWorker_18) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:23:06 ERROR (SyncWorker_18) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:23:16 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001231d4d is taking over 10 seconds
2018-02-02 11:23:16 ERROR (SyncWorker_8) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:23:16 ERROR (SyncWorker_8) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:23:37 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001231d4d is taking over 10 seconds
2018-02-02 11:23:37 ERROR (SyncWorker_17) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:23:37 ERROR (SyncWorker_17) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:23:47 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001d68545 is taking over 10 seconds
2018-02-02 11:23:47 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:23:47 ERROR (SyncWorker_10) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:24:08 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001d68545 is taking over 10 seconds
2018-02-02 11:24:08 ERROR (SyncWorker_1) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:24:08 ERROR (SyncWorker_1) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:24:18 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001231d4d is taking over 10 seconds
2018-02-02 11:24:18 ERROR (SyncWorker_15) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:24:18 ERROR (SyncWorker_15) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:24:39 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001231d4d is taking over 10 seconds
2018-02-02 11:24:39 ERROR (SyncWorker_7) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:24:39 ERROR (SyncWorker_7) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:24:49 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001d68545 is taking over 10 seconds
2018-02-02 11:24:49 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:24:49 ERROR (SyncWorker_10) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:25:41 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001231d4d is taking over 10 seconds
2018-02-02 11:25:41 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:25:41 ERROR (SyncWorker_10) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:25:51 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001d68545 is taking over 10 seconds
2018-02-02 11:25:51 ERROR (SyncWorker_2) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:25:51 ERROR (SyncWorker_2) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:27:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001d68545 is taking over 10 seconds
2018-02-02 11:27:45 ERROR (SyncWorker_4) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:27:45 ERROR (SyncWorker_4) [xiaomi_gateway] No data in response from hub None
2018-02-02 11:27:55 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001231d4d is taking over 10 seconds
2018-02-02 11:27:55 ERROR (SyncWorker_17) [xiaomi_gateway] Cannot connect to Gateway
2018-02-02 11:27:55 ERROR (SyncWorker_17) [xiaomi_gateway] No data in response from hub None

Another problem is that most of my commands using wireless switches and automations depending on motion sensors, for example, takes a long time to respond. Also these errors shows up when one of my wireless switches are pressed:

2018-02-02 01:54:21 WARNING (MainThread) [homeassistant.components.script] Script script.botao_xiaomi_sala_02_click_2 already running.
2018-02-02 01:55:15 WARNING (MainThread) [homeassistant.components.script] Script script.botao_xiaomi_sala_02_click_1 already running.
2018-02-02 01:56:50 WARNING (MainThread) [homeassistant.components.script] Script script.botao_xiaomi_sala_02_click_1 already running.
2018-02-02 01:56:52 WARNING (MainThread) [homeassistant.components.script] Script script.botao_xiaomi_sala_02_click_1 already running.

Here are my debug logs from the component:

2018-02-11 12:36:42 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001d68545 is taking over 10 seconds
2018-02-11 12:36:42 ERROR (SyncWorker_15) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:36:42 ERROR (SyncWorker_15) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:36:42 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d00016da83a: on>: {'voltage': 3045}
2018-02-11 12:36:42 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d000120af26: on>: {'voltage': 3035}
2018-02-11 12:36:48 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001231d4d: on>: {'status': 'motion'}
2018-02-11 12:36:48 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001231d4d: on>: {'status': 'motion'}
2018-02-11 12:37:12 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001e035a2 is taking over 10 seconds
2018-02-11 12:37:12 ERROR (SyncWorker_17) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:37:12 ERROR (SyncWorker_17) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:37:12 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001d68545: on>: {'voltage': 2995, 'status': 'open'}
2018-02-11 12:37:12 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001231d4d: on>: {'voltage': 3055}
2018-02-11 12:37:43 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001e035a2 is taking over 10 seconds
2018-02-11 12:37:43 ERROR (SyncWorker_8) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:37:43 ERROR (SyncWorker_8) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:37:45 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001225607: on>: {'status': 'motion'}
2018-02-11 12:37:45 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001225607: on>: {'status': 'motion'}
2018-02-11 12:37:52 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d00015b6c81: off>: {'status': 'motion'}
2018-02-11 12:37:52 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d00015b6c81: on>: {'status': 'motion'}
2018-02-11 12:37:53 ERROR (SyncWorker_19) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:37:53 ERROR (SyncWorker_19) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:37:53 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001d68545 is taking over 10 seconds
2018-02-11 12:38:07 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d00016da83a: on>: {'no_motion': '120'}
2018-02-11 12:38:07 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d00016da83a: off>: {'no_motion': '120'}
2018-02-11 12:38:13 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d000120af26: on>: {'status': 'motion'}
2018-02-11 12:38:13 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d000120af26: on>: {'status': 'motion'}
2018-02-11 12:38:14 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001e035a2 is taking over 10 seconds
2018-02-11 12:38:14 ERROR (SyncWorker_18) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:38:14 ERROR (SyncWorker_18) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:38:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001d68545 is taking over 10 seconds
2018-02-11 12:38:24 ERROR (SyncWorker_19) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:38:24 ERROR (SyncWorker_19) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:38:34 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d00015b6c81 is taking over 10 seconds
2018-02-11 12:38:34 ERROR (SyncWorker_11) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:38:34 ERROR (SyncWorker_11) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:38:35 WARNING (MainThread) [homeassistant.components.binary_sensor] Updating xiaomi_aqara binary_sensor took longer than the scheduled update interval 0:00:30
2018-02-11 12:38:39 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001e43ef1: off>: {'lux': '40'}
2018-02-11 12:38:39 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Illumination_158d0001e43ef1: 308.0>: {'lux': '40'}
2018-02-11 12:38:39 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001e43ef1: off>: {'voltage': 3055, 'lux': '40'}
2018-02-11 12:38:39 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Illumination_158d0001e43ef1: 40.0>: {'voltage': 3055, 'lux': '40'}
2018-02-11 12:38:44 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001225607 is taking over 10 seconds
2018-02-11 12:38:44 ERROR (SyncWorker_9) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:38:44 ERROR (SyncWorker_9) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:38:47 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001225607: on>: {'status': 'motion'}
2018-02-11 12:38:47 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001225607: on>: {'status': 'motion'}
2018-02-11 12:38:48 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001231d4d: on>: {'no_motion': '120'}
2018-02-11 12:38:48 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001231d4d: off>: {'no_motion': '120'}
2018-02-11 12:38:51 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001b8671f: off>: {'voltage': 3005, 'status': 'close'}
2018-02-11 12:38:57 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001231d4d: off>: {'status': 'motion'}
2018-02-11 12:38:57 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001231d4d: on>: {'status': 'motion'}
2018-02-11 12:39:07 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d00016da83a: off>: {'no_motion': '180'}
2018-02-11 12:39:07 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d00016da83a: off>: {'no_motion': '180'}
2018-02-11 12:39:16 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001231d4d is taking over 10 seconds
2018-02-11 12:39:16 ERROR (SyncWorker_9) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:39:16 ERROR (SyncWorker_9) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:39:23 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Switch_158d0001d8eabc: off>: {'voltage': 3042}
2018-02-11 12:39:23 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Switch_158d0001d8eabc: off>: {'voltage': 3042}
2018-02-11 12:39:26 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001225607 is taking over 10 seconds
2018-02-11 12:39:26 ERROR (SyncWorker_6) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:39:26 ERROR (SyncWorker_6) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:39:26 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d000120af26: on>: {'voltage': 3035}
2018-02-11 12:39:26 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001d68545: on>: {'voltage': 2995, 'status': 'open'}
2018-02-11 12:39:26 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d00015b6c81: on>: {'voltage': 3045}
2018-02-11 12:39:26 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001e035a2: on>: {'voltage': 3035, 'status': 'open'}
2018-02-11 12:39:47 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001231d4d is taking over 10 seconds
2018-02-11 12:39:47 ERROR (SyncWorker_3) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:39:47 ERROR (SyncWorker_3) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:39:52 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d00015b6c81: on>: {'no_motion': '120'}
2018-02-11 12:39:52 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d00015b6c81: off>: {'no_motion': '120'}
2018-02-11 12:39:57 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.door_window_sensor_158d0001e035a2 is taking over 10 seconds
2018-02-11 12:39:57 ERROR (SyncWorker_8) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:39:57 ERROR (SyncWorker_8) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:39:57 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001d68545: on>: {'voltage': 2995, 'status': 'open'}
2018-02-11 12:39:57 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001225607: on>: {'voltage': 3055}
2018-02-11 12:40:05 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Illumination_34ce0090940e: 184.0>: {'rgb': 0, 'illumination': 551}
2018-02-11 12:40:05 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Gateway Light_34ce0090940e: off>: {'rgb': 0, 'illumination': 551}
2018-02-11 12:40:13 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d000120af26: on>: {'no_motion': '120'}
2018-02-11 12:40:13 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d000120af26: off>: {'no_motion': '120'}
2018-02-11 12:40:18 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d0001231d4d is taking over 10 seconds
2018-02-11 12:40:18 ERROR (SyncWorker_2) [xiaomi_gateway] Cannot connect to Gateway
2018-02-11 12:40:18 ERROR (SyncWorker_2) [xiaomi_gateway] No data in response from hub None
2018-02-11 12:40:18 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001e035a2: on>: {'voltage': 3035, 'status': 'open'}
2018-02-11 12:40:18 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001d68545: on>: {'voltage': 2995, 'status': 'open'}
2018-02-11 12:40:21 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001231d4d: on>: {'status': 'motion'}
2018-02-11 12:40:21 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001231d4d: on>: {'status': 'motion'}
2018-02-11 12:40:39 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001e035a2: on>: {'voltage': 3035, 'status': 'open'}
2018-02-11 12:40:40 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001d68545: on>: {'voltage': 2995, 'status': 'open'}
2018-02-11 12:40:40 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Motion Sensor_158d0001231d4d: on>: {'voltage': 3055}

Here are my configurations YAML:

xiaomi_aqara:
  gateways:
    - host: 192.168.1.14
      mac: 34:CE:00:92:AE:35
      key: 2D21612C00AB4ECD
    - host: 192.168.1.15
      mac: 34:CE:00:91:94:89
      key: C2B7A10B725A4B82

Does it has something to do with the last update regarding the UDP changes? I have no idea… I’ve even tried to roll back to version 61.1 with no luck. It is not working the latest 63 version as well.

Here is screenshot of all of them pinging:

Thank you very much for your time and effort!

I have the same issues “… is taking over 10 seconds” for xiaomi gateway devices but not so often. I have Xiaomi Mini Wifi and single aqara gateway at home. I can repeat this issue by starting to download something that takes a full bandwidth of the network. At this time not only HA loses UDP packets, but I also get timeouts when connecting to router’s web interface. I thought it’s a router’s problem, so I changed it (something with similar hardware), but it didn’t help.
Generally, I think it’s related to some shit happens in the local network. So you need to debug it. You need to monitor all UDP traffic to understand where are your packets go.

The part related to using UDP in xiaomi_aqara HA component will be rewritten, because it has poor design. But I don’t think it will solve problems like mine and yours.

1 Like

Thank you very much for your help!

I’ve ordered a couple of the new TP-Link archer 3150 to make my LAN mor stable and reliable. If it doesn’t solve my problems, at least I will have a good WiFi network to work with all wireless connected devices. Let’s hope that the new update will fix some of my problems today.

Have a great day!!

2 Likes

Did adding the tp-links help resolve issues with multiple gateways

Hello @aidbish. The problem was solved just before I’ve installed the routers. I believe it was a problem with the component and also IGPM settings on my CPE devices.

Have you tried that? Does it work?

I have the same problem here: