Page 53 of 123

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

Posted: Tuesday 28 March 2017 8:08
by doxikus
doxikus wrote:Hi Guys,

I have gateway working for more than two weeks and here is few strange things that I want to share with you here, maybe someone mentioned earlier here but here is my problem. I have gateway with enabled developer mode, IP address is assigned via dhcp, on my phone with MI app I can controll light, radio, add sensor (I have one temp sensor and wireless switch), found and pair works great, I have also mylight led bulb which is under app found and controlled. When I move to domoticz and add gateway with all paired device it will work with no problem, but now is problem with phone app when I open It will report that gateway is offline, mylight also (led bulb have assigned static IP). I repeat control over domoticz works great, but my main concern is what if I want to add new device trough app!? Do I need to reset gateway add/adopt devices and agin pair in domoticz (add ip address and new password), enable developer mode!?

Thanks
Hi,

I can see Corbin have same issues as I. I think I have resolve my problem just moving gateway from one side room to another. Maybe I have found "dead spot" for my home WIFI, strange but ok, after I have moved GTW working normal over this few days. My main concern is if I order new devices how to pair them, but again now it is working.

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

Posted: Tuesday 28 March 2017 10:53
by marcotrumpet
bing69 wrote:
marcotrumpet wrote:Does anybody know how to write a lua script to turn on/off lights like the mihome app does?
+1
It seems I did it.
I made 2 variables (the one in this image, sorry but I'm italian)
variables
variables
variables.png (256.92 KiB) Viewed 3340 times
Than I set the delay off of the switch at 1 sec.
The blocky event for "click --> light on" and "click at the same wireless switch --> light off" looks like this
clickon.png
clickon.png (91.4 KiB) Viewed 3340 times
clickoff.png
clickoff.png (89.59 KiB) Viewed 3340 times
I try it whit 2 dummy switch, I'll try as soon as possibly with the real one.

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

Posted: Tuesday 28 March 2017 17:28
by xbox2610
Hello I would like to ask if the WiFi switch of Xiaomi you work there on Domoticz. (Xiaomi Mi Smart Home Wireless Switch)
Thank

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

Posted: Tuesday 28 March 2017 17:41
by juzx
xbox2610 wrote:Hello I would like to ask if the WiFi switch of Xiaomi you work there on Domoticz. (Xiaomi Mi Smart Home Wireless Switch)
Thank
No. At the moment only the Zigbee version works.

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

Posted: Tuesday 28 March 2017 20:42
by bertbigb
corbin wrote:for anyone having problems with switches, try deleting and re-adding them.

I've also made some changes at https://github.com/corbinmunce/domoticz that will help with some of the switches.
I removed the switch and the cube and then reinstall them but only the first movement or click is seen and afterwards no reaction in Domoticz to any state change. Is there something more i can inspect?

I'm on DomoticZ beta V3.7151

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

Posted: Tuesday 28 March 2017 20:51
by xbox2610
bertbigb wrote:
corbin wrote:for anyone having problems with switches, try deleting and re-adding them.

I've also made some changes at https://github.com/corbinmunce/domoticz that will help with some of the switches.
I removed the switch and the cube and then reinstall them but only the first movement or click is seen and afterwards no reaction in Domoticz to any state change. Is there something more i can inspect?

I'm on DomoticZ beta V3.7151
I have the same problem but it seems that you can not find a solution

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

Posted: Tuesday 28 March 2017 21:18
by deennoo
xbox2610 wrote:
bertbigb wrote:
corbin wrote:for anyone having problems with switches, try deleting and re-adding them.

I've also made some changes at https://github.com/corbinmunce/domoticz that will help with some of the switches.
I removed the switch and the cube and then reinstall them but only the first movement or click is seen and afterwards no reaction in Domoticz to any state change. Is there something more i can inspect?

I'm on DomoticZ beta V3.7151
I have the same problem but it seems that you can not find a solution
You need to add a 1sec to off on switch edit. And clik off on widget.

As this beta this still need more improvement

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

Posted: Tuesday 28 March 2017 21:24
by bertbigb
Ok deenoo, thanks for your answer for now that is indeed a solution.
I hope the final solution will be found soon, but with your suggestion i can cope for now.

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

Posted: Tuesday 28 March 2017 21:28
by ReX83
ReX83 wrote:I am now struggling to get notifications work: I can send (from the web interface) a manual notification to my Android device, but any notification I setup under the Xiaomi Plug, Click Button or Door Sensor is not sent at all. I can't see in the log (the one available via the web interface) any message about the attempt to send the notification.
Anyone with this problem?

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

Posted: Tuesday 28 March 2017 23:33
by corbin
xbox2610 wrote:
bertbigb wrote:
corbin wrote:for anyone having problems with switches, try deleting and re-adding them.

I've also made some changes at https://github.com/corbinmunce/domoticz that will help with some of the switches.
I removed the switch and the cube and then reinstall them but only the first movement or click is seen and afterwards no reaction in Domoticz to any state change. Is there something more i can inspect?

I'm on DomoticZ beta V3.7151
I have the same problem but it seems that you can not find a solution
did you compile from https://github.com/corbinmunce/domoticz ?

the changes I mentioned above are not in the official beta as we haven't fully tested some other recent changes.

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

Posted: Thursday 30 March 2017 8:11
by schurgan
corbin wrote:
xbox2610 wrote:
bertbigb wrote:
I removed the switch and the cube and then reinstall them but only the first movement or click is seen and afterwards no reaction in Domoticz to any state change. Is there something more i can inspect?

I'm on DomoticZ beta V3.7151
I have the same problem but it seems that you can not find a solution
did you compile from https://github.com/corbinmunce/domoticz ?

the changes I mentioned above are not in the official beta as we haven't fully tested some other recent changes.
Hello, I have the same problem with SmartSwitch and Cube. But it does not help. All your suggestions I have tried. I hope you will soon find final solution. Fortunately, I have made backup of version 3.6838. In the version, everything has still worked.

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

Posted: Thursday 30 March 2017 10:46
by cocapic
Hi,

I read only the half of the full post sorry ... But i want to share my worries on the plug !
As I find that plugs are dangerous with an adapter I easely opened 3 of them and replaced pin with cable and trying to directly integrated in the outlet box in the wall. But range of mi plugs are a nightmare, out of there casing and specially when a charge on the ouptut

So did someone figure out the range or open plugs to integrate it ?

I taken some pics of the network board in the plug who can easely be moved from one plug to another keeping the association, also we can see a classic zigbee component http://www.nxp.com/documents/data_sheet/JN5169.pdf so plug should work as a repeter

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

Posted: Thursday 30 March 2017 11:57
by deennoo
you can find a great how to hack xiaomi sensor here : http://faire-ca-soi-meme.fr/hack/2017/0 ... ty-sensor/

and here a zigbee sniffer : http://faire-ca-soi-meme.fr/hack/2017/0 ... e-sniffer/

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

Posted: Thursday 30 March 2017 14:07
by cocapic
great ! :) merci deenoo

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

Posted: Thursday 30 March 2017 21:03
by apazga
Hi,

I just added my Xiaomi Gateway to my new Domoticz installation and I see no new sensors. I have almost 100 sensors working fine (ZWave, Yeelight, RFX, Bluetooth...)

Log shows:

Code: Select all

2017-03-30 20:54:51.785 XiaomiGateway: New Device Found (0153914c)
2017-03-30 20:54:51.789 {"cmd":"read_ack","model":"magnet","sid":"158d000153914c","short_id":26728,"data":"{\"status\":\"close\"}"}
But no new devices appear on Devices list.
- Accept new hardware devices is enabled
- Device is added and working on Mi Home app

Thanks in advance.

PD: Should I update devices firmware that Mi Home app suggests?

Domoticz beta: 3.7207 (latest)

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

Posted: Thursday 30 March 2017 22:41
by apazga
Answering myself: Just had to wait a few hours (I really don't know why), but they appeared.

In any case, it will be nice to know if I should update or not the firmware ^_^
Thanks anyway.

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

Posted: Friday 31 March 2017 8:04
by deennoo
apazga wrote:Answering myself: Just had to wait a few hours (I really don't know why), but they appeared.

In any case, it will be nice to know if I should update or not the firmware ^_^
Thanks anyway.
On the gateway ? From which version to which one ?

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

Posted: Friday 31 March 2017 18:29
by xxLeoxx93
Hello,
is there any way to add two gateways to domoticz? i tried to add a second one, but it's not detected proberly :( Also I can't edit my "Xiaomi Smart Wireless Switch" after I switched it from the "Switch Type" from "Selector" to "On/Off". The edit button doesn't work anymore.
I'm on the latest beta 3.7212 on Debian/Beaglebone Black

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

Posted: Friday 31 March 2017 18:32
by apazga
deennoo wrote:
apazga wrote:Answering myself: Just had to wait a few hours (I really don't know why), but they appeared.

In any case, it will be nice to know if I should update or not the firmware ^_^
Thanks anyway.
On the gateway ? From which version to which one ?
From version 2.23 to new version (I don't know)

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

Posted: Saturday 01 April 2017 8:34
by farhanito
i see they have a firmware update for the gateway.
from 1.4.1_143.0141 to 1.4.1_144.0141
haven't updated yet, though.

hopefully they enable the power consumption API for the sockets