Xiaomi Smart Home Suite (very cheap) compatibilty?
Moderator: leecollings
-
- Posts: 37
- Joined: Friday 20 January 2017 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Damned you are right, they have the same IDs as doors/windows sensors !
Regarding the wireless switch, actions seems to be in the correct order:
Regarding the wireless switch, actions seems to be in the correct order:
-
- Posts: 87
- Joined: Wednesday 21 December 2016 19:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Israel
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Interesting... You can try and remove them from the database and see if they are back.
The hardware Plugin will not update an existing record in the database. So even if you remove the hardware or re add it. I'd the ID is there it will show it.
You can try and download sqlite browser, open the domoticz.db file and open DeviceStatus Table.
Find them there and delete both records.
And press write to file.
Start domoticz service and check if they appear again.
Sent from my SM-N920C using Tapatalk
The hardware Plugin will not update an existing record in the database. So even if you remove the hardware or re add it. I'd the ID is there it will show it.
You can try and download sqlite browser, open the domoticz.db file and open DeviceStatus Table.
Find them there and delete both records.
And press write to file.
Start domoticz service and check if they appear again.
Sent from my SM-N920C using Tapatalk
-
- Posts: 13
- Joined: Thursday 19 January 2017 16:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Thanks @all.
My Sensors are now here since i start my PC after 1 Hour new
But ony 1 Hummidy is displayed, where are the other 2?
All Sensors are the same Type, 1 was correct found the Rest is disappeared..
Greetings Hans
My Sensors are now here since i start my PC after 1 Hour new

But ony 1 Hummidy is displayed, where are the other 2?
All Sensors are the same Type, 1 was correct found the Rest is disappeared..
Greetings Hans
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Sensors send information if hum value goes -/+6% or if temp goes +/-0.5°c
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 37
- Joined: Friday 20 January 2017 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Ok solved. Just remove the doors/windows sensors + the "new" items and after a refresh, only doors/sensors came backlamouette wrote:Damned you are right, they have the same IDs as doors/windows sensors !

For the wireless switch, problem also solved with the same method.
Thanks
-
- Posts: 37
- Joined: Friday 20 January 2017 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Me again 
Am I the onely one who has to force regularly the GW password ?
I am facing to this kind of error : "2017-01-31 06:32:00.624 Error: XiaomiGateway: unable to write command - Invalid Key"
Just going on setup / hardware / click on the gateway and update.
This happened after the night, so no domoticz update done, no reboot of the gateway or domoticz. Strange.
Anyone else ?

Am I the onely one who has to force regularly the GW password ?
I am facing to this kind of error : "2017-01-31 06:32:00.624 Error: XiaomiGateway: unable to write command - Invalid Key"
Just going on setup / hardware / click on the gateway and update.
This happened after the night, so no domoticz update done, no reboot of the gateway or domoticz. Strange.
Anyone else ?
-
- Posts: 37
- Joined: Wednesday 25 January 2017 20:54
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
got a few of those as well @lamouette...
1. Network issues (have 2 access points.. you never know) or
2. Having one of my devices far away from router, causing them to lost their network (zigbee socket is awefull, 10 meters is enough for it to stop working)
3. Anythine else
Wondering if this could be:2017-01-30 21:51:45.212 Error: XiaomiGateway: unable to write command - Invalid Key
2017-01-30 21:51:45.462 Error: XiaomiGateway: unable to write command - Invalid Key
2017-01-30 22:21:44.755 Error: XiaomiGateway: unable to write command - Invalid Key
2017-01-30 22:21:45.006 Error: XiaomiGateway: unable to write command - Invalid Key
2017-01-31 04:48:16.865 Error: XiaomiGateway: unable to write command - Invalid Key
2017-01-31 04:48:17.116 Error: XiaomiGateway: unable to write command - Invalid Key
1. Network issues (have 2 access points.. you never know) or
2. Having one of my devices far away from router, causing them to lost their network (zigbee socket is awefull, 10 meters is enough for it to stop working)
3. Anythine else
- corbin
- Posts: 463
- Joined: Saturday 20 August 2016 22:57
- Target OS: Windows
- Domoticz version: Beta
- Location: Brisbane, Australia
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
To debug the invalid key error, try compiling from https://github.com/corbinmunce/domoticz and compare your log results:
Code: Select all
2017-02-01 15:50:07.259 XiaomiGateway: Token Received - QAnCd9leDR23Xkg6
2017-02-01 15:50:07.259 XiaomiGateway: Token Set - QAnCd9leDR23Xkg6
2017-02-01 15:50:07.261 {"cmd":"heartbeat","model":"gateway","sid":"f0b4299ae4b8","short_id":"0","token":"QAnCd9leDR23Xkg6","data":"{\"ip\":\"192.168.5.15\"}"}
2017-02-01 15:50:17.229 XiaomiGateway: Token Received - 56X96KgfAMHU4tDa
2017-02-01 15:50:17.229 XiaomiGateway: Token Set - 56X96KgfAMHU4tDa
2017-02-01 15:50:17.230 {"cmd":"heartbeat","model":"gateway","sid":"f0b4299ae4b8","short_id":"0","token":"56X96KgfAMHU4tDa","data":"{\"ip\":\"192.168.5.15\"}"}
2017-02-01 15:50:21.923 User: Admin initiated a switch command (60/Xiaomi Smart Plug Test/On)
2017-02-01 15:50:21.925 XiaomiGateway: GetGatewayKey Password - jf0zvto0kp5npru0
2017-02-01 15:50:21.925 XiaomiGateway: GetGatewayKey Token - 56X96KgfAMHU4tDa
2017-02-01 15:50:21.926 XiaomiGateway: GetGatewayKey key - C219FC96F9C017246A58E0A7418B3A61
2017-02-01 15:50:21.990 (Xiaomi Gateway) Light/Switch (Xiaomi Smart Plug Test)
2017-02-01 15:50:22.007 {"cmd":"report","model":"plug","sid":"158d00010ec40b","short_id":6903,"data":"{\"status\":\"on\"}"}
2017-02-01 15:50:22.012 (Xiaomi Gateway) Light/Switch (Xiaomi Smart Plug Test)
2017-02-01 15:50:22.033 {"cmd":"report","model":"plug","sid":"158d00010ec40b","short_id":6903,"data":"{\"status\":\"on\"}"}
2017-02-01 15:50:22.077 XiaomiGateway: request {"cmd":"write","model":"plug","sid":"158d00010ec40b","short_id":9844,"data":"{\"channel_0\":\"on\",\"key\":\"C219FC96F9C017246A58E0A7418B3A61\"}" }
2017-02-01 15:50:22.077 XiaomiGateway: response {"cmd":"write_ack","model":"plug","sid":"158d00010ec40b","short_id":6903,"data":"{\"status\":\"off\",\"inuse\":\"0\"}"}
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
-
- Posts: 10
- Joined: Sunday 29 January 2017 8:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Hi mates,
noop question !
Is it possible to turn on lan-options of the gateway via iPhone and Mi App ?
(as told in Domoticz wiki "tap the toggle switch to enable LAN functions...." but doesen´t work for iPhone)
Gateway is V2, app is V 3.9.0
Is it possible to get the lan-password of the gateway via iPhone app ? same problem.
Or: Is there another way ton enable lan and get the PW.
THX for your help,
kind regards,
Michael
noop question !
Is it possible to turn on lan-options of the gateway via iPhone and Mi App ?
(as told in Domoticz wiki "tap the toggle switch to enable LAN functions...." but doesen´t work for iPhone)
Gateway is V2, app is V 3.9.0
Is it possible to get the lan-password of the gateway via iPhone app ? same problem.
Or: Is there another way ton enable lan and get the PW.
THX for your help,
kind regards,
Michael
-
- Posts: 37
- Joined: Friday 20 January 2017 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Yes, with the last release you can do it with an iPhone.
-
- Posts: 10
- Joined: Sunday 29 January 2017 8:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
@lamouette
THX for your quick reply, but can you give me please a hint how to ?
Or a link ?
Kind regards, Michael
THX for your quick reply, but can you give me please a hint how to ?
Or a link ?
Kind regards, Michael
-
- Posts: 37
- Joined: Friday 20 January 2017 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Hi Michael,
Same way as for the android app.
Inside the application, go to the Gateway, click on the 3 points on top right and choose About.
Give 5 quick click on the middle down off the application and the hidden menus will appear.

Choose the one in the middle, just under ":3.1.1,"

Same way as for the android app.
Inside the application, go to the Gateway, click on the 3 points on top right and choose About.
Give 5 quick click on the middle down off the application and the hidden menus will appear.

Choose the one in the middle, just under ":3.1.1,"

-
- Posts: 10
- Joined: Sunday 29 January 2017 8:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
@lamouette
first of all: THX for your detailed and quick support - GREAT !
But this doesen´t work for me. This happens: No such menue for me.....
But perhaps the mistake is somewhere else ?
App is Ver 3.9.0
Gateway is ver 1.3.0_124.0140
I´m a little bit - helpless
first of all: THX for your detailed and quick support - GREAT !
But this doesen´t work for me. This happens: No such menue for me.....
But perhaps the mistake is somewhere else ?
App is Ver 3.9.0
Gateway is ver 1.3.0_124.0140
I´m a little bit - helpless

- galadril
- Posts: 828
- Joined: Monday 07 September 2015 10:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Have you tried this:drmabuse71 wrote: But this doesen´t work for me. This happens:GetFileAttachment.png
Select your Gateway in Mi Home, then the 3 dots at the top right of the screen, then click on about. Tap the version number at the bottom of the screen repeatedly until you enable developer mode - you should now have 2 extra options listed in Chinese. Choose the first new option, and then tap the toggle switch to enable LAN functions. Note down the password (91bg8zfkf9vd6uw7 in the screenshot). Make sure you hit the OK button (to the right of the cancel button) to save your changes.
(From the wiki: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara))
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
https://play.google.com/store/apps/deta ... ongmonitor
-
- Posts: 10
- Joined: Sunday 29 January 2017 8:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
@galadrill
THX for your response, but doesn´t work for me.
1) There is no version number shown at the bottom of the "About" page
2) by clicking 5 times fast a hidden menue appears, but not the suggested one
Do I own perhaps a Gateway version 1 ?? Wlan shows "lumi-gateway-v2_miio1212303" - so I think it´s a V2.
Country is set to China ......
THX for your response, but doesn´t work for me.
1) There is no version number shown at the bottom of the "About" page
2) by clicking 5 times fast a hidden menue appears, but not the suggested one
Do I own perhaps a Gateway version 1 ?? Wlan shows "lumi-gateway-v2_miio1212303" - so I think it´s a V2.
Country is set to China ......
-
- Posts: 35
- Joined: Monday 21 December 2015 16:35
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Hello,
I have a question concerning the gateway which has to be in the same subnet as domoticz... does it need to be the case all the time or is it only at discovery time that it is requiered ? I've had a quick look at the code and I can see a multicast address used at discovery time (which I guess is the reason behing having to be in the same subnet).
I'm asking because I have a LAN and a WLAN subnet on my network and domoticz is on the LAN one whereas the gateway is on the WLAN one. I have added the gateway in domoticz and the log says that the gateway worker is started, but then nothing: no sensors added to the device list and no more log messages.
Changing my network configuration is not an option for the time being. I can find ways to temporarily put the gateway and domoticz on the same subnet if the problem is only at discovery time, but if it needs to be always on the same subnet I guess I won' t be able to use my xiaomi devices
.... I should have read the wiki in more details before ordering them 
I have a question concerning the gateway which has to be in the same subnet as domoticz... does it need to be the case all the time or is it only at discovery time that it is requiered ? I've had a quick look at the code and I can see a multicast address used at discovery time (which I guess is the reason behing having to be in the same subnet).
I'm asking because I have a LAN and a WLAN subnet on my network and domoticz is on the LAN one whereas the gateway is on the WLAN one. I have added the gateway in domoticz and the log says that the gateway worker is started, but then nothing: no sensors added to the device list and no more log messages.
Changing my network configuration is not an option for the time being. I can find ways to temporarily put the gateway and domoticz on the same subnet if the problem is only at discovery time, but if it needs to be always on the same subnet I guess I won' t be able to use my xiaomi devices


-
- Posts: 62
- Joined: Saturday 31 December 2016 15:33
- Target OS: Linux
- Domoticz version: beta
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
What's the problem of being in same subnet as domoticz server?dlefol wrote: I have a question concerning the gateway which has to be in the same subnet as domoticz...
-
- Posts: 35
- Joined: Monday 21 December 2015 16:35
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
The problem is that my domoticz server is on my wired LAN network whereas the gateway is on my wifi network which, in my case, are on two different subnet,murtadin wrote: What's the problem of being in same subnet as domoticz server?
When I add the gateway to domoticz, no sensors appears on my device list. Since the wiki specifies that both domoticz and the gateway must be on hte same subnet, I guess this is the source of my problems.
-
- Posts: 62
- Joined: Saturday 31 December 2016 15:33
- Target OS: Linux
- Domoticz version: beta
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Just add another AP to lan subnet and the problem has gone.dlefol wrote:The problem is that my domoticz server is on my wired LAN network whereas the gateway is on my wifi network which, in my case, are on two different subnet,murtadin wrote: What's the problem of being in same subnet as domoticz server?
When I add the gateway to domoticz, no sensors appears on my device list. Since the wiki specifies that both domoticz and the gateway must be on hte same subnet, I guess this is the source of my problems.
-
- Posts: 37
- Joined: Friday 20 January 2017 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
I have the same app version as yours but my gateway is not running the same firmware.drmabuse71 wrote:@lamouette
first of all: THX for your detailed and quick support - GREAT !
But this doesen´t work for me. This happens:GetFileAttachment.png
No such menue for me.....
But perhaps the mistake is somewhere else ?
App is Ver 3.9.0
Gateway is ver 1.3.0_124.0140
I´m a little bit - helpless
Mine is 1.4.1_143.0141
Who is online
Users browsing this forum: No registered users and 1 guest