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.

Moderators: leecollings, remb0

Post Reply
viriathus
Posts: 8
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Xiaomi Gateway connected but can't control any device

Post 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.
AntoonvdOetelaar
Posts: 15
Joined: Thursday 24 August 2017 14:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Holland
Contact:

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

Post 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 ]
RPI3B, Z-WAVE AEOTEC GEN5, Zigbee2Mqtt, Xiaomi gateway, GPIO, I2C, 1-wire, DS18B20, P1 meter, Growatt, Buienradar, Harmony hub, Domoticz 2020.2
viriathus
Posts: 8
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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.
viriathus
Posts: 8
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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.
AntoonvdOetelaar
Posts: 15
Joined: Thursday 24 August 2017 14:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Holland
Contact:

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

Post by AntoonvdOetelaar »

Strange, because it was exactly the same behaviour I got with the changed password.
RPI3B, Z-WAVE AEOTEC GEN5, Zigbee2Mqtt, Xiaomi gateway, GPIO, I2C, 1-wire, DS18B20, P1 meter, Growatt, Buienradar, Harmony hub, Domoticz 2020.2
askold
Posts: 4
Joined: Sunday 06 May 2018 4:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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.
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

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

Post 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?
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
viriathus
Posts: 8
Joined: Friday 11 May 2018 6:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

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

Who is online

Users browsing this forum: No registered users and 1 guest