Xiaomi Smart Home Suite (very cheap) compatibilty?

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.
DJ41
Posts: 1
Joined: Sunday 03 September 2017 9:07
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by DJ41 » Sunday 03 September 2017 9:42

I would like to thank all the people working on integrating the Xiaomi Gateway and all its sensors to Domoticz. I picked up a Gateway and some sensors this summer. My initial idea was to use it purely for security. But when I came to see the possibilities for domotica, it got me very excited and I wanted to explore more.

I used the Xiaomi Mi app and apart from the Chinglish it looked very usable. But getting into programming some scenes, it became apparent it had some huge flaws. First of all the time zone. All my scenes that were dependant on a time schedule failed, because the app processes the time zone of China. I tried adding time in the app to compensate, but it doesn't seem to work right. The second flaw, and the most annoying one, is the lack of programming a delay when the sensors are triggered while the system is armed. When I open the front door the alarm will get immediately triggered. I was very surprised to see that the app does not allow for a delay to be programmed. I never heard of an alarm not having this mandatory feature.
So I started looking on the internet and saw the Gateway was compatible with Domoticz. Being new to Domoticz, I downloaded the program and started to experiment. I came to the conclusion that it is a very powerful program, that could easily outclass the Xiaomi Mi app. Shortly after I ordered a raspberry Pi 3 which I received this weekend. I installed Raspbian and Domoticz yesterday and I am now in the phase of exploring the programming part. I am not a very skilled programmer, so I am dependant on copy/pasting other peoples work and hopefully being able to bend it to my needs, learning a lot about Blockly and Lua in the process.

My main focus is on getting the gateway to properly function as an alarm with an trigger delay. Blockly is very straight formward, I already programmed the body sensor to trigger the power plug on a specific time to light a (non Xiaomi) Led strip in my backyard kitchen when motion is detected. Lua looks a bit more difficult though, but I still need to do a lot of reading. I have ordered more sensors and lights to experiment with. My setup so far:

Xiamoi Gateway V3 kit with door sensor, body sensor, powerplug, wireless switch, 2 Yeelight RGB bulbs.

On the way: 3 Yeelight RGB bulbs, magic cube remote, 2 wireless switches, body sensor, 2 door sensors

User avatar
Derik
Posts: 1862
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

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

Post by Derik » Sunday 03 September 2017 10:00

deennoo wrote:
Sunday 03 September 2017 0:42
Ask it on the great topic please, and you Can look on m'y blog searching for yeelight give you some exemple for white model, yeelight api is similar for rgb
Sorry
mmm was thinking this was the great topic, when i search i see only this...
Perhaps a link to the good topic...


Thanks!
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

User avatar
corbin
Posts: 498
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 » Sunday 03 September 2017 11:25

@DJ41

Yes its not that the Xiaomi app is bad at all, but using Domoticz opens up much more possibilities and can be quite powerful, and can be combined with devices from other manufacturers.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)

User avatar
corbin
Posts: 498
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 » Sunday 03 September 2017 11:26

Derik wrote:
Sunday 03 September 2017 10:00
Perhaps a link to the good topic...
The Yeelight thread? viewtopic.php?f=11&t=13016
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)

User avatar
corbin
Posts: 498
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 » Sunday 03 September 2017 11:30

Martins80 wrote:
Saturday 02 September 2017 13:44
marcotini wrote:
Saturday 02 September 2017 8:45
I don't know if there is one in Domoticz. It's just a water presence so I think that just 1 or 0 it's ok lol.
I think there is support for smoke alarm and gas alarm, i think this is the same, but water alarm
I could add it the same as the smoke alarm no problem, but hoping someone can suggest a more appropriate device.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)

Kerel
Posts: 17
Joined: Friday 02 December 2016 9:38
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by Kerel » Sunday 03 September 2017 13:56


benbammens
Posts: 30
Joined: Tuesday 30 May 2017 19:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by benbammens » Sunday 03 September 2017 15:06

Square is newer.

Verstuurd vanaf mijn SM-G930F met Tapatalk


martijnm
Posts: 24
Joined: Thursday 04 February 2016 14:06
Target OS: Raspberry Pi
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

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

Post by martijnm » Sunday 03 September 2017 15:57

I believe they are the same except for a different brandname (Aqara vs. Xiaomi)

TigroEHOT
Posts: 14
Joined: Wednesday 03 August 2016 12:14
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

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

Post by TigroEHOT » Sunday 03 September 2017 16:01

The square one includes pressure sensor.

martijnm
Posts: 24
Joined: Thursday 04 February 2016 14:06
Target OS: Raspberry Pi
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

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

Post by martijnm » Sunday 03 September 2017 18:59

Really? I didn't know that. Very interesting feature. Thanks!

chatainsim
Posts: 78
Joined: Wednesday 25 March 2015 11:46
Target OS: Linux
Domoticz version: v3.8153
Location: France
Contact:

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

Post by chatainsim » Monday 04 September 2017 9:22

corbin wrote:
Saturday 02 September 2017 4:00
chatainsim wrote:
Friday 01 September 2017 12:00

Code: Select all

2017-09-01 11:56:53.436 {"cmd": "read", "sid": "158d000170d676"}
Anybody ? Thanks
Don't know what this would be, what Xiaomi devices do you have?
I have the Gateway, 6 temperatures sensors (1st gen round), 2 power plug, 5 door sensros (3 1st gen, 2 2nd gen), 4 motion sensor (1st gen), 1 magic cube, 1 wireless wall double switch, 4 buttons (3 1st gen, 1 2nd gen) and 1 smoke detector.

User avatar
corbin
Posts: 498
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 » Monday 04 September 2017 10:23

Out of those, button 2nd gen and temperature sensor is what I don't have. Are all those devices working in Domoticz?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)

Martins80
Posts: 11
Joined: Saturday 26 August 2017 21:50
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by Martins80 » Monday 04 September 2017 10:30

chatainsim wrote:
Monday 04 September 2017 9:22
corbin wrote:
Saturday 02 September 2017 4:00
chatainsim wrote:
Friday 01 September 2017 12:00

Code: Select all

2017-09-01 11:56:53.436 {"cmd": "read", "sid": "158d000170d676"}
Anybody ? Thanks
Don't know what this would be, what Xiaomi devices do you have?
I have the Gateway, 6 temperatures sensors (1st gen round), 2 power plug, 5 door sensros (3 1st gen, 2 2nd gen), 4 motion sensor (1st gen), 1 magic cube, 1 wireless wall double switch, 4 buttons (3 1st gen, 1 2nd gen) and 1 smoke detector.
You can know whitch device is: in mihome enter the gateway->options->about->gateway information and search the device with this ID. You can know the type from the name in model.

chatainsim
Posts: 78
Joined: Wednesday 25 March 2015 11:46
Target OS: Linux
Domoticz version: v3.8153
Location: France
Contact:

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

Post by chatainsim » Monday 04 September 2017 11:42

Martins80 wrote:
Monday 04 September 2017 10:30
chatainsim wrote:
Monday 04 September 2017 9:22
corbin wrote:
Saturday 02 September 2017 4:00


Don't know what this would be, what Xiaomi devices do you have?
I have the Gateway, 6 temperatures sensors (1st gen round), 2 power plug, 5 door sensros (3 1st gen, 2 2nd gen), 4 motion sensor (1st gen), 1 magic cube, 1 wireless wall double switch, 4 buttons (3 1st gen, 1 2nd gen) and 1 smoke detector.
You can know whitch device is: in mihome enter the gateway->options->about->gateway information and search the device with this ID. You can know the type from the name in model.
I found this :

Code: Select all

2017-09-01 11:56:53.436 XiaomiGateway: unknown cmd received: read
2017-09-01 11:56:53.436 {"cmd": "read", "sid": "158d00015e9683"}
lumi.sensor_motion.v2

2017-09-01 11:56:53.436 XiaomiGateway: unknown cmd received: read
2017-09-01 11:56:53.436 {"cmd": "read", "sid": "158d0001a64ef5"}
lumi.sensor_magnet.aq2

2017-09-01 11:56:53.436 XiaomiGateway: unknown cmd received: read
2017-09-01 11:56:53.436 {"cmd": "read", "sid": "158d00012a42ca"}
lumi.plug.v1

2017-09-01 11:56:53.436 XiaomiGateway: unknown cmd received: read
2017-09-01 11:56:53.436 {"cmd": "read", "sid": "158d00015a8d79"}
lumi.sensor_ht.v1

2017-09-01 11:56:53.436 XiaomiGateway: unknown cmd received: read
2017-09-01 11:56:53.436 {"cmd": "read", "sid": "158d000182ec9e"}
lumi.sensor_ht.v1

2017-09-01 11:56:53.436 XiaomiGateway: unknown cmd received: read
2017-09-01 11:56:53.436 {"cmd": "read", "sid": "158d00017142ca"}
lumi.sensor_switch.aq2

2017-09-01 11:56:53.436 XiaomiGateway: unknown cmd received: read
2017-09-01 11:56:53.436 {"cmd": "read", "sid": "158d000170d676"}
lumi.sensor_ht.v1
I don't know what is this.

joebar
Posts: 35
Joined: Tuesday 24 January 2017 13:19
Target OS: -
Domoticz version:
Contact:

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

Post by joebar » Monday 04 September 2017 15:08

corbin wrote:Out of those, button 2nd gen and temperature sensor is what I don't have. Are all those devices working in Domoticz?
Yes, although the temp 2 sensor generates separate devices and that is a bit of a problem for homebridge support.
The baro is presented as general device with pressure as secondary. It would be better if that is presented as a real barometric sensor, now domoticz and homebridge don't see it as a weather sensor.

LeonvA
Posts: 2
Joined: Monday 04 September 2017 15:59
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by LeonvA » Monday 04 September 2017 16:10

Hello,

I have bought a Xiaomi gateway in China last week but it doesn't connect to Domoticz.
I can control the gateway and read the status of my temperature sensor in the Mi Home app.
I've enabled LAN Communication protocol in the Mi Home app and wrote down the password.
Then I added the new hardware in Domoticz with correct IP address, port 9898 and the correct password.
But then I can't see any new devices in the devices tab.
I've also tried it on a new installed raspberry pi with domoticz on a stand alone network but also no result.

anyone who can help me?

Thanks,
Leon

User avatar
Derik
Posts: 1862
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

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

Post by Derik » Monday 04 September 2017 17:10

rtfm....

you must set the gateway in to develop mode...
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: 905
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?

Post by deennoo » Monday 04 September 2017 17:15

LeonvA wrote:Hello,

I have bought a Xiaomi gateway in China last week but it doesn't connect to Domoticz.
I can control the gateway and read the status of my temperature sensor in the Mi Home app.
I've enabled LAN Communication protocol in the Mi Home app and wrote down the password.
Then I added the new hardware in Domoticz with correct IP address, port 9898 and the correct password.
But then I can't see any new devices in the devices tab.
I've also tried it on a new installed raspberry pi with domoticz on a stand alone network but also no result.

anyone who can help me?

Thanks,
Leon
What is you Fw version please ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / ESP8266 / MQTT / BLE
http://domo-attitude.fr

matteos1
Posts: 49
Joined: Monday 08 May 2017 17:29
Target OS: -
Domoticz version:
Contact:

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

Post by matteos1 » Monday 04 September 2017 22:01

i'de like to create a scene where when i close a door with xiaomi door sensor one light is on and when the door is open light is off.
how i can i make it possible??
thank you

pvm
Posts: 896
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

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

Post by pvm » Monday 04 September 2017 22:02

Did you try a blockly event?
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests