Page 1 of 1
Xiaomi Gateway connected but can't control any device
Posted: Friday 11 May 2018 6:51
by viriathus
Hi guys,
I'm a noob here and just installed Domoticz on Raspberry Pi successfully... I can login to the website and even add my Xiaomi Gateway successfully. It finds all the devices just fine, etc... No probs so far.
However, although the devices are working and I can see their status and data on the domoticz dashboard (e.g. if they are on or off, voltage readings, lux values, etc), when I press the controls / buttons to turn them on or off, nothing happens. If I use the Xiaomi app to turn on the devices, that works and their status get reflected on Domoticz.
I tried turning on the light on the gateway, turn on Smart plugs, etc and nothing... I checked the logs and there are no errors!
My version of the gateway is currently 2.55.3.
Anyone know why this is happening and how it can be fixed?
Thanks.
Re: Xiaomi Gateway connected but can't control any device
Posted: Wednesday 16 May 2018 10:09
by AntoonvdOetelaar
Most probably your key / password from Xiaomi is not correct. I have had it that it was changed at some point. Please follow the wiki again.
https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Then the 3 dots at the top right of the screen
Then click on about
Tap the version (2.36 is the current Android version as of 7 October 2017) number at the bottom of the screen repeatedly
You should see now 2 extra options listed in English (was Chinese in earlier versions)until you did now enable the developer mode. [ if not try all steps again!]
Choose the first new option
Then tap the first toggle switch to enable LAN functions. Note down the password (29p9i40jeypwck38 in the screenshot). Make sure you hit the OK button (to the right of the cancel button) to save your changes.
If you change here something, you lose your password! [ this password you need in Domoticz ]
Re: Xiaomi Gateway connected but can't control any device
Posted: Thursday 17 May 2018 12:27
by viriathus
Thanks... I'll double check that as soon as possible, but what is strange is that it detected all the devices in the house and it can see their status, just can't control them.
If the password was wrong, would it not also stop seeing the status of the devices, like lux values?
Thanks again and appreciate your help.
Re: Xiaomi Gateway connected but can't control any device
Posted: Monday 21 May 2018 3:07
by viriathus
Hi... I double checked the password and it was correct... I tried adding it again by deleting the Hardware and re-adding it following the instructions and although it finds all the devices, etc, the commands from domoticz are ignored by the gateway... No errors though that I can tell.
It's really strange and I am not sure what to do next... Could it be that the latest Xiaomi Gateway firmware changed something and it doesn't work anymore?
Thanks.
Re: Xiaomi Gateway connected but can't control any device
Posted: Tuesday 22 May 2018 10:47
by AntoonvdOetelaar
Strange, because it was exactly the same behaviour I got with the changed password.
Re: Xiaomi Gateway connected but can't control any device
Posted: Monday 28 May 2018 15:39
by askold
I had it when I made a mistake with the IP address. It turns out that the data from the gateway are transmitted as a multicast and are accepted independed of the correctness of the IP. But for control, you need to send commands to the correct address. In addition, the transmission goes via UDP, not TCP, without monitoring the success of the transfer.
Re: Xiaomi Gateway connected but can't control any device
Posted: Monday 28 May 2018 19:54
by snellejellep
well, i do not know what i am doing wrong but mine seems to disconnect after 12 hours or so and then i need to set it up again with the app. really anoying. anyone had this too and fixed it?
Re: Xiaomi Gateway connected but can't control any device
Posted: Tuesday 29 May 2018 8:10
by viriathus
Thanks all... got it all working now for me... in my haste I mistyped the developer key/password.... twice!
So, as long as the IP and the dev key are correct, it should work...