Xiaomi Smart Home Suite (very cheap) compatibilty?

Compatibility (hardware, devices and OS)
deennoo
Posts: 830
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Postby deennoo » Monday 09 January 2017 0:53

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 / ESP8266 / MQTT / BLE
http://domo-attitude.fr

jjnj
Posts: 226
Joined: Thursday 31 July 2014 13:51
Target OS: Windows
Domoticz version:
Location: NL
Contact:

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

Postby jjnj » Monday 09 January 2017 3:30

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: 193
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version:
Contact:

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

Postby ben53252642 » Monday 09 January 2017 4:50

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

woody4165
Posts: 412
Joined: Monday 14 March 2016 14:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

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

Postby woody4165 » Monday 09 January 2017 10:15

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

Sevift
Posts: 28
Joined: Monday 21 September 2015 16:02
Target OS: Raspberry Pi
Domoticz version: Latest
Contact:

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

Postby Sevift » Monday 09 January 2017 10:37

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
Posts: 226
Joined: Thursday 31 July 2014 13:51
Target OS: Windows
Domoticz version:
Location: NL
Contact:

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

Postby jjnj » Monday 09 January 2017 10:52

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

deennoo
Posts: 830
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Postby deennoo » Monday 09 January 2017 14:21

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 / ESP8266 / MQTT / BLE
http://domo-attitude.fr

deennoo
Posts: 830
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Postby deennoo » Monday 09 January 2017 14:22

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 / ESP8266 / MQTT / BLE
http://domo-attitude.fr

Sevift
Posts: 28
Joined: Monday 21 September 2015 16:02
Target OS: Raspberry Pi
Domoticz version: Latest
Contact:

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

Postby Sevift » Monday 09 January 2017 14:35

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 3320 times

deennoo
Posts: 830
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Postby deennoo » Monday 09 January 2017 16:19

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 / ESP8266 / MQTT / BLE
http://domo-attitude.fr

n1c0l45
Posts: 32
Joined: Monday 25 April 2016 9:45
Target OS: Raspberry Pi
Domoticz version: V3.4834
Location: France
Contact:

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

Postby n1c0l45 » Tuesday 10 January 2017 11:11

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
Posts: 226
Joined: Thursday 31 July 2014 13:51
Target OS: Windows
Domoticz version:
Location: NL
Contact:

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

Postby jjnj » Tuesday 10 January 2017 14:06

All my compliments to you guys. I installed everything and it works really really well!
Thanks for your hard work.

Sevift
Posts: 28
Joined: Monday 21 September 2015 16:02
Target OS: Raspberry Pi
Domoticz version: Latest
Contact:

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

Postby Sevift » Tuesday 10 January 2017 20:12

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 3171 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 3171 times


Run intercept packets
Снимок экрана 2017-01-10 в 18.47.00.png
Снимок экрана 2017-01-10 в 18.47.00.png (185 KiB) Viewed 3171 times
Last edited by Sevift on Tuesday 10 January 2017 20:22, edited 1 time in total.

Sevift
Posts: 28
Joined: Monday 21 September 2015 16:02
Target OS: Raspberry Pi
Domoticz version: Latest
Contact:

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

Postby Sevift » Tuesday 10 January 2017 20:21

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 3166 times


Copy data
555.png
555.png (338.28 KiB) Viewed 3168 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 3168 times

And send

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

analogously other commands

jumping
Posts: 11
Joined: Tuesday 19 July 2016 14:49
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Italy
Contact:

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

Postby jumping » Tuesday 10 January 2017 23:06

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: 830
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Postby deennoo » Tuesday 10 January 2017 23:22

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 / ESP8266 / MQTT / BLE
http://domo-attitude.fr

pavelbor
Posts: 37
Joined: Sunday 18 December 2016 13:18
Target OS: Raspberry Pi
Domoticz version: LastBeta
Location: Tallinn / Estonia
Contact:

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

Postby pavelbor » Wednesday 11 January 2017 14:54

New firmware is available for Gateway 1.4.1_143.0141
Does someone has updated Gateway yet ? Developer mode still exist?

arkoko
Posts: 19
Joined: Saturday 17 December 2016 13:13
Target OS: Raspberry Pi
Domoticz version: LastBeta
Contact:

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

Postby arkoko » Wednesday 11 January 2017 14:58

Yes.

pavelbor
Posts: 37
Joined: Sunday 18 December 2016 13:18
Target OS: Raspberry Pi
Domoticz version: LastBeta
Location: Tallinn / Estonia
Contact:

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

Postby pavelbor » Wednesday 11 January 2017 15:02

arkoko wrote:Yes.

Is there are any improvements ? Battery level from sensors? Does log file shows something new?

n1c0l45
Posts: 32
Joined: Monday 25 April 2016 9:45
Target OS: Raspberry Pi
Domoticz version: V3.4834
Location: France
Contact:

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

Postby n1c0l45 » Wednesday 11 January 2017 15:26

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


Return to “Compatibility”

Who is online

Users browsing this forum: No registered users and 7 guests