Configuration of xiaomi gateway - help needed

hi,

i posted this in the hass.io forum - i think i was wrong there.

i tried to integrate the xiaomi gateway into my hass.io installtion by following this tutorial:
home-assistant.io1
Xiaomi Gateway (Aqara)

Instructions for how to integrate the Xiaomi Gateway (Aqara) within Home Assistant.

i also tried all the hints at the end of the page. unfortunately it did not work, the log files shows this:

2017-10-03 00:29:42 WARNING (MainThread) [homeassistant.setup] Setup of xiaomi_aqara is taking over 10 seconds.
2017-10-03 00:30:22 ERROR (SyncWorker_12) [homeassistant.components.xiaomi_aqara] No gateway discovered
2017-10-03 00:30:22 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi_aqara: Component failed to initialize.

my config file looks that way:

xiaomi_aqara:
discovery_retry: 10
gateways:

    mac:
    key: 166EFD08A226xxxx

i can see the gateway in the admin-area of the rooter, it is on the same network as all other devices.

do you have any hints why this does not work?

Check this way

xiaomi_aqara: 
  gateways:
    - mac:
      key: 166EFD08A226xxxx

And use lowercase in your key for gateway.

I had the gateway connected with config variables such as host, mac, key, interval… it worked and I was abale to customise my sensors…

When I rebooted it said it could not connect…
have been trying everything leaving on the key field with lowercase in the key (15adca…) nothing still wont connect.

I can conenct via the app and my router is telling me that the device is online…

any ideas?