Page 32 of 123

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

Posted: Monday 30 January 2017 11:29
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 3445 times

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

Posted: Monday 30 January 2017 11:57
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

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

Posted: Monday 30 January 2017 13:01
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 3429 times
Greetings Hans

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

Posted: Monday 30 January 2017 13:07
by deennoo
Sensors send information if hum value goes -/+6% or if temp goes +/-0.5°c

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

Posted: Monday 30 January 2017 20:43
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

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

Posted: Tuesday 31 January 2017 9:39
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 ?

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

Posted: Tuesday 31 January 2017 19:28
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

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

Posted: Wednesday 01 February 2017 6:52
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\"}"}

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

Posted: Wednesday 01 February 2017 15:56
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

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

Posted: Wednesday 01 February 2017 16:01
by lamouette
Yes, with the last release you can do it with an iPhone.

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

Posted: Wednesday 01 February 2017 16:53
by drmabuse71
@lamouette

THX for your quick reply, but can you give me please a hint how to ?
Or a link ?
Kind regards, Michael

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

Posted: Wednesday 01 February 2017 16:58
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

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

Posted: Wednesday 01 February 2017 17:12
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 3160 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 :-(

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

Posted: Wednesday 01 February 2017 17:22
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))

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

Posted: Wednesday 01 February 2017 17:30
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 ......

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

Posted: Wednesday 01 February 2017 22:03
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 ;)

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

Posted: Wednesday 01 February 2017 22:27
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?

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

Posted: Wednesday 01 February 2017 22:33
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.

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

Posted: Wednesday 01 February 2017 23:01
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.

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

Posted: Thursday 02 February 2017 14:41
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