Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

jumping
Posts: 14
Joined: Tuesday 19 July 2016 14:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9227
Location: Italy
Contact:

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

Post by jumping »

Hi, I have a Xiaomi home gateway and some sensors, thanks for your job and happy new year!! :o :o :o
Domoticz + Mysensors 2.0 ESP8266 GW + RFlink + Philips Hue 2.0 + Netatmo Thermostat
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 »

Hi folks. I need some help.

1st time i have installed beta DomoticzSetup_2_6277.exe about 2 weeks ago. I have added xiaomi gateway and detected all door sensors, 2 pir and some wireless switches. Today i upgraded to latest beta and for some reason all prevoious detected devices were duplicated + new devices such like temperature sensors. I deleted all devices and domoticz do not detect any attached device now.

Developer mode on gw enabled.

Help pls.

P.S. Happy new Year ))
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 »

levynger wrote: the Long Press appears twice in logs (one for press and once for release i assume)
Currently mapped like this, could change long click release to another button or send the off command?

Code: Select all

else if ((status == "click")) {
	level = 10;
}
else if ((status == "long_click_press") || (status == "long_click_release")) {
	level = 20;
}
else if ((status == "double_click")) {
	level = 30;
}
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: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by corbin »

murtadin wrote:I deleted all devices and domoticz do not detect any attached device now.
Try deleting the hardware for Xiaomi Gateway, then add it back in.
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: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by corbin »

vetalok wrote:Hah... problem fixed when I changed port on line

XiaomiGateway.cpp:

Code: Select all

XiaomiGateway::xiaomi_udp_server::xiaomi_udp_server(boost::asio::io_service& io_service, int m_HwdID, XiaomiGateway *parent)
	: socket_(io_service, boost::asio::ip::udp::endpoint(boost::asio::ip::udp::v4(), 9898))
9898 to 9899
Thanks, have fixed in my repository too.

But then can no longer receive sensor events, so this needs to stay 9898
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:I deleted all devices and domoticz do not detect any attached device now.
Try deleting the hardware for Xiaomi Gateway, then add it back in.
tried yesterday 10 times. No luck. Today tried one more time, changed port to 54321and it works.

btw - support of xiaomi cube comtroller will be implemented?

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

Post by corbin »

murtadin wrote: tried yesterday 10 times. No luck. Today tried one more time, changed port to 54321and it works.

btw - support of xiaomi cube comtroller will be implemented?
There isn't an API for the cube known as yet - but if a way to interact with it is discovered support will be added.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
jelvs
Posts: 3
Joined: Monday 02 January 2017 23:37
Target OS: -
Domoticz version:
Contact:

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

Post by jelvs »

Hi I'm new to this, but does anybody know if has support for the Xiaomi Universal IR Remote Controller, thanks and continue with the good work


Sent from my iPhone using Tapatalk
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Swifty »

Very tempted to order a sample kit of the xaiomi sensors + gateway, but I have a few questions, if anyone who already owns could answer?

- Is the plug on the gateway available in UK spec? - the gateway looks a little big to be hanging off an adaptor socket..

- Is the motion sensor pet tolerant? - I have a cat and would like to use the motion sensors for alarm purpose without the cat tripping it.
Coldman
Posts: 61
Joined: Saturday 17 December 2016 11:51
Target OS: Linux
Domoticz version: Beta
Location: Moscow, Russia
Contact:

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

Post by Coldman »

Swifty wrote:Very tempted to order a sample kit of the xaiomi sensors + gateway, but I have a few questions, if anyone who already owns could answer?

- Is the plug on the gateway available in UK spec? - the gateway looks a little big to be hanging off an adaptor socket..

- Is the motion sensor pet tolerant? - I have a cat and would like to use the motion sensors for alarm purpose without the cat tripping it.
Hi, I can't to answer about plug/socket, I'm from Russia and I'm using a adapter, but I have a dog, 40kg, sometimes a sensor is alarming.

Отправлено с моего ONE A2001 через Tapatalk
dcliff1
Posts: 8
Joined: Tuesday 03 January 2017 3:35
Target OS: -
Domoticz version:
Contact:

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

Post by dcliff1 »

Hi Guys,

Firstly to answer the question above about the plugs, I believe its only a chinese/australian plug on the gateway units?

I've tried to setup the gateway on the latest beta for both Linux and Windows but I recieve two different errors:

On Windows:
XiaomiGateway: error in handle_receive

on Linux:
XiaomiGateway: invalid data received!

I've tried different ports etc, but I can't get it working. Any ideas on what I'm doing wrong? I've followed the Wiki article but no go.

Thanks!
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 »

Hi dcliff1,
Try this in Windows,

Install Packet Sender https://packetsender.com/
Enter packet settings as:

Code: Select all

Name: Test
ASCII: {"cmd":"whois"}
Address: IP Address of your gateway
Port: 4321
UDP
Click Send and see if you get an "iam" response from the gateway
iam.PNG
iam.PNG (33.71 KiB) Viewed 4346 times
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: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by corbin »

Swifty wrote: - Is the motion sensor pet tolerant? - I have a cat and would like to use the motion sensors for alarm purpose without the cat tripping it.
I've tried a store purchased sensor, home made sensors, and now the Xiaomi sensor, and have found the Xiaomi to work best with less false-positives. Xiaomi call it a "Human Body Sensor", but as Coldman has replied, it will detect a large dog, and maybe a cat (I have neither)
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
dcliff1
Posts: 8
Joined: Tuesday 03 January 2017 3:35
Target OS: -
Domoticz version:
Contact:

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

Post by dcliff1 »

Hey Corbin.

Great utility, i've not seen it before. I've used it and am getting the same response as you.
Capture.PNG
Capture.PNG (31.53 KiB) Viewed 4315 times
I tried resetting the gateway and cycling the password but same result.

Unfortunately the log doesn't tell me anything:
2017-01-03 20:39:18.531 XiaomiGateway: stopped
2017-01-03 20:39:37.810 XiaomiGateway: Worker started...
2017-01-03 20:39:37.844 Error: XiaomiGateway: error in handle_receive

Here is my config.
Capture1.PNG
Capture1.PNG (125.94 KiB) Viewed 4315 times
Thanks mate!
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 »

try updating to the latest beta - I've just had a pull request accepted. I don't think it will fix your problem but just to get you on the latest release.

If that doesn't work, are you able to compile from source? I could then do some troubleshooting.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
dcliff1
Posts: 8
Joined: Tuesday 03 January 2017 3:35
Target OS: -
Domoticz version:
Contact:

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

Post by dcliff1 »

No worries, i'll try the latest beta.. and will compile from source on the linux box tomorrow.

Thanks for helping out, its much appreciated. I'm excited to get this working ;)
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 »

cool! should be able to get it working - compile from https://github.com/corbinmunce/domoticz, I've added output for what is received in the data buffer in handle_receive, might give us a clue.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

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

Post by ben53252642 »

Wow! I currently pay $90 AU for motion sensors avg, I can get the Xiaomi motion sensor for $18 AU. Very tempted to buy a few sensors.

What is the delay like between a motion sensor being triggered and reporting to Domoticz compared to say a Z-Wave motion sensor?

Has anyone seen a battery level report yet?
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
pavelbor
Posts: 35
Joined: Sunday 18 December 2016 12:18
Target OS: Raspberry Pi / ODroid
Domoticz version: LastBeta
Location: Tallinn / Estonia
Contact:

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

Post by pavelbor »

ben53252642 wrote: What is the delay like between a motion sensor being triggered and reporting to Domoticz compared to say a Z-Wave motion sensor?
Notification from door sensor (telegram notification in my case) comes almost immediately after door was opened. There is practically no delay at all. Same with motion sensor.
Coldman
Posts: 61
Joined: Saturday 17 December 2016 11:51
Target OS: Linux
Domoticz version: Beta
Location: Moscow, Russia
Contact:

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

Post by Coldman »

ben53252642 wrote:Wow! I currently pay $90 AU for motion sensors avg, I can get the Xiaomi motion sensor for $18 AU. Very tempted to buy a few sensors.

What is the delay like between a motion sensor being triggered and reporting to Domoticz compared to say a Z-Wave motion sensor?

Has anyone seen a battery level report yet?
1 sec

Отправлено с моего MI PAD 2 через Tapatalk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest