Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

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: you can try vmware images https://www.osboxes.org/gentoo/

Sent from my MI MAX using Tapatalk
Thanks, have the vm working. How do I install domoticz now? "sudo apt-get update" doesn't work.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

deennoo wrote:
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
Solve, made change on your Github
Capture.PNG
Capture.PNG (180.66 KiB) Viewed 2330 times
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 »

deennoo wrote:
Solve, made change on your Github
Merged, Thanks
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
User avatar
vetalok
Posts: 22
Joined: Friday 30 December 2016 12:40
Target OS: Linux
Domoticz version: 3.6273
Location: Lviv, Ukraine
Contact:

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

Post by vetalok »

Hello everybody.
How are you with the ability to control:
1) Gateway LED (on/off, color)
2) Gateway Alarm (maybe radio)
3) Mi Socket V2 (WiFi)
It's really do?
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 »

No
No
No
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
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: you can try vmware images https://www.osboxes.org/gentoo/

Sent from my MI MAX using Tapatalk
Thanks, have the vm working. How do I install domoticz now? "sudo apt-get update" doesn't work.
you can try compile from source for the start.

1. emerge -v git

2. git clone ...
3. cmake
4. make

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: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by corbin »

murtadin wrote: you can try compile from source for the start.

1. emerge -v git

2. git clone ...
3. cmake
4. make

Sent from my MI MAX using Tapatalk
I tried "emerge -v git", and it didn't work:
gentoo.PNG
gentoo.PNG (1.53 KiB) Viewed 2223 times
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
levynger
Posts: 87
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Israel
Contact:

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

Post by levynger »

deennoo wrote:
levynger wrote:
MoralKnight wrote:Are the Xiaomi aqara wall switches also supported or did anybody test it already with domoticz??

Image


https://nl.aliexpress.com/item/Xiaomi-S ... 9bef031fe1

Just recieved mine, was able to pair the Dual Switch (the one without Electricity) with the gateway, but domoticz doesnt recognize.
getting these in logs.
2017-01-12 19:38:23.141 XiaomiGateway: unhandled model: 86sw2
2017-01-12 19:38:23.141 {"cmd":"report","model":"86sw2","sid":"158d00013e45a4","short_id":9819,"data":"{\"channel_1\":\"click\"}"}
2017-01-12 19:38:25.809 XiaomiGateway: unhandled model: 86sw2
2017-01-12 19:38:25.809 {"cmd":"report","model":"86sw2","sid":"158d00013e45a4","short_id":9819,"data":"{\"channel_0\":\"click\"}"}
Those device aren't on domoticz yet, i think corbin wait to get one to includ it and made test.
@ corbin
I forked your github and added support for the Aqara wireless switch (the one with the batteries), tested it, and seems to work here.
and made pull request for your github

i will try the Electirc one today hopefully and update.
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 »

got the Aqara Electirc switch now connected, im using the 2 buttons version.
here full logs from its functionality:
for some reason the commands sends twice, from anywhere this is triggerws (buttons or from the miHome APP)

@corbin, @deennoo,
how do you think this can be added? Selector doesnt seems to fit in here, these are 2 on/off buttons for the same device.

2017-01-14 00:56:29.530 XiaomiGateway: unhandled model: ctrl_neutral2
2017-01-14 00:56:29.530 {"cmd":"report","model":"ctrl_neutral2","sid":"158d0001190076","short_id":27074,"data":"{\"channel_0\":\"on\"}"}
2017-01-14 00:56:29.553 XiaomiGateway: unhandled model: ctrl_neutral2
2017-01-14 00:56:29.553 {"cmd":"report","model":"ctrl_neutral2","sid":"158d0001190076","short_id":27074,"data":"{\"channel_0\":\"on\"}"}
2017-01-14 00:56:38.371 XiaomiGateway: unhandled model: ctrl_neutral2
2017-01-14 00:56:38.371 {"cmd":"report","model":"ctrl_neutral2","sid":"158d0001190076","short_id":27074,"data":"{\"channel_0\":\"off\"}"}
2017-01-14 00:56:38.395 XiaomiGateway: unhandled model: ctrl_neutral2
2017-01-14 00:56:38.395 {"cmd":"report","model":"ctrl_neutral2","sid":"158d0001190076","short_id":27074,"data":"{\"channel_0\":\"off\"}"}
2017-01-14 00:56:46.325 XiaomiGateway: unhandled model: ctrl_neutral2
2017-01-14 00:56:46.325 {"cmd":"report","model":"ctrl_neutral2","sid":"158d0001190076","short_id":27074,"data":"{\"channel_1\":\"on\"}"}
2017-01-14 00:56:46.347 XiaomiGateway: unhandled model: ctrl_neutral2
2017-01-14 00:56:46.347 {"cmd":"report","model":"ctrl_neutral2","sid":"158d0001190076","short_id":27074,"data":"{\"channel_1\":\"on\"}"}
2017-01-14 00:56:51.736 XiaomiGateway: unhandled model: ctrl_neutral2
2017-01-14 00:56:51.736 {"cmd":"report","model":"ctrl_neutral2","sid":"158d0001190076","short_id":27074,"data":"{\"channel_1\":\"off\"}"}
2017-01-14 00:56:51.758 XiaomiGateway: unhandled model: ctrl_neutral2
2017-01-14 00:56:51.758 {"cmd":"report","model":"ctrl_neutral2","sid":"158d0001190076","short_id":27074,"data":"{\"channel_1\":\"off\"}"}
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 »

Following the api :

https://github.com/louisZL/lumi-gateway ... eutral2.md

This have to be our bible.

A simple on/off for each channel
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
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 »

deennoo wrote:Following the api :

https://github.com/louisZL/lumi-gateway ... eutral2.md

This have to be our bible.

A simple on/off for each channel
thanks @deenno,
i was able to add it into domoticz, using selector switch, however i think its better to have 2 on/off,
i just not sure how to create from the same device for 2 distinct switches.
i assume it has something to do with the "Unit" index in devices, as domoticz wont allow to add the same device to different switches, isnt it?
Attachments
selector.PNG
selector.PNG (32.14 KiB) Viewed 2145 times
devices.PNG
devices.PNG (142.19 KiB) Viewed 2145 times
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 »

Maybe using unit = channel ?

On/off or selector ? Depending how you want to use it, via scene/group ? Or as a icon on plan ?

As they act as a real switch too, on my opinion they have to be on/off to be use on a plan easily.

Can't you use channel0/1 for unit value ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
paszczus
Posts: 8
Joined: Saturday 14 January 2017 11:46
Target OS: Linux
Domoticz version:
Contact:

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

Post by paszczus »

Hello,
I have added Xiaomi Gateway to Domoticz but it doesn't see any devices (i have Xiaomi Mi Smart Plug Zigbee connected to it).
In logs i see only: Xiaomi Gateway hardware (3) thread seems to have ended unexpectedl

I am using Domoticz inside docker. What i can do to make it work?
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 »

paszczus wrote:Hello,
I have added Xiaomi Gateway to Domoticz but it doesn't see any devices (i have Xiaomi Mi Smart Plug Zigbee connected to it).
In logs i see only: Xiaomi Gateway hardware (3) thread seems to have ended unexpectedl

I am using Domoticz inside docker. What i can do to make it work?
Which domoticz version pls ?
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 »

levynger wrote:
@ corbin
I forked your github and added support for the Aqara wireless switch (the one with the batteries), tested it, and seems to work here.
and made pull request for your github

i will try the Electirc one today hopefully and update.
Thank you for adding the switch support. Can check my comment on github about updating your pull request?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
StasDemydiuk
Posts: 59
Joined: Saturday 14 January 2017 21:37
Target OS: Linux
Domoticz version: Beta
Location: Ukraine
Contact:

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

Post by StasDemydiuk »

paszczus wrote:Hello,
I have added Xiaomi Gateway to Domoticz but it doesn't see any devices (i have Xiaomi Mi Smart Plug Zigbee connected to it).
In logs i see only: Xiaomi Gateway hardware (3) thread seems to have ended unexpectedl

I am using Domoticz inside docker. What i can do to make it work?
Had the same issue. You have to start container with host network (--net=host)
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 »

vetalok wrote:Hello everybody.
How are you with the ability to control:
1) Gateway LED (on/off, color)
2) Gateway Alarm (maybe radio)
3) Mi Socket V2 (WiFi)
It's really do?
1. Yes very soon LED control will be added.
2. Maybe sometime in the future.
3. Probably never for the WiFi socket. You should get the Zigbee version
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
paszczus
Posts: 8
Joined: Saturday 14 January 2017 11:46
Target OS: Linux
Domoticz version:
Contact:

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

Post by paszczus »

StasDemydiuk wrote:
paszczus wrote:Hello,
I have added Xiaomi Gateway to Domoticz but it doesn't see any devices (i have Xiaomi Mi Smart Plug Zigbee connected to it).
In logs i see only: Xiaomi Gateway hardware (3) thread seems to have ended unexpectedl

I am using Domoticz inside docker. What i can do to make it work?
Had the same issue. You have to start container with host network (--net=host)
Thank you StasDemydiuk! Now it is working fine!
I am using Version: 3.6363

UPDATE:
My Mi Smart Plug is only showing "On" and i don't see an option to turn it off or to see how much power it is consuming. Is this supported in current beta release?
Zrzut ekranu 2017-01-15 o 12.47.41.png
Zrzut ekranu 2017-01-15 o 12.47.41.png (290.15 KiB) Viewed 2008 times
arkoko
Posts: 34
Joined: Saturday 17 December 2016 12:13
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Estonia
Contact:

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

Post by arkoko »

paszczus wrote:My Mi Smart Plug is only showing "On" and i don't see an option to turn it off
Did you try to press lamp icon? ;)
Screenshot 2017-01-15 14.50.00.png
Screenshot 2017-01-15 14.50.00.png (57.93 KiB) Viewed 1999 times
paszczus
Posts: 8
Joined: Saturday 14 January 2017 11:46
Target OS: Linux
Domoticz version:
Contact:

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

Post by paszczus »

Thank you @arkoko, i thought it will be added to Switches automatically. After manually adding it to Switches i can turn it off and on!
Is there a way to see power consumption too?
Post Reply

Who is online

Users browsing this forum: Thorgal789 and 1 guest