Page 18 of 123
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 13 January 2017 9:11
by corbin
Thanks, have the vm working. How do I install domoticz now? "sudo apt-get update" doesn't work.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 13 January 2017 9:14
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 (180.66 KiB) Viewed 2340 times
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 13 January 2017 9:32
by corbin
deennoo wrote:
Solve, made change on your Github
Merged, Thanks
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 13 January 2017 19:26
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?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 13 January 2017 21:51
by deennoo
No
No
No
Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 13 January 2017 22:02
by murtadin
corbin wrote:
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
Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 14 January 2017 5:14
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 (1.53 KiB) Viewed 2233 times
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 14 January 2017 8:16
by levynger
deennoo wrote:levynger wrote:
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.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 14 January 2017 10:01
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\"}"}
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 14 January 2017 13:43
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
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 14 January 2017 16:11
by levynger
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?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 14 January 2017 18:23
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 ?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 14 January 2017 19:25
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?
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 14 January 2017 20:02
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 ?
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 14 January 2017 20:33
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?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 14 January 2017 21:40
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)
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 15 January 2017 9:35
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
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 15 January 2017 12:47
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 (290.15 KiB) Viewed 2018 times
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 15 January 2017 13:52
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 (57.93 KiB) Viewed 2009 times
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 15 January 2017 14:31
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?