My Xiaomi gateway worked well, but since some days I can’t get it to connect anymore. In the logs from home assistant I see:
2017-08-20 16:51:19 ERROR (SyncWorker_0) [homeassistant.components.xiaomi] No gateway discovered
2017-08-20 16:51:20 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi: Component failed to initialize.
I can however perfectly reach it through the MiHome app.
The local api mode is on and everything is triple checked…
I pushed the button on the gateway for 10 seconds and reconnected it with the gateway, turned local api on again and updated the token, no luck.
Is there a way to hard code the IP or test/debug anything?
I’m having the same problem setting up my gateway for the first time. I’ve got all of my IoT devices on my Guest wifi network and wondering if that’s blocking my HA computer from finding the Gateway or vv. Will test it when I get a chance tomorrow. Am I correct in thinking that the key: field requires what the app refers to as password? Does this field need quote marks like the IP address if we use interface:?
The error message I’m getting is:
2017-08-23 00:19:29 ERROR (MainThread) [homeassistant.loader] Unable to find component xiaomi
2017-08-23 00:19:29 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi: Component not found.
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
I had a lot of hassle getting it to work turn out to be a problem with mulicasting and my router. I was using another wifi router as a bridge for a while but found out that if I disabled IGMP snooping it works with no problems on my original router.
enable the LAN access again and again and angain
but Can not communicate with udp
i’am edited PyXiaomiGateway to test
There are no cases of the same feedback?
I am having the same issues here. It has to work with my router (somebody says it is possible that the wifi-router isn`t compatible), because a buddy has the same router and it works.
Its the latest version of HA (0.52) and of the Xiaomi-Gateway (1.41_149.0143). And installed the factory new xiaomi.stuff yesterday for the first time.
I do not know for your concern… sorry.
I’ve encounter some errors too and I think one can update the xiaomi gateway guide :
In new android app, to enable the advanced menu (to switch on LAN for your gateway) you need to click several time on the version number in the about section (not in the white area as in the community post)
To have your access token, it’s not necessary to use adb or something else. The token is in the infos of the advanced options.
Oh no! The first(?) person who stumbled upon the token & key information on the same page. The key is needed for the xiaomig gateway (zigbee). The token is just needed for xiaomi wifi devices without an open api (vacuum.xiaomi, xiaomi_philipslight and xiaomi_plug).
When I listen to 224.0.0.50:4321 while restarting home-assistant, I can see the “whois” message from my NAS. And when I send a message from the app, I can see it whith a tcpdump on the NAS. With a tcpdump, the only multicast data I’ve seen from the gateway are the mDNS ones.
Like @PatteWi, my gateway is brand new and I don’t have any subdevice on it yet. Maybe that’s the reason it’s not sending anything ?