Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

zaraki673
Posts: 36
Joined: Thursday 19 January 2017 23:46
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

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

Post by zaraki673 »

corbin wrote:If you can compile my version I can push changes out quickly to test, rather than waste Gizmocuz's time asking to merge each change into the beta.
I just finish to build from your repository, an now i have :
xiaomi-error.png
xiaomi-error.png (5.48 KiB) Viewed 2371 times
and the door is always open

;)
User avatar
marcotini
Posts: 36
Joined: Thursday 16 February 2017 17:51
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

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

Post by marcotini »

zaraki673 wrote:
corbin wrote:If you can compile my version I can push changes out quickly to test, rather than waste Gizmocuz's time asking to merge each change into the beta.
I just finish to build from your repository, an now i have :
xiaomi-error.png

and the door is always open

;)
Yep, me too.
lamouette
Posts: 37
Joined: Friday 20 January 2017 8:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

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

Post by lamouette »

That's why I stay in V3.6562 which seems to be stable for Xiaomi Gateway.

Waiting for next stable official release :mrgreen:
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 »

lamouette wrote:That's why I stay in V3.6562 which seems to be stable for Xiaomi Gateway.

Waiting for next stable official release :mrgreen:
It would be great if you upload it somewhere. Sources or compiled binaries. I have made a big mistake, before update i deleted backup of working beta.

Sent from my MI MAX using Tapatalk
User avatar
corbin
Posts: 512
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 »

Guys, please list out all the Xiaomi devices you have. I've not been able to recreate the problem on my Windows or Raspberry Pi systems.

The devices I have are:
Smart Plug
Motion Sensor
Door Sensor
Xiaomi Wireless Switch (not the Aqara ones)

EDIT: well after posting this, finally replicated the problem here.
Last edited by corbin on Monday 20 February 2017 16:10, edited 1 time in total.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
User avatar
corbin
Posts: 512
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 »

zaraki673 wrote: I just finish to build from your repository, an now i have :
xiaomi-error.png

and the door is always open

;)
EDIT: I think this problem has been fixed, please try my latest repo update

EDIT 2: It was my mistake, removed some code I shouldn't have. Hopefully it is back to working properly now.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
zaraki673
Posts: 36
Joined: Thursday 19 January 2017 23:46
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

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

Post by zaraki673 »

Well, i update and build, but not at home so i can open a door for the moment :oops:

I will be able to answer you in 3 or 4 hours ...
User avatar
marcotini
Posts: 36
Joined: Thursday 16 February 2017 17:51
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

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

Post by marcotini »

corbin wrote: EDIT: I think this problem has been fixed, please try my latest repo update

EDIT 2: It was my mistake, removed some code I shouldn't have. Hopefully it is back to working properly now.
You mean with your build or with the official beta?
lamouette wrote:
That's why I stay in V3.6562 which seems to be stable for Xiaomi Gateway.
How can I found or install this version?
zaraki673
Posts: 36
Joined: Thursday 19 January 2017 23:46
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

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

Post by zaraki673 »

corbin wrote: EDIT: I think this problem has been fixed, please try my latest repo update

EDIT 2: It was my mistake, removed some code I shouldn't have. Hopefully it is back to working properly now.
Confirm, work's fine now :D
betonishard
Posts: 14
Joined: Sunday 17 May 2015 16:35
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by betonishard »

Hi all,

First of all really nice job on this one. I received my gateway today along with the zigbee plug. Working like a charm.. For now via VM because my mac domoticz is not updated yet.

Just a quick question for the smart socket is there a possibility that usage will be implemented (watts).?? I know I have read it along the 39 pages however I can't recall. Thanks anyway for the clarification and keep up the good work!
Greets
User avatar
marcotini
Posts: 36
Joined: Thursday 16 February 2017 17:51
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

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

Post by marcotini »

zaraki673 wrote: Confirm, work's fine now :D
How can you do to update?
zaraki673
Posts: 36
Joined: Thursday 19 January 2017 23:46
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

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

Post by zaraki673 »

marcotini wrote:
zaraki673 wrote: Confirm, work's fine now :D
How can you do to update?
git clone from Corbin repo and build domoticz from this source
jelleeelco
Posts: 70
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by jelleeelco »

levynger wrote:@corbin,
Added new patch#5 to your github, the Aqara wired wall switch (dual button) now can be turned on/off from domoticz and not only show status.

Maybe a stupid question.. I went through the whole forum but can't find this particular issue. I have a wired single wall switch. When switching with MI app or physical, the status gets updated in Domoticz.

But when I switch using the domoticz, it doesn't change work. Domoticz reports 'ON' but the actual switch is off. No error message in the log, it just states:

User: Admin initiated a switch command (91/Zolder Overloop/On)
(Xiaomi Gateway) Light/Switch (Zolder/Overloop)

Any idea what I'm doing wrong? Running the latest beta...

Many thanks in advance,
Jelle
guykes1
Posts: 2
Joined: Tuesday 21 February 2017 11:03
Target OS: Raspberry Pi
Domoticz version:
Location: Belgium
Contact:

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

Post by guykes1 »

Hi,

This post to share my (short) experience with it.
I've been following this thread from the beginning, and after a few pages I became enthusiastic about it (many thanks for developing this,it's great!).
So yesterday, my 5-in-1 package came in by mail. I did already install the app and created an account beforehand, not to lose time :D

After plugging in the gateway, the app quickly picked it up. I don't mind that I have to look around in the options (especially considering the price I paid) and I find it a challenge that it's not (in addition to domoticz) plug-and-play. But, the horror: After selecting the gateway in the app and then the 3 dots in the upper right corner, I got a message (Mi Home has stopped working). I tried following the guide to enable developer mode, but since there was only about a 5 seconds gap between selecting the gateway and the error message (afterwards, the application goes back to the start-screen), it was not very easy...

After continious trying on my phone (Galaxy S6) I also tried my old Nexus 7 and my wife's Oneplus One, to no avail... I eventually gave and went to bed...

And this morning it struck me, if I would try to set my phone in English, would it make a difference? It does... It does a lot! No more crashes, everything is working properly. Gateway was added in 3 minutes, sensors popping up without a hassle. If I had only known...
n1c0l45
Posts: 39
Joined: Monday 25 April 2016 9:45
Target OS: Raspberry Pi
Domoticz version: V3.4834
Location: France
Contact:

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

Post by n1c0l45 »

Hi guys, thanks for the work done!

Does the current domoticz beta included the last Corbin work? (especially about door sensor trigger?)
I never compiled and i'm quite afraid of loosing everything! :mrgreen:

is that the good way of compile?

Code: Select all

cd domoticz
git clone https://github.com/corbinmunce/domoticz
make -j 4
thanks
levynger
Posts: 92
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi
Domoticz version:
Location: Israel
Contact:

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

Post by levynger »

jelleeelco wrote:
levynger wrote:@corbin,
Added new patch#5 to your github, the Aqara wired wall switch (dual button) now can be turned on/off from domoticz and not only show status.

Maybe a stupid question.. I went through the whole forum but can't find this particular issue. I have a wired single wall switch. When switching with MI app or physical, the status gets updated in Domoticz.

But when I switch using the domoticz, it doesn't change work. Domoticz reports 'ON' but the actual switch is off. No error message in the log, it just states:

User: Admin initiated a switch command (91/Zolder Overloop/On)
(Xiaomi Gateway) Light/Switch (Zolder/Overloop)

Any idea what I'm doing wrong? Running the latest beta...

Many thanks in advance,
Jelle
Can you post logs? i recall the command should be present in logs, or these logs has been removed already ?



Sent from my SM-N920G using Tapatalk
jelleeelco
Posts: 70
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by jelleeelco »

levynger wrote: Can you post logs? i recall the command should be present in logs, or these logs has been removed already ?

Sent from my SM-N920G using Tapatalk
Switching on from the MI app (note: it shows it twice, no idea why):

Code: Select all

2017-02-21 13:11:24.903 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
2017-02-21 13:11:24.907 {"cmd":"report","model":"ctrl_neutral1","sid":"158d00013e4224","short_id":53428,"data":"{\"channel_0\":\"on\"}"}
2017-02-21 13:11:24.920 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
2017-02-21 13:11:24.924 {"cmd":"report","model":"ctrl_neutral1","sid":"158d00013e4224","short_id":53428,"data":"{\"channel_0\":\"on\"}"}
Switching off from the MI app (also twice):

Code: Select all

2017-02-21 13:12:39.694 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
2017-02-21 13:12:39.698 {"cmd":"report","model":"ctrl_neutral1","sid":"158d00013e4224","short_id":53428,"data":"{\"channel_0\":\"off\"}"}
2017-02-21 13:12:39.716 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
2017-02-21 13:12:39.720 {"cmd":"report","model":"ctrl_neutral1","sid":"158d00013e4224","short_id":53428,"data":"{\"channel_0\":\"off\"}"}
Now switching on again, but now from Domoticz (which doesn't work):

Code: Select all

2017-02-21 13:13:35.604 User: Admin initiated a switch command (91/Zolder Overloop/On)
2017-02-21 13:13:35.755 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
And switching off again from Domoticz (also not working):

Code: Select all

2017-02-21 13:15:00.683 User: Admin initiated a switch command (91/Zolder Overloop/Off)
2017-02-21 13:15:00.834 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
Maybe the device needs "switch off" send twice or something? one to wake up, one to switch? No idea, justing trying to think of something! Since it doesn't actually sends the 'off' or 'on' command.
Many thanks!
levynger
Posts: 92
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi
Domoticz version:
Location: Israel
Contact:

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

Post by levynger »

jelleeelco wrote:
levynger wrote: Can you post logs? i recall the command should be present in logs, or these logs has been removed already ?

Sent from my SM-N920G using Tapatalk
Switching on from the MI app (note: it shows it twice, no idea why):

Code: Select all

2017-02-21 13:11:24.903 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
2017-02-21 13:11:24.907 {"cmd":"report","model":"ctrl_neutral1","sid":"158d00013e4224","short_id":53428,"data":"{\"channel_0\":\"on\"}"}
2017-02-21 13:11:24.920 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
2017-02-21 13:11:24.924 {"cmd":"report","model":"ctrl_neutral1","sid":"158d00013e4224","short_id":53428,"data":"{\"channel_0\":\"on\"}"}
Switching off from the MI app (also twice):

Code: Select all

2017-02-21 13:12:39.694 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
2017-02-21 13:12:39.698 {"cmd":"report","model":"ctrl_neutral1","sid":"158d00013e4224","short_id":53428,"data":"{\"channel_0\":\"off\"}"}
2017-02-21 13:12:39.716 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
2017-02-21 13:12:39.720 {"cmd":"report","model":"ctrl_neutral1","sid":"158d00013e4224","short_id":53428,"data":"{\"channel_0\":\"off\"}"}
Now switching on again, but now from Domoticz (which doesn't work):

Code: Select all

2017-02-21 13:13:35.604 User: Admin initiated a switch command (91/Zolder Overloop/On)
2017-02-21 13:13:35.755 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
And switching off again from Domoticz (also not working):

Code: Select all

2017-02-21 13:15:00.683 User: Admin initiated a switch command (91/Zolder Overloop/Off)
2017-02-21 13:15:00.834 (Xiaomi Gateway) Light/Switch (Zolder Overloop)
Maybe the device needs "switch off" send twice or something? one to wake up, one to switch? No idea, justing trying to think of something! Since it doesn't actually sends the 'off' or 'on' command.
Many thanks!
I will update the the sources tonihht and check if something went wrong.
I haven't updated sources since last patch I have submitted..


Sent from my SM-N920G using Tapatalk
jelleeelco
Posts: 70
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by jelleeelco »

Thank you VERY much!
jelleeelco
Posts: 70
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by jelleeelco »

Oh, and for the Dutch people... I couldn't find the info and I thought it would fit, but these switches do NOT fit the round wall boxes as we have standard in Holland. I had to use a "on-the-wall" frame to use the switch.

I think the wireless ones are better / nicer. Not too sure, but you can probably control HUE light with it.... I'm going to order one and see how that works out.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests