Xiaomi Smart Home Suite (very cheap) compatibilty?

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

lamouette
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?

Post by lamouette »

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:
Capture.PNG
Capture.PNG (37.03 KiB) Viewed 3444 times
levynger
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?

Post by levynger »

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
doelle4
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?

Post by doelle4 »

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..
domotics_sensors.jpg
domotics_sensors.jpg (109.92 KiB) Viewed 3428 times
Greetings Hans
deennoo
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?

Post by deennoo »

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
lamouette
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?

Post by lamouette »

lamouette wrote:Damned you are right, they have the same IDs as doors/windows sensors !
Ok solved. Just remove the doors/windows sensors + the "new" items and after a refresh, only doors/sensors came back :mrgreen:

For the wireless switch, problem also solved with the same method.

Thanks
lamouette
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?

Post by lamouette »

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 ?
pikapt
Posts: 37
Joined: Wednesday 25 January 2017 20:54
Target OS: Linux
Domoticz version:
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by pikapt »

got a few of those as well @lamouette...
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
Wondering if this could be:
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
User avatar
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?

Post by corbin »

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)
drmabuse71
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?

Post by drmabuse71 »

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
lamouette
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?

Post by lamouette »

Yes, with the last release you can do it with an iPhone.
drmabuse71
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?

Post by drmabuse71 »

@lamouette

THX for your quick reply, but can you give me please a hint how to ?
Or a link ?
Kind regards, Michael
lamouette
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?

Post by lamouette »

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.

Image

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

Image
drmabuse71
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?

Post by drmabuse71 »

@lamouette
first of all: THX for your detailed and quick support - GREAT !

But this doesen´t work for me. This happens:
Screenshot
Screenshot
GetFileAttachment.png (36.1 KiB) Viewed 3159 times
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 :-(
User avatar
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?

Post by galadril »

drmabuse71 wrote: But this doesen´t work for me. This happens:GetFileAttachment.png
Have you tried this:
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
drmabuse71
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?

Post by drmabuse71 »

@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 ......
dlefol
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?

Post by dlefol »

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 ;)
murtadin
Posts: 62
Joined: Saturday 31 December 2016 15:33
Target OS: Linux
Domoticz version: beta
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by murtadin »

dlefol wrote: I have a question concerning the gateway which has to be in the same subnet as domoticz...
What's the problem of being in same subnet as domoticz server?
dlefol
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?

Post by dlefol »

murtadin wrote: What's the problem of being in same subnet as domoticz server?
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,
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.
murtadin
Posts: 62
Joined: Saturday 31 December 2016 15:33
Target OS: Linux
Domoticz version: beta
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by murtadin »

dlefol wrote:
murtadin wrote: What's the problem of being in same subnet as domoticz server?
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,
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.
Just add another AP to lan subnet and the problem has gone.
lamouette
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?

Post by lamouette »

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 :-(
I have the same app version as yours but my gateway is not running the same firmware.
Mine is 1.4.1_143.0141
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest