Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

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 »

corbin wrote: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.

Hey Corbin, its been a while since using Visual Studio but managed to get this:

2017-01-04 10:40:43.478 XiaomiGateway: Worker started...
2017-01-04 10:40:43.561 handle_receive starting:
2017-01-04 10:40:43.561 {"cmd":"iam","port":"9898","sid":"f0b429cc10e6","model":"gateway","ip":"192.168.1.2"}
2017-01-04 10:40:43.569 handle_receive starting:
2017-01-04 10:40:43.569 {"cmd":"get_id_list_ack","sid":"f0b429cc10e6","token":"32hIpaRsG3aB2B4j","data":"[\"158d000125519e\",\"158d000106c4e5\",\"158d000110a8c1\",\"158d000113b1f8\",\"158d00010df3cc\",\"158d0001185a1c\",\"158d00010e495b\",\"158d00012931f4\",\"158d000117f5f4\",\"158d00012d59e0\",\"158d0001106a9b\",\"158d0001185329\",\"158d000119d543\",\"158d00011854ab\",\"158d00010df43b\",\"158d000106c57c\",\"158d0001185779\",\"158d000113b1f2\",\"158d000111810a\",\"158d000108358c\",\"158d000106c3af\",\"158d0001062348\",\"158d000119
2017-01-04 10:40:43.569 Error: XiaomiGateway: error in handle_receive


----------

I have around 20 devices, mostly window sensors but also a temp sensor and a switch (clicker). I wonder if its seeing something that it doesn't recognize?
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 »

dcliff1 wrote: I have around 20 devices, mostly window sensors but also a temp sensor and a switch (clicker). I wonder if its seeing something that it doesn't recognize?
I set the receive buffer too small!, I've updated it to 1024 - https://github.com/corbinmunce/domoticz ... iGateway.h

Update this line:

Code: Select all

enum { max_length = 512 };
to
enum { max_length = 1024 };
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 »

corbin wrote: I set the receive buffer too small!, I've updated it to 1024 - https://github.com/corbinmunce/domoticz ... iGateway.h

Update this line:

Code: Select all

enum { max_length = 512 };
to
enum { max_length = 1024 };

Nice work mate! Its now reporting all the devices. Thanks heaps for that.. really appreciate the good work. Now to go play!
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 »

dcliff1 wrote:
Nice work mate! Its now reporting all the devices. Thanks heaps for that.. really appreciate the good work. Now to go play!
That is a lot of devices, you should have some fun with that!. Are you getting any more? I think I read the limit is around 30 per gateway and would be good to know for sure.
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 »

corbin wrote:
dcliff1 wrote:
Nice work mate! Its now reporting all the devices. Thanks heaps for that.. really appreciate the good work. Now to go play!
That is a lot of devices, you should have some fun with that!. Are you getting any more? I think I read the limit is around 30 per gateway and would be good to know for sure.

Yep, I'm getting another PIR and a camera.. I've set it up as my main security system and it works well with the app, but has some limitations that Domoticz appears to overcome. I'll report back once I have a few more devices and its all working.

Thanks again, i'm very impressed.
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 »

@corbin

Finally got mine !

Pir + switch + temp are ok

Got a magic Cube too : nothing come on domoticz log.

Is there any trick to listen on udp port ? (without domoticz of course
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
macieiks
Posts: 36
Joined: Tuesday 07 July 2015 12:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by macieiks »

Hello guys,

I read yesterday for the first time article about Xiaomi Mi Smart House Kit and today I would like to ask you few question before final buy order ;)

1. How about acknowledgment of message and sensor's range, does it using repeater option like we can use in Z-wave protocol? I am asking because I am using Home Easy door sensors and sometimes "change" state is not being sent to RFlink or RFXtrx (tested in both houses, with good range).
2. How about sensor's status lag which was reporting to the Domoticz after 1 min (I read about this few pages before)?
3. Do you have any "trust" link to ebay / ali to get the "supported version with developer mode" ? On 5th page I found information I need to get atleast 2016 version v2.0 / Aquara to get it working.
4. Just for curiousity (I know developers here are making great great great job, asking this I do not want to make any pressure on them :D ) what is the current implementation stage of Xiaomi sensors, which ones are working from that kit, are there any additional?

Thanks guys and one more time big beer for developers 8-)
RPI2 + RFLink + PiFace D2 + Aeon Z-Wave Gen5 + Foscams FI9821P&R2 + MySensors + UPS APC Back-UPS 950VA
RPI2 + RFXtrx433e + Foscams FI9821P + MySensors + UPS APC Back-UPS 950VA
RPIB+ + TP-Link MR3420 + Huawei E173 GarageDomoticz :)
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 »

macieiks wrote:Hello guys,

I read yesterday for the first time article about Xiaomi Mi Smart House Kit and today I would like to ask you few question before final buy order ;)

1. How about acknowledgment of message and sensor's range, does it using repeater option like we can use in Z-wave protocol? I am asking because I am using Home Easy door sensors and sometimes "change" state is not being sent to RFlink or RFXtrx (tested in both houses, with good range).
2. How about sensor's status lag which was reporting to the Domoticz after 1 min (I read about this few pages before)?
3. Do you have any "trust" link to ebay / ali to get the "supported version with developer mode" ? On 5th page I found information I need to get atleast 2016 version v2.0 / Aquara to get it working.
4. Just for curiousity (I know developers here are making great great great job, asking this I do not want to make any pressure on them :D ) what is the current implementation stage of Xiaomi sensors, which ones are working from that kit, are there any additional?

Thanks guys and one more time big beer for developers 8-)
Read here:
https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)

It uses Zigbee protocol, google to learn about it.
Last edited by ben53252642 on Wednesday 04 January 2017 21:04, edited 1 time in total.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

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

Post by Derik »

Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
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 »

Left to get compatibel :
- Magic Cube : playing with this remote is fun !
- LED on the gateway
- Be able to lunch some sound who are stored on the gateway

Need to be tested :
- 230v wall switch
- batterie wall switch

Not domoticz dependante :
- change chinese radio to all internet radio
- change chinese voice for a english one (or french or german, or spanish or dutch)
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
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 »

Is there any backup / restore functionality for the Xiaomi gateway, either cloud based (backs up settings and Zigbee) or manual?

Has anyone tested this?

Considering how many sensors I may invest in, backup / restore of some sort would be essential.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
icibt
Posts: 6
Joined: Sunday 25 December 2016 22:16
Target OS: Windows
Domoticz version:
Contact:

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

Post by icibt »

corbin wrote:
dcliff1 wrote: I have around 20 devices, mostly window sensors but also a temp sensor and a switch (clicker). I wonder if its seeing something that it doesn't recognize?
I set the receive buffer too small!, I've updated it to 1024 - https://github.com/corbinmunce/domoticz ... iGateway.h
I have just built domoticz from your git fork (on Ubuntu 16.04) and I can see all of my devices, but when I click to turn on a power switch I get the error "Problem sending switch command"

From log:

Code: Select all

2017-01-04 13:24:48.515  User: Admin initiated a switch command (6/Xiaomi Smart Plug/Off)
2017-01-04 13:24:48.515  010F8D72
2017-01-04 13:24:48.515  Error: WebServer PO exception occurred : 'Invalid argument' 
Besides that, I was wondering why is there no Password or Port setting for the Linux build (and everything works) but there is one on Windows Beta build (where I am unable to find a single device - Windows 10 x64).

Anyways.... very good job on adding this to Domoticz... kudos :)
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:@corbin

Finally got mine !

Pir + switch + temp are ok

Got a magic Cube too : nothing come on domoticz log.

Is there any trick to listen on udp port ? (without domoticz of course
Cool, hope it works well in your setup!

Try this program to listen on udp - https://packetsender.com/, maybe in combination with WireShark.
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 »

icibt wrote: Besides that, I was wondering why is there no Password or Port setting for the Linux build (and everything works) but there is one on Windows Beta build (where I am unable to find a single device - Windows 10 x64).

Anyways.... very good job on adding this to Domoticz... kudos :)
Thanks :)

Password is mainly needed for controlling the smart plug, and is in the Linux version (they are the same web files) - you need to clear your browser cache to see the extra fields.
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 »

ben53252642 wrote:Is there any backup / restore functionality for the Xiaomi gateway, either cloud based (backs up settings and Zigbee) or manual?

Has anyone tested this?

Considering how many sensors I may invest in, backup / restore of some sort would be essential.
The app is linked to my Xiaomi Mi account, but I don't have another android device to test a backup/restore with.
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 »

ben53252642 wrote:
macieiks wrote:Hello guys,

I read yesterday for the first time article about Xiaomi Mi Smart House Kit and today I would like to ask you few question before final buy order ;)
Read here:
https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)

It uses Zigbee protocol, google to learn about it.
To add to what is on the wiki -
The motion sensor will detect motion then go to sleep for 1 minute - there is no lag at all. This works very well for me and also helps with battery life.
Best to contact the gateway seller to confirm a v2.
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 »

Just ordered:

1x Xiaomi Gateway V2
6x Motion Sensors
2x Smart Push Buttons
1x Door Sensor

Total $177.18 AUD ($129 USD)... WOW! :D
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
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 »

Remeber one thing !

How does battery run?

Got an example that for a pir on a house of 4 personnes, place on a living room only live 1 mounth.

Second exemple a temp sensor run only 4 mounth on a place where temp/hum range got a lot of variation.

I already notice that temp sensor looks sending data only if value change.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
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 »

deennoo, yep I read about that. I've decided to buy a bunch of the sensors so I can do some testing and will report back.

Other places I've read the battery should last 2 years so we will soon find out. :)
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
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 »

Main question is how many device a gateway can accepte ?

Got a big project for it.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest