Page 12 of 123

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

Posted: Thursday 05 January 2017 1:03
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

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

Posted: Thursday 05 January 2017 7:06
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 ?

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

Posted: Thursday 05 January 2017 7:17
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).

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

Posted: Thursday 05 January 2017 8:23
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\"}"}

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

Posted: Thursday 05 January 2017 8:25
by corbin
Coldman wrote: I'm listen radio on Gateway on russian language
That is pretty cool!

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

Posted: Thursday 05 January 2017 8:28
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.

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

Posted: Thursday 05 January 2017 8:36
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?

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

Posted: Thursday 05 January 2017 8:40
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.

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

Posted: Thursday 05 January 2017 8:55
by corbin
@deennoo,
Is this how you would see the cube device in Domoticz?
xiaomi_cube.PNG
xiaomi_cube.PNG (20.92 KiB) Viewed 3357 times
If you are still setup to compile, try my update that should detect the cube: https://github.com/corbinmunce/domoticz

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

Posted: Thursday 05 January 2017 12:12
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

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

Posted: Thursday 05 January 2017 12:21
by corbin
Please compile my source again, I made an error first time.

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

Posted: Thursday 05 January 2017 12:57
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":"{}"}

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

Posted: Thursday 05 January 2017 13:01
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?

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

Posted: Thursday 05 January 2017 13:12
by corbin

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

Posted: Thursday 05 January 2017 13:26
by deennoo
Really looks like a futur fw update.

Will try to wireshark

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

Posted: Thursday 05 January 2017 13:28
by corbin
Yep, we must be on the cutting edge of development :)

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

Posted: Thursday 05 January 2017 13:34
by oleg77rus
I can see the temperature sensor battery level on the "Device" tab only?
All 5 sensors charge level is 100, btw

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

Posted: Thursday 05 January 2017 13:44
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.

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

Posted: Thursday 05 January 2017 16:00
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 :(

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

Posted: Thursday 05 January 2017 16:20
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 ?