Hey guys! Maxi again.
I am currently working on integrating a Xiaomi hub. As my Xiaomi devices all go to sleep when used with a smart thing hub. And I am having this issue.
2018-11-21T16:45:07.523967062Z 2018-11-21 11:45:07 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:07.526756508Z 2018-11-21 11:45:07 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 2)
2018-11-21T16:45:08.048827872Z 2018-11-21 11:45:08 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 5.8 seconds.
2018-11-21T16:45:12.249352575Z 2018-11-21 11:45:12 WARNING (MainThread) [homeassistant.setup] Setup of xiaomi_aqara is taking over 10 seconds.
2018-11-21T16:45:12.485041810Z 2018-11-21 11:45:12 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform hydroquebec is taking over 10 seconds.
2018-11-21T16:45:12.530112311Z 2018-11-21 11:45:12 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:12.530605302Z 2018-11-21 11:45:12 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 3)
2018-11-21T16:45:15.693103559Z 2018-11-21 11:45:15 INFO (MainThread) [homeassistant.components.sensor.hydroquebec] Contract list: 311768024
2018-11-21T16:45:15.695535972Z 2018-11-21 11:45:15 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 13.4 seconds.
2018-11-21T16:45:17.537055812Z 2018-11-21 11:45:17 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:17.537415052Z 2018-11-21 11:45:17 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 4)
2018-11-21T16:45:22.543471091Z 2018-11-21 11:45:22 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:22.546559379Z 2018-11-21 11:45:22 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 5)
2018-11-21T16:45:27.553622477Z 2018-11-21 11:45:27 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:27.553735703Z 2018-11-21 11:45:27 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 6)
2018-11-21T16:45:32.558679808Z 2018-11-21 11:45:32 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:32.559476164Z 2018-11-21 11:45:32 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 7)
2018-11-21T16:45:37.565490601Z 2018-11-21 11:45:37 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:37.566308284Z 2018-11-21 11:45:37 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 8)
2018-11-21T16:45:42.572332632Z 2018-11-21 11:45:42 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:42.573976242Z 2018-11-21 11:45:42 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 9)
2018-11-21T16:45:47.580196836Z 2018-11-21 11:45:47 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:47.580906831Z 2018-11-21 11:45:47 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 10)
2018-11-21T16:45:52.585565156Z 2018-11-21 11:45:52 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:52.586210087Z 2018-11-21 11:45:52 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 11)
2018-11-21T16:45:57.592218519Z 2018-11-21 11:45:57 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:45:57.592790400Z 2018-11-21 11:45:57 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 12)
2018-11-21T16:46:02.598529603Z 2018-11-21 11:46:02 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:46:02.599068685Z 2018-11-21 11:46:02 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 13)
2018-11-21T16:46:07.605155201Z 2018-11-21 11:46:07 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:46:07.605839375Z 2018-11-21 11:46:07 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 14)
2018-11-21T16:46:12.611833515Z 2018-11-21 11:46:12 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:46:12.612724069Z 2018-11-21 11:46:12 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 15)
2018-11-21T16:46:17.618837874Z 2018-11-21 11:46:17 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-11-21T16:46:17.619549637Z 2018-11-21 11:46:17 ERROR (SyncWorker_6) [homeassistant.components.xiaomi_aqara] No gateway discovered
2018-11-21T16:46:17.626605348Z 2018-11-21 11:46:17 INFO (MainThread) [homeassistant.setup] Setup of domain xiaomi_aqara took 75.4 seconds.
2018-11-21T16:46:17.626708606Z 2018-11-21 11:46:17 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi_aqara: Component failed to initialize.
2018-11-21T16:46:17.641451715Z 2018-11-21 11:46:17 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 76.61s
2018-11-21T16:46:17.641543878Z 2018-11-21 11:46:17 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2018-11-21T16:46:17.644244906Z 2018-11-21 11:46:17 INFO (MainThread) [homeassistant.core] Timer:starting
2018-11-21T16:46:18.304338364Z 2018-11-21 11:46:18 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.0.11 (auth: False)
2018-11-21T16:46:18.321916444Z 2018-11-21 11:46:18 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.0.11 (auth: False)
2018-11-21T16:46:18.392038194Z 2018-11-21 11:46:18 INFO (MainThread) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2018-11-21T16:46:31.135628041Z 2018-11-21 11:46:31 INFO (MainThread) [homeassistant.components.discovery] Found new service: xiaomi_gw {'host': '192.168.0.189', 'port': 54321, 'hostname': 'lumi-gateway-v3_miio98936151.local.', 'properties': {'epoch': '1', 'mac': '7c49ebb19339'}, 'mac_address': '7c49ebb19339'}
As you can see on the last line, The Gateway is discovered. Yet it cannot connect. I tripled checked and the password is exactly the same.
I use the following config:
xiaomi_aqara:
discovery_retry: 15
gateways:
- key: tvmba2adyc3h653b
Thanks in advance!