Xiaomi Gateway cannot connect after upgrade to 0.77.3

Hello.

I have a running woking installation of Hassbian 0.69.1 without major issues.

I tried upgrading it to Hassbian 0.77.3 in a different SD Card/RPi and now I get these error messages (and some gateway-related devices don’t appear, such as the light.gateway_light_xxxxxxxxxxxx, sensors or binary sensors):

ERROR (Thread-8) [xiaomi_gateway] Cannot connect to Gateway
ERROR (Thread-8) [xiaomi_gateway] No data in response from hub None
ERROR (Thread-8) [xiaomi_gateway] Not a valid device. Check the mac adress and update the firmware.

My Xiaomi Aqara gateway config is the same in both systems:

xiaomi_aqara:
 gateways:
   - mac: !secret xiaomi_mac
     key: !secret xiaomi_key

My current gateway firmware version is 1.4.1_151.0143 and I have a more recent version proposed for update (1.4.1_157.0143), but I haven’t chosen to update yet, but that should not be an issue, unless the Xiaomi component now checks this.

During the upgrade, I noticed a possible related message:
PyXiaomiGateway has requirement cryptography==2.1.1, but you'll have cryptography 2.3.1 which is incompatible

Has anyone faced a similar behavior or have any insights on similar topic?

Thanks in advance.

Add discovery_retry in your configuration it may help.

xiaomi_aqara:
  discovery_retry: 10
  gateways:
    - mac: !secret xiaomi_mac
      key: !secret xiaomi_key
1 Like

i’ve the same issue ;(

Did you solve this issue?