Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

Coldman
Posts: 61
Joined: Saturday 17 December 2016 11:51
Target OS: Linux
Domoticz version: Beta
Location: Moscow, Russia
Contact:

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

Post by Coldman »

deennoo wrote:Left to get compatibel :
- change chinese radio to all internet radio
I'm listen radio on Gateway on russian language, I have added just one string to iptables in the router:
iptables -t nat -A PREROUTING -d 114.80.170.77 -j DNAT --to-destination 82.146.38.202...

about project - http://ximiraga.ru/?chlang=en
https://github.com/sfedotoff/miwifiradio
https://github.com/andr68rus/miwifiradio
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 »

ben53252642 wrote:Just ordered:

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

Total $177.18 AUD ($129 USD)... WOW! :D
@Ben,

Could you please provide link to your order? I would like to also order v2.0 with similar equipment from the same shop if they supply V2.0 version.
Thx
corbin wrote:
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.

@Corbin, thank you for the update.

Please let me know if motion sensor is triggered for 1 minute after interaction and then status is being changed to normal after this 1 min ? Or it trigger for ~10sec and then going to sleep for 1 min and any "movement" within this time will not be detected unless 1 minute will pass ?
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 »

This is the exact gateway I purchased (using the below link), the description says "Online Radio" feature which means it is a V2 hub.

http://www.ebay.com.au/itm/142112094585

This is the shop I bought the sensors from:

http://www.ebay.com.au/itm/142024411677

I bought the Zigbee model Smart Plugs from here:

https://www.aliexpress.com/item/Origina ... 22831.html

All up I got:

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

For total inc shipping: $216.49 AUD ($158.53 USD).
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
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 »

macieiks wrote: @Corbin, thank you for the update.

Please let me know if motion sensor is triggered for 1 minute after interaction and then status is being changed to normal after this 1 min ? Or it trigger for ~10sec and then going to sleep for 1 min and any "movement" within this time will not be detected unless 1 minute will pass ?
It sends a motion message, then sleeps for 1 minute. After 1 minute it is ready to detect again. When it is no longer detecting motion, it will send two no_motion messages.

It will not detect movement inside the 1 minute whilst it is sleeping. The delay is more on the side of detecting no_motion, as this cannot happen immediately, as compared to a sensor that repeatedly detects motion every few seconds.

This is output from one of my sensors, from a little earlier today:

Code: Select all

2017-01-05 17:01:34.863 {"cmd":"report","model":"motion","sid":"158d0000fd32c2","short_id":1950,"data":"{\"status\":\"motion\"}"}
2017-01-05 17:02:36.508 {"cmd":"report","model":"motion","sid":"158d0000fd32c2","short_id":1950,"data":"{\"status\":\"motion\"}"}
2017-01-05 17:03:41.430 {"cmd":"report","model":"motion","sid":"158d0000fd32c2","short_id":1950,"data":"{\"status\":\"motion\"}"}
2017-01-05 17:04:41.642 {"cmd":"report","model":"motion","sid":"158d0000fd32c2","short_id":1950,"data":"{\"status\":\"motion\"}"}
2017-01-05 17:05:43.287 {"cmd":"report","model":"motion","sid":"158d0000fd32c2","short_id":1950,"data":"{\"status\":\"motion\"}"}
2017-01-05 17:08:43.001 {"cmd":"report","model":"motion","sid":"158d0000fd32c2","short_id":1950,"data":"{\"status\":\"no_motion\"}"}
2017-01-05 17:15:42.341 {"cmd":"report","model":"motion","sid":"158d0000fd32c2","short_id":1950,"data":"{\"status\":\"no_motion\"}"}
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 »

Coldman wrote: I'm listen radio on Gateway on russian language
That is pretty cool!
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 »

Thanks to deennoo, he has alerted me to functions for:
Cube sensor notifications
Changing the gateway light colour
https://louiszl.gitbooks.io/lumi-gatewa ... 99%A8.html

I will get these added to the plugin.
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 »

Corbin this page mentions getting the battery level for the Motion Sensors

https://louiszl.gitbooks.io/lumi-gatewa ... otion.html

Heartbeat Escalation (~ 60 minutes each):
{"cmd":"report","model":"motion","sid":"112316","short_id":4343,"data":"{\"battery\":\"71\"}" }

Can you confirm if it is possible to see the battery status via this method?
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
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:Corbin this page mentions getting the battery level for the Motion Sensors

https://louiszl.gitbooks.io/lumi-gatewa ... otion.html

Heartbeat Escalation (~ 60 minutes each):
{"cmd":"report","model":"motion","sid":"112316","short_id":4343,"data":"{\"battery\":\"71\"}" }

Can you confirm if it is possible to see the battery status via this method?
My code should handle the battery level already, but I am yet to see this message from any of my devices. I have tested by hard coding the battery level report above.
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 »

@deennoo,
Is this how you would see the cube device in Domoticz?
xiaomi_cube.PNG
xiaomi_cube.PNG (20.92 KiB) Viewed 3182 times
If you are still setup to compile, try my update that should detect the cube: https://github.com/corbinmunce/domoticz
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 wrote:@deennoo,
Is this how you would see the cube device in Domoticz?
xiaomi_cube.PNG

If you are still setup to compile, try my update that should detect the cube: https://github.com/corbinmunce/domoticz
Result :

Code: Select all

XiaomiGateway: cube rotate not handled:
and domoticz stop reciving data from gateway
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
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 »

Please compile my source again, I made an error first time.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

try it and now :
2017-01-05 12:46:33.120 {"cmd":"read_ack","model":"switch","sid":"158d000125664f","short_id":27474,"data":"{}"}
2017-01-05 12:46:33.120 XiaomiGateway: unhandled model:
2017-01-05 12:46:33.120 {"cmd":"read_ack","model":"","sid":"158d00010eebac","short_id":31286,"data":"{}"}
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
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:try it and now :
2017-01-05 12:46:33.120 {"cmd":"read_ack","model":"switch","sid":"158d000125664f","short_id":27474,"data":"{}"}
2017-01-05 12:46:33.120 XiaomiGateway: unhandled model:
2017-01-05 12:46:33.120 {"cmd":"read_ack","model":"","sid":"158d00010eebac","short_id":31286,"data":"{}"}
Can you fire up wireshark to see what messages are being sent?

Code: Select all

{"cmd":"read_ack","model":"","sid":"158d00010eebac","short_id":31286,"data":"{}"}
looks like an incomplete response, as there is no "model" being returned. Can you tell if "158d00010eebac" is your Xiaomi cube?

When you create a motion with the cube, is it returning a {"cmd":"report"...} response?

Just thinking, since there is a response, but incomplete, maybe a firmware update is needed. Since this is only new, maybe that firmware update is not available just yet?
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 »

Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

Really looks like a futur fw update.

Will try to wireshark
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
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 »

Yep, we must be on the cutting edge of development :)
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
oleg77rus
Posts: 3
Joined: Saturday 31 December 2016 17:30
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Russia
Contact:

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

Post by oleg77rus »

I can see the temperature sensor battery level on the "Device" tab only?
All 5 sensors charge level is 100, btw
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 »

There is so far no battery level response I have seen from the gateway, this could be something yet to be implemented as it looks with the cube. But could also be that the battery level only reports after falling beyond a certain level, which I think is possible judging on how smartly the sensors are working already.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

I asked officially Xiaomi support about maximum limitation of attached sensors and I received the following:

Dear Customer

Welcome to Xiaomi Customer Support!
Limitation is 10


Please feel free to contact us in future if you have any other queries.
Thank you for contacting Mi Customer Support.

“Always believe something wonderful is about to happen”


Looks like it is not much to be honest :(
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 :)
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 »

macieiks wrote:I asked officially Xiaomi support about maximum limitation of attached sensors and I received the following:

Dear Customer

Welcome to Xiaomi Customer Support!
Limitation is 10


Please feel free to contact us in future if you have any other queries.
Thank you for contacting Mi Customer Support.

“Always believe something wonderful is about to happen”


Looks like it is not much to be honest :(
ok that mean we need more gateway.

@Corbin did you allow to have multiple gateway ? on the same domoticz ?
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 0 guests