Problem with xiaomi gateway

Hi guys, I have problems with xiaomi gateway. Firstly I have problems with the discovery of the gateway. The configuration is correct as after a few restarts of HA all sensors are avaliable. (I don’t put hosts IP nor Mac)

The biggest problem I have is the respond time. It takes over 5 sec for HA to react after motion sensor, switch or cube are being triggered. At is also very unreliable.(I tried to put the Mac address and hosts IP to configuration but it didn’t help)

I’m running hass.io on raspberry pi3 (wifi) The router is a “connect box” from UPC.

Doesn’t anyone have any idea how I can improve the respond time of the sensors?

BTW everything works flawless on xiaomi home app

My gateway working good, here configuration.yaml:

xiaomi_aqara:
  discovery_retry: 10
  gateways:
    - key: !secret key

For good response time it’s better to have it in direct line of sight with sensors and not far away, I tried when my Gateway was in closed cabinet and sensor update time was much slower

This Might be a Dump Question but in your router have you set a static IP address for both your PI and your Xiaomi Gateway?

Yes both have static IPs

I might suggest trying to hardwire your pi into the router to increase its connectivity speed to see if that helps

funny, such a easy trick and it worked :slight_smile:
thanks

1 Like

I’m glad I was able to help :smile: