home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.46k stars 30.69k forks source link

Unable to add Xiaomi Gateway device "lumi.gateway.v3" #31333

Closed Bryksin closed 4 years ago

Bryksin commented 4 years ago

Hi

I'm unable to connect to my Gateway, seems like I'm correctly following instructions, but still have a problems, here are details:

Running Home-Assistance as docker using host network, run command was:

docker run -it --rm --name="home-assistant" -e "TZ=Europe/Dublin" -v /home/vadim/home-assistant/config:/config --net=host homeassistant/home-assistant:latest

configuration.yaml content:

xiaomi_aqara:
  gateways:
    - mac: 04:CF:8C:A0:B0:5E
      key: 522rq7e6kp5dbvqw

Xiaomi Home Configuration Screenshots: enabled_lan stats

Router screenshot - confirming MAC address: router

logs:

2020-01-30 23:12:31 INFO (SyncWorker_7) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 2)
2020-01-30 23:12:36 WARNING (MainThread) [homeassistant.setup] Setup of xiaomi_aqara is taking over 10 seconds.
2020-01-30 23:12:36 INFO (SyncWorker_7) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2020-01-30 23:12:36 INFO (SyncWorker_7) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 3)
2020-01-30 23:12:41 INFO (SyncWorker_7) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2020-01-30 23:12:41 ERROR (SyncWorker_7) [homeassistant.components.xiaomi_aqara] No gateway discovered
2020-01-30 23:12:41 INFO (MainThread) [homeassistant.setup] Setup of domain xiaomi_aqara took 15.2 seconds.
2020-01-30 23:12:41 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi_aqara: Integration failed to initialize.

Am I doing anything wrong? Did I missed something from the official guide? Can't set it up :(

Please help

probot-home-assistant[bot] commented 4 years ago

Hey there @danielhiversen, @syssi, mind taking a look at this issue as its been labeled with a integration (xiaomi_aqara) you are listed as a codeowner for? Thanks!

zavrazhny commented 4 years ago

Type MAC without colon. This works for me:

xiaomi_aqara:
  discovery_retry: 5
  gateways:
    - mac: 7C49EB1D14D2
      key: 5C73C5F463344F98
      host: 192.168.0.101
lyogavin commented 4 years ago

I had similar issue. It seems like on the upgraded firmwire "whois" already not working?

Bryksin commented 4 years ago

I found this topic on Domoticz forum (I attempted to connect my Gateway to Domoticz too, no luck)

https://www.domoticz.com/forum/viewtopic.php?t=27415

It seems like they closed port and to open it again, need to disassemble device, soldier wires to make service COM port connection and then send command to open port.

Im wondering if I will buy new Aqara Gateway, will it be the same problem as with Lumi?

Bryksin commented 4 years ago

I confirm, that issue is solved after I manage to solder and connect serial connection and issue command to open port.

Closing this ticket.

vid11111 commented 1 year ago

Type MAC without colon. This works for me:

xiaomi_aqara:
  discovery_retry: 5
  gateways:
    - mac: 7C49EB1D14D2
      key: 5C73C5F463344F98
      host: 192.168.0.101

And for me