Page 17 of 123

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

Posted: Thursday 12 January 2017 23:34
by deennoo
corbin wrote:The no_close message has changed from

Code: Select all

"data":"{\"status\":\"no_close\"}"
to

Code: Select all

"data":"{\"no_close\":\"60\"}"
the 60 looks to be the time in seconds the door has been open, which is more useful. I'll get the Domoticz code updated to handle it soon.
Check about PIR maybe it's the same.

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

Posted: Thursday 12 January 2017 23:40
by Mat2Vence
Does anyone succeed to find a way to send command to the mi home? Would be nice to be able to play the alarm, ring and play with the RGB?

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

Posted: Thursday 12 January 2017 23:44
by corbin
Mat2Vence wrote:Does anyone succeed to find a way to send command to the mi home? Would be nice to be able to play the alarm, ring and play with the RGB?
The light can be controlled via the API, don't know about the alarm/audio yet. None of this is in Domoticz yet.

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

Posted: Friday 13 January 2017 0:01
by Mat2Vence
corbin wrote: The light can be controlled via the API, don't know about the alarm/audio yet. None of this is in Domoticz yet.
Is there any example of that? I have the switch, PIR and door sensor in the device list but nothing else.
Is there some documentation somewhere of the xiaomi API?

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

Posted: Friday 13 January 2017 0:16
by corbin
Mat2Vence wrote: Is there any example of that? I have the switch, PIR and door sensor in the device list but nothing else.
Is there some documentation somewhere of the xiaomi API?
https://translate.google.com/translate? ... edit-text=

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

Posted: Friday 13 January 2017 1:08
by murtadin
Still can't run domoticz on my linux server normally. RGBW yeelight works, but gateway and all attached devices don't. Updated today my system, upgraded kernel and still no luck. Configuring, making without any errors. If i restore DB from backup - got this error in log:

Code: Select all

2017-01-13 01:53:54.637  User: Admin initiated a switch command (16/Xiaomi Smart Plug/On)
2017-01-13 01:53:54.637  0117A188
2017-01-13 01:53:54.787  XiaomiGateway: response {"cmd":"write_ack","sid":"158d000117a188","data":"{\"error\":\"Invalid key\"}"}
Pls help me debug this andput this to work. Can provide any information you need. :( :( :(

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

Posted: Friday 13 January 2017 1:10
by deennoo
Message is explicit : invalid key

Are you sure of your key ? Did you respect min and maj ?

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

Posted: Friday 13 January 2017 1:12
by corbin
deennoo wrote: Check about PIR maybe it's the same.
yes it is, I'll have some updates to do over the weekend!

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

Posted: Friday 13 January 2017 1:13
by murtadin
deennoo wrote:Message is explicit : invalid key

Are you sure of your key ? Did you respect min and maj ?
Of course key is correct. I have checked it 100 times. What do you mean did i respect min and maj? English is not my native language. Do you mean case?

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

Posted: Friday 13 January 2017 1:14
by deennoo
Mine to :
A : maj
a : min
But can't be the issue, you 'ill not be able to retrive your plug.

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

Posted: Friday 13 January 2017 1:15
by corbin
murtadin wrote: Pls help me debug this andput this to work. Can provide any information you need. :( :( :(
could it be Gentoo Linux not having all the software/components installed to do the key encryption?

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

Posted: Friday 13 January 2017 1:16
by murtadin
corbin wrote:
murtadin wrote: Pls help me debug this andput this to work. Can provide any information you need. :( :( :(
could it be Gentoo Linux not having all the software/components installed to do the key encryption?
It is possible - how can i check this? Is all traffic between domoticz and mi gateway encrypted?

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

Posted: Friday 13 January 2017 1:19
by corbin
murtadin wrote: It is possible - how can i check this?
Not familiar with Gentoo, but did have a look last night and it looks like you have to configure most parts yourself? If you try a pre-configured distro, does it still not work?

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

Posted: Friday 13 January 2017 1:23
by murtadin
corbin wrote:
murtadin wrote: It is possible - how can i check this?
Not familiar with Gentoo, but did have a look last night and it looks like you have to configure most parts yourself? If you try a pre-configured distro, does it still not work?
i have tried binaries, but there was error about usb libs. but i do not use any usb devices. will try install all necessary libs later and try one more time precompiled binaries.

Sent from my MI MAX using Tapatalk

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

Posted: Friday 13 January 2017 6:52
by corbin
deennoo wrote: Maybe disable auto off for cube and round switch, a switch never turn off it just state change (clik, long clik etc) same for cube each mouvement is a new one
Try https://github.com/corbinmunce/domoticz for the rotate command handling - I haven't changed the on/off status part, you can easily adjust the source though.

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

Posted: Friday 13 January 2017 6:54
by corbin
murtadin wrote: i have tried binaries, but there was error about usb libs. but i do not use any usb devices. will try install all necessary libs later and try one more time precompiled binaries.

Sent from my MI MAX using Tapatalk
I don't think that usb libs error is related, but wouldn't rule it out.

Can you give me a URL for a Gentoo image/ISO I can use for a Vmware VM?

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

Posted: Friday 13 January 2017 8:28
by murtadin
corbin wrote:
murtadin wrote: i have tried binaries, but there was error about usb libs. but i do not use any usb devices. will try install all necessary libs later and try one more time precompiled binaries.

Sent from my MI MAX using Tapatalk
I don't think that usb libs error is related, but wouldn't rule it out.

Can you give me a URL for a Gentoo image/ISO I can use for a Vmware VM?
https://mirrors.kernel.org/gentoo//rele ... /20160704/

But i do not use generic kernel. I have built my system almost from the scratch. But i will try generic kernel from livedvd too.

Sent from my MI MAX using Tapatalk

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

Posted: Friday 13 January 2017 8:32
by corbin
Do you know what base settings to use for Vmware - ie Ubuntu x64...?

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

Posted: Friday 13 January 2017 8:37
by murtadin
corbin wrote:Do you know what base settings to use for Vmware - ie Ubuntu x64...?
you can try vmware images https://www.osboxes.org/gentoo/

Sent from my MI MAX using Tapatalk

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

Posted: Friday 13 January 2017 9:06
by deennoo
corbin wrote:
deennoo wrote: Maybe disable auto off for cube and round switch, a switch never turn off it just state change (clik, long clik etc) same for cube each mouvement is a new one
Try https://github.com/corbinmunce/domoticz for the rotate command handling - I haven't changed the on/off status part, you can easily adjust the source though.
Just test "rotate", fonction are created on cube selector switch but they aren't linked to the gateway message. other fonction are ok
Capture.PNG
Capture.PNG (149.87 KiB) Viewed 1740 times