Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

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

Post by galadril »

I've readded the buttons and that was the solution, thanks.

But I've also removed the Gateway to readd it.. but that one never appeared back.
(i've triggered the light of the gateway multiple times with the mihome app)
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
nielsvdv
Posts: 2
Joined: Saturday 11 February 2017 21:35
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

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

Post by nielsvdv »

Without any problem I was able to add the Xiaomi RGB Gateway as a new Device to Domoticz (v. 3.6669) on a Synology NAS. I can see in the logs that Domoticz sends an on / off command (2017-02-11 21:42:38.810 User: nielsvdv initiated a switch command (67/Xiaomi RGB Gateway/On)). But nothing happens with the led on the gateway.

Does someone has a solution for this problem?
pikapt
Posts: 37
Joined: Wednesday 25 January 2017 20:54
Target OS: Linux
Domoticz version:
Contact:

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

Post by pikapt »

get the latest version from corbin git, should work fine
murtadin
Posts: 62
Joined: Saturday 31 December 2016 15:33
Target OS: Linux
Domoticz version: beta
Contact:

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

Post by murtadin »

nielsvdv wrote:Without any problem I was able to add the Xiaomi RGB Gateway as a new Device to Domoticz (v. 3.6669) on a Synology NAS. I can see in the logs that Domoticz sends an on / off command (2017-02-11 21:42:38.810 User: nielsvdv initiated a switch command (67/Xiaomi RGB Gateway/On)). But nothing happens with the led on the gateway.

Does someone has a solution for this problem?
Which model? I mean Synology NAS model.
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 »

galadril wrote: But I've also removed the Gateway to readd it.. but that one never appeared back.
(i've triggered the light of the gateway multiple times with the mihome app)
The "Xiaomi RGB Gateway"? I tried deleting mine and it was found again when restarting the gateway in Domoticz. There is no need to trigger the light anymore.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
nielsvdv
Posts: 2
Joined: Saturday 11 February 2017 21:35
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

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

Post by nielsvdv »

murtadin wrote:
nielsvdv wrote:Without any problem I was able to add the Xiaomi RGB Gateway as a new Device to Domoticz (v. 3.6669) on a Synology NAS. I can see in the logs that Domoticz sends an on / off command (2017-02-11 21:42:38.810 User: nielsvdv initiated a switch command (67/Xiaomi RGB Gateway/On)). But nothing happens with the led on the gateway.

Does someone has a solution for this problem?
Which model? I mean Synology NAS model.
I have a DS216Play with the latest Domoticz Beta installed. So not the version from Corbin.
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 »

nielsvdv wrote: I have a DS216Play with the latest Domoticz Beta installed. So not the version from Corbin.
Ok great, if you try my version, does it still not work?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
pikapt
Posts: 37
Joined: Wednesday 25 January 2017 20:54
Target OS: Linux
Domoticz version:
Contact:

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

Post by pikapt »

So I have a time script to turn off a gateway led after N seconds without motion detection. For some reason, turning off the light sometimes fails.

example:
017-02-13 21:15:00.646 EventSystem: Script event triggered: HallOff
2017-02-13 21:15:00.685 Activating Scene/Group: [grp_led]
2017-02-13 21:15:00.686 Activating Scene/Group Device: Xiaomi RGB Gateway (Off)
2017-02-13 21:15:00.837 (Xiaomi_Gw) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-02-13 21:15:01.110 (Dummy_Gw) General/Custom Sensor (Sun Azimuth)
2017-02-13 21:15:01.579 (Dummy_Gw) General/Custom Sensor (Sun Altitude)
2017-02-13 21:15:01.634 (Xiaomi_Gw) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-02-13 21:15:01.653 {"cmd":"report","model":"gateway","sid":"286c0785ad14","short_id":0,"data":"{\"rgb\":0}"}
2017-02-13 21:15:25.637 (Xiaomi_Gw) Light/Switch (Xiaomi Motion Sensor)
2017-02-13 21:15:25.656 {"cmd":"report","model":"motion","sid":"158d000127ca18","short_id":54285,"data":"{\"no_motion\":\"300\"}"}
2017-02-13 21:19:45.703 {"cmd":"heartbeat","model":"plug","sid":"158d00012aead2","short_id":21811,"data":"{\"status\":\"on\",\"inuse\":\"1\"}"}

we see the domoticz sending the off message (Activating Scene/Group Device: Xiaomi RGB Gateway (Off)) and then a reply from the gateway confirming it 2017-02-13 21:15:01.653 {"cmd":"report","model":"gateway","sid":"286c0785ad14","short_id":0,"data":"{\"rgb\":0}"}

now this one:

2017-02-13 21:04:00.497 EventSystem: Script event triggered: HallOff
2017-02-13 21:04:00.513 Activating Scene/Group: [grp_led]
2017-02-13 21:04:00.514 Activating Scene/Group Device: Xiaomi RGB Gateway (Off)
2017-02-13 21:04:00.665 (Xiaomi_Gw) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-02-13 21:04:50.527 (Xiaomi_Gw) Light/Switch (Xiaomi Motion Sensor)
2017-02-13 21:04:50.546 {"cmd":"report","model":"motion","sid":"158d000127ca18","short_id":54285,"data":"{\"no_motion\":\"300\"}"}


doesn't have the confirmation from the gateway and remained on until I switch it off manually. Any clue what it might be?
I have my rpi connected to via eth cable, and xiaomi connected via wifi to another router but they are in the same network, not sure if it's related with that..

EDIT: I guess these were network issues, I'm now using wifi interface from pi and it is on the same wireless network then gateway and it looks like its working good!
Last edited by pikapt on Wednesday 15 February 2017 10:52, edited 1 time in total.
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

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

Post by bbqkees »

Did anyone check if the Xiaomi gateway 'calls home' to China?
I wonder how secure this gateway is, I could not find anything online about it.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
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 »

bbqkees wrote:Did anyone check if the Xiaomi gateway 'calls home' to China?
I wonder how secure this gateway is, I could not find anything online about it.
Mine doesn't get internet acces (he set a parental limit, i just those malrvelous chinise radio...function)
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
pikapt
Posts: 37
Joined: Wednesday 25 January 2017 20:54
Target OS: Linux
Domoticz version:
Contact:

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

Post by pikapt »

@deennoo which site are you blocking?
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

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

Post by bbqkees »

deennoo wrote:
bbqkees wrote:Did anyone check if the Xiaomi gateway 'calls home' to China?
I wonder how secure this gateway is, I could not find anything online about it.
Mine doesn't get internet acces (he set a parental limit, i just those malrvelous chinise radio...function)
I ordered one this week, if it does not need internet access after setup I can easily block the gateway from accessing the internet in my Edgerouter.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
mschreier65
Posts: 2
Joined: Tuesday 17 January 2017 10:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by mschreier65 »

bbqkees wrote:Did anyone check if the Xiaomi gateway 'calls home' to China?
I wonder how secure this gateway is, I could not find anything online about it.
I did some research with a man-in-the-middle setup. It's calling home. So far I discovered the following dns/addresses/ranges:

DNS requests for: ot.io.mi.com,
DNS answer: 42.62.48.114, 58.83.200.2-12, 42.62.48.225, 42.62.48.2, 42.62.48.112, 42.62.48.113
DNS requests for: ott.io.mi.com
DNS answer: 58.83.160.36,58.83.160.14,42.62.94.185

Sniffing Results:
UDP: 58.83.200.0/24, 42.62.48.114
TCP: 58.83.160.36

Its sending some TCP requests during startup (maybe update requests?) and recurring UDP requests (heartbeat?). Additionally it sends UDP packages for every action (Movement, Button. etc). Unfortunately i'm not able to decode the send data.

I've blocked these connections ... until now its trying hard to reach only these endpoints but maybe there are more.

BTW: @corbin: thanks for your plugin! for me its working like a charm and hopefully it will be soon in the release path. I tried to get the heartbeat/battery level but in 24h (sniffing) i didnt received a single message with these information, maybe its in an earlier release. This page https://louiszl.gitbooks.io/lumi-gateway-local-api/ (use translator) is up to date and reports that there where changes related to battery measurement maybe a new update is available (dont know because everything is blocked :D ) deliviering new features.
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

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

Post by bbqkees »

mschreier65 wrote:
I did some research with a man-in-the-middle setup. It's calling home. So far I discovered the following dns/addresses/ranges:

Its sending some TCP requests during startup (maybe update requests?) and recurring UDP requests (heartbeat?). Additionally it sends UDP packages for every action (Movement, Button. etc). Unfortunately i'm not able to decode the send data.
If it calls home for apparently everything that is happening in your home, blocking is thus highly recommended!
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
mschreier65
Posts: 2
Joined: Tuesday 17 January 2017 10:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by mschreier65 »

bbqkees wrote: If it calls home for apparently everything that is happening in your home, blocking is thus highly recommended!
Sure, but i looks like the gateway is not accessible from phone if outbound connections are blocked....doing some more test
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 »

Some sporadic bug detected:
I have 3 Xiaomi Door/Window sensors. Very often (but not every time) after upgrade to latest beta, 2 of 3 sensors changed state to "Open" (but door/windows remains closed). In MiHome apps i see correct state (closed).

I have to open/close door to set status of device to right state.
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 »

pavelbor wrote:Some sporadic bug detected:
I have 3 Xiaomi Door/Window sensors. Very often (but not every time) after upgrade to latest beta, 2 of 3 sensors changed state to "Open" (but door/windows remains closed). In MiHome apps i see correct state (closed).

I have to open/close door to set status of device to right state.
same issue
murtadin
Posts: 62
Joined: Saturday 31 December 2016 15:33
Target OS: Linux
Domoticz version: beta
Contact:

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

Post by murtadin »

After last update to v3.6729 Xiaomi Gateway stopped working with domoticz. Anybody else experience same problems?
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 »

pavelbor wrote:Some sporadic bug detected:
I have 3 Xiaomi Door/Window sensors. Very often (but not every time) after upgrade to latest beta, 2 of 3 sensors changed state to "Open" (but door/windows remains closed). In MiHome apps i see correct state (closed).

I have to open/close door to set status of device to right state.
Same thing but reversed some Time door is open, mi Home says open but Domoticz stay close.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Jumper3126 »

Placed an order for the complete set at gearbest earlier this week. Got a reply that they a cant deliver at the moment. Further questioning got me the following replies:

We are sorry to inform you that this item is unavailable and won't be restocked in short time.
Yes, the supplier can not provided the item in short time as the item need to update.

Wondering what this new update might include
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests