Xiaomi gateway problem configuration - No gateway discovered

Hi guys,

My gateway has stopped working since last updated, I have checked the log and first the log said ‘no gateway discovered’ but after few seconds the gateway is discovered.

I have changed the configuration to include discovery_retry: 10 but the problem still happens.

Here is the log:


$ cat /home/homeassistant/.homeassistant/home-assistant.log | grep xiao
2018-03-12 01:29:24 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: source=bootstrap.py, timestamp=1520814564.9758153, message=Setup of xiaomi_aqara is taking over 10 seconds., exception=, level=WARNING>
2018-03-12 01:30:05 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: source=components/xiaomi_aqara.py, timestamp=1520814605.8204153, message=No gateway discovered, exception=, level=ERROR>
2018-03-12 01:30:05 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: source=setup.py, timestamp=1520814605.8636553, message=Setup failed for xiaomi_aqara: Component failed to initialize., exception=, level=ERROR>
 - [xiaomi-aqara](https://home-assistant.io/components/xiaomi_aqara/)
 - [xiaomi-aqara](https://home-assistant.io/components/xiaomi_aqara/)
2018-03-12 01:30:22 INFO (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: discovered=hostname=lumi-gateway-v3_miio63161375.local., port=54321, properties=mac=34ce00fa7697, epoch=1, host=192.168.1.128, mac_address=34ce00fa7697, service=xiaomi_gw>

Thanks in advance!