Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

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 »

Sevift wrote:
Sevift wrote:Xiaomi Mi Robot Vacuum - Is that possible? )
it's possible!

Снимок экрана 2017-01-08 в 21.06.53.png
Great ! via the gateway or something else ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
jjnj

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

Post by jjnj »

icibt wrote:
WrathfulFab wrote:Update to a beta version? Domoticz or my Gateway?
My domoticz version is 3.6288
My gateway version is 1.4.1_142.0141
Are you installing Domoticz on Windows 10 64bit? If that is the case, you won't see any devices... don't know why. Others have the same problem.
I'm using windows 10 64-bit and I can see everything
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 »

Well I've ordered the Xiaomi Air Purifier 2nd gen with Wifi (which I'll figure out how to integrate into Domoticz) and another 6x motion sensors (making 12 in total now). The Xiaomi motion sensors use the CR2450 coin cell batteries, which only have about 550 - 630 mah capacity which is fascinating considering the Fibaro Gen5 Door/Window sensor has a 1200mah capacity battery and my TKB 4 in 1 motion / door sensors use a 1500mah capacity 123 battery. The Aeotec 2nd gen door / window sensors use a couple of AAA batteries which are usually about 1250mah each so 2500mah total.

Now Zigbee has lower power consumption compared to Z-Wave and considering the Xiaomi motion sensor only does motion...

Has anyone sent the batteries in a Xiaomi motion sensor flat yet? How long did it last?

The good thing about CR2450 is the batteries can be bought for around $0.45 AUD each.

https://www.aliexpress.com/wholesale?ca ... ext=CR2450

Corbin I'd say your guess that they only transit a battery level below a certain threshold is extremely likely, they would be doing everything possible to conserve energy.

Actually I'm going to test it with one of the sensors when I get it by deliberately running down the cell with a 3v motor then putting it in the sensor and seeing what happens. :D
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

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

Post by woody4165 »

deennoo wrote:Left to get compatibel :
- Magic Cube : playing with this remote is fun !
...
Hi deennoo

Is there any chance to get the Magic Cube work with domoticz?
I've just bought one (waiting for delivery) since the price was very low, and I was wondering to use it with domoticz.

Thanks
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
Sevift
Posts: 31
Joined: Monday 21 September 2015 16:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Contact:

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

Post by Sevift »

deennoo wrote:
Sevift wrote:
Sevift wrote:Xiaomi Mi Robot Vacuum - Is that possible? )
it's possible!

Снимок экрана 2017-01-08 в 21.06.53.png
Great ! via the gateway or something else ?
Via python script
jjnj

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

Post by jjnj »

ben53252642 wrote:Well I've ordered the Xiaomi Air Purifier 2nd gen with Wifi (which I'll figure out how to integrate into Domoticz) and another 6x motion sensors (making 12 in total now). The Xiaomi motion sensors use the CR2450 coin cell batteries, which only have about 550 - 630 mah capacity which is fascinating considering the Fibaro Gen5 Door/Window sensor has a 1200mah capacity battery and my TKB 4 in 1 motion / door sensors use a 1500mah capacity 123 battery. The Aeotec 2nd gen door / window sensors use a couple of AAA batteries which are usually about 1250mah each so 2500mah total.

Now Zigbee has lower power consumption compared to Z-Wave and considering the Xiaomi motion sensor only does motion...

Has anyone sent the batteries in a Xiaomi motion sensor flat yet? How long did it last?

The good thing about CR2450 is the batteries can be bought for around $0.45 AUD each.

https://www.aliexpress.com/wholesale?ca ... ext=CR2450

Corbin I'd say your guess that they only transit a battery level below a certain threshold is extremely likely, they would be doing everything possible to conserve energy.

Actually I'm going to test it with one of the sensors when I get it by deliberately running down the cell with a 3v motor then putting it in the sensor and seeing what happens. :D
If you get the purifier working on Domoticz i would definitely order one Image
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Post by deennoo »

Sevift wrote:
deennoo wrote:
Sevift wrote:
it's possible!

Снимок экрана 2017-01-08 в 21.06.53.png
Great ! via the gateway or something else ?
Via python script
Ok ! Can you share it please ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Post by deennoo »

woody4165 wrote:
deennoo wrote:Left to get compatibel :
- Magic Cube : playing with this remote is fun !
...
Hi deennoo

Is there any chance to get the Magic Cube work with domoticz?
I've just bought one (waiting for delivery) since the price was very low, and I was wondering to use it with domoticz.

Thanks
All is done on domoticz side, you/we have to wait for a gateway fw update, as already says previously.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Sevift
Posts: 31
Joined: Monday 21 September 2015 16:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Contact:

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

Post by Sevift »

deennoo wrote:
Sevift wrote:
deennoo wrote:
Great ! via the gateway or something else ?
Via python script
Ok ! Can you share it please ?
I used vereschark to intercept packets.
I do not know whether they will suit you.
Probably everyone has their own packages.

Code: Select all

#!/usr/bin/python

import socket
import sys
import codecs

UDP_IP = '192.168.100.18'
UDP_PORT = 54321
INET_ADDR = (UDP_IP,UDP_PORT)

action = str(sys.argv[1])
massage = "213100500000000002f2c97b5872"

if action == "start":
	message_to_send = massage + "2fd096c280746dc2091bad1d30c49ce74da6c88492a5c0e7c427ad0b4ca98c3b08ea35e67b29dddd8624dd1f2ea46ced68fce3c5b7fef8e89eef60b3c777f43a5622"

if action == "pause":
	message_to_send = massage + "3080fdc4d67fe6fd048b63eb6d2cee5f285f8fec54c2e3bc5486641ec620bae160e9717af4d17ce3c0265bcb807644dae475bcaaf089391f6f76fa85b31396af3e26"

if action == "home":
	message_to_send = massage + "30e4006525a8e0420c337fbc2bfc1741369bb9760685aafe250790ee4ea8bda3aafbdfaa47ae0e8518503530fb72579fe8cf334c6a6fcd4cbc94bfb310f64163a80a"

if action == "find":
	message_to_send = massage + "29d24b61f9c826221c4c7a68be606ff324f81fcc282e18fa679d0506e3e805cbfe56323f2dc292f5d609d20782cb6df1abe3b4a9ce062da42e3371126048c2213b3e"

message_to_send = codecs.decode(message_to_send, "hex_codec")
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(message_to_send, INET_ADDR)
Снимок экрана 2017-01-09 в 13.34.57.png
Снимок экрана 2017-01-09 в 13.34.57.png (50.13 KiB) Viewed 11228 times
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Post by deennoo »

Sevift wrote:
deennoo wrote:
Sevift wrote:
Via python script
Ok ! Can you share it please ?
I used vereschark to intercept packets.
I do not know whether they will suit you.
Probably everyone has their own packages.
Thanks, isn't really for me, but if some one get the robot and can try your script and works, that a good tricks
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
n1c0l45
Posts: 37
Joined: Monday 25 April 2016 9:45
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.4834
Location: France
Contact:

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

Post by n1c0l45 »

Sevift wrote:
deennoo wrote:
Sevift wrote:
Via python script
Ok ! Can you share it please ?
I used vereschark to intercept packets.
I do not know whether they will suit you.
Probably everyone has their own packages.

Code: Select all

#!/usr/bin/python

import socket
XXXX
XXXX
XXXX
sock.sendto(message_to_send, INET_ADDR)
Снимок экрана 2017-01-09 в 13.34.57.png
I should receve my mi robot soon, could you give me some informations to catch packets with wireshark? So that I could check if command are te same?

thanks
jjnj

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

Post by jjnj »

All my compliments to you guys. I installed everything and it works really really well!
Thanks for your hard work.
Sevift
Posts: 31
Joined: Monday 21 September 2015 16:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Contact:

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

Post by Sevift »

n1c0l45 wrote: I should receve my mi robot soon, could you give me some informations to catch packets with wireshark? So that I could check if command are te same?

thanks
For example, a vacuum cleaner Search
Install BlueStacks on PC (Mac)
Install MiHome app on BlueStacks and connect Mi Robot
Снимок экрана 2017-01-10 в 18.46.24.png
Снимок экрана 2017-01-10 в 18.46.24.png (147.14 KiB) Viewed 11079 times
On MiHome see ip adress Mi Robot

Run vereschark and select interface network PC
Снимок экрана 2017-01-10 в 18.45.58.png
Снимок экрана 2017-01-10 в 18.45.58.png (164.07 KiB) Viewed 11079 times
Run intercept packets
Снимок экрана 2017-01-10 в 18.47.00.png
Снимок экрана 2017-01-10 в 18.47.00.png (185 KiB) Viewed 11079 times
Last edited by Sevift on Tuesday 10 January 2017 19:22, edited 1 time in total.
Sevift
Posts: 31
Joined: Monday 21 September 2015 16:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Contact:

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

Post by Sevift »

Click on MiHome search devices
and stop on vereschark intercept packets
search packets ip PC to ip Mi Robot
Снимок экрана 2017-01-10 в 18.49.44.png
Снимок экрана 2017-01-10 в 18.49.44.png (316.97 KiB) Viewed 11074 times
Copy data
555.png
555.png (338.28 KiB) Viewed 11076 times
Run PacketSender
Paste ip, port, protocol, data
Снимок экрана 2017-01-10 в 18.54.36.png
Снимок экрана 2017-01-10 в 18.54.36.png (117.67 KiB) Viewed 11076 times
And send

If the robot will respond - excellent!
The required package is found

analogously other commands
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,
when do you think the Xiaomi Home will be available in Domoticz stable version?
thanks for great job!
Domoticz + Mysensors 2.0 ESP8266 GW + RFlink + Philips Hue 2.0 + Netatmo Thermostat
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Post by deennoo »

jumping wrote:Hi,
when do you think the Xiaomi Home will be available in Domoticz stable version?
thanks for great job!
When Domoticz dev will decide to publish a new stable version.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
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 »

New firmware is available for Gateway 1.4.1_143.0141
Does someone has updated Gateway yet ? Developer mode still exist?
arkoko
Posts: 34
Joined: Saturday 17 December 2016 12:13
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Estonia
Contact:

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

Post by arkoko »

Yes.
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 »

arkoko wrote:Yes.
Is there are any improvements ? Battery level from sensors? Does log file shows something new?
n1c0l45
Posts: 37
Joined: Monday 25 April 2016 9:45
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.4834
Location: France
Contact:

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

Post by n1c0l45 »

Thanks for your help!!

Great !!
Sevift wrote:
n1c0l45 wrote: I should receve my mi robot soon, could you give me some informations to catch packets with wireshark? So that I could check if command are te same?

thanks
For example, a vacuum cleaner Search
Install BlueStacks on PC (Mac)
Install MiHome app on BlueStacks and connect Mi Robot
Снимок экрана 2017-01-10 в 18.46.24.png
On MiHome see ip adress Mi Robot

Run vereschark and select interface network PC
Снимок экрана 2017-01-10 в 18.45.58.png

Run intercept packets
Снимок экрана 2017-01-10 в 18.47.00.png
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest