Xiaomi Aqara gateway not working

I’ve got my gateway and set it up with the Android app according to the docs. Works perfectly fine in the app. But when I add it to Home Assistant it can’t find it.

Config right now:

xiaomi_aqara:
gateways:
- mac:
key: keyhere

I’ve tried with mac, without mac, with key, without key, with host, without host, discovery on, discovery off. It doesn’t seem to matter.

Error:
2017-12-29 21:10:46 ERROR (SyncWorker_5) [homeassistant.components.xiaomi_aqara] No gateway discovered
2017-12-29 21:10:46 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi_aqara: Component failed to initialize.

I can ping the IP (static) from Home Assistant of the gateway, and other network devices are working fine.

Make sure you don’t have the colons in the Mac address. I had trouble due to this.

Thanks.

I had a raspberry with Hassio also laying somewhere, and when I copy the config it works!

I run my main Home Assistant with Docker on a Synology. Any idea if that’s the problem?

Sorry. I have only ever used hassio on rpi.