Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Post 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.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Mat2Vence
Posts: 41
Joined: Saturday 09 April 2016 18:11
Target OS: Linux
Domoticz version: 3.7449
Location: France
Contact:

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

Post 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?
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 »

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.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Mat2Vence
Posts: 41
Joined: Saturday 09 April 2016 18:11
Target OS: Linux
Domoticz version: 3.7449
Location: France
Contact:

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

Post 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?
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 »

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=
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

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. :( :( :(
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 »

Message is explicit : invalid key

Are you sure of your key ? Did you respect min and maj ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

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

Post 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!
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

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?
Last edited by murtadin on Friday 13 January 2017 1:15, edited 1 time in total.
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 »

Mine to :
A : maj
a : min
But can't be the issue, you 'ill not be able to retrive your plug.
Last edited by deennoo on Friday 13 January 2017 1:14, edited 1 time in total.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
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 »

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?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

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

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?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
murtadin
Posts: 62
Joined: Saturday 31 December 2016 15:33
Target OS: Linux
Domoticz version: beta
Contact:

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

Post 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
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 »

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.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

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

Post 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?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
murtadin
Posts: 62
Joined: Saturday 31 December 2016 15:33
Target OS: Linux
Domoticz version: beta
Contact:

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

Post 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
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 »

Do you know what base settings to use for Vmware - ie Ubuntu x64...?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
murtadin
Posts: 62
Joined: Saturday 31 December 2016 15:33
Target OS: Linux
Domoticz version: beta
Contact:

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

Post 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
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 »

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 1568 times
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest