Xiaomi Gateway connected but can't control any device

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
Post Reply
viriathus
Posts: 4
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi
Domoticz version:
Contact:

Xiaomi Gateway connected but can't control any device

Post by viriathus » Friday 11 May 2018 6:51

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.

AntoonvdOetelaar
Posts: 8
Joined: Thursday 24 August 2017 14:15
Target OS: Windows
Domoticz version:
Contact:

Re: Xiaomi Gateway connected but can't control any device

Post by AntoonvdOetelaar » Wednesday 16 May 2018 10:09

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 ]

viriathus
Posts: 4
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Xiaomi Gateway connected but can't control any device

Post by viriathus » Thursday 17 May 2018 12:27

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.

viriathus
Posts: 4
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Xiaomi Gateway connected but can't control any device

Post by viriathus » Monday 21 May 2018 3:07

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.

AntoonvdOetelaar
Posts: 8
Joined: Thursday 24 August 2017 14:15
Target OS: Windows
Domoticz version:
Contact:

Re: Xiaomi Gateway connected but can't control any device

Post by AntoonvdOetelaar » Tuesday 22 May 2018 10:47

Strange, because it was exactly the same behaviour I got with the changed password.

askold
Posts: 5
Joined: Sunday 06 May 2018 4:15
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Xiaomi Gateway connected but can't control any device

Post by askold » Monday 28 May 2018 15:39

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.

snellejellep
Posts: 105
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi
Domoticz version: 3.97xx
Location: The Neterlands
Contact:

Re: Xiaomi Gateway connected but can't control any device

Post by snellejellep » Monday 28 May 2018 19:54

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?
raspberry pi | xiaomi gateway/vacuum | yeelight | philips hue | zwave |ubiquiti unifi | harmony

viriathus
Posts: 4
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Xiaomi Gateway connected but can't control any device

Post by viriathus » Tuesday 29 May 2018 8:10

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...

Post Reply

Who is online

Users browsing this forum: rolleyfernandes and 4 guests