Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

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 »

Hi Corbin,
In last beta 3.7115 could not to add Gateway, no way to enter IP, port and password
I was too lazy to compile from the sources and I used a short command

Code: Select all

sudo curl -L install.domoticz.com | sudo bash
Spoiler: show
2017-03-23_23-38-47.png
2017-03-23_23-38-47.png (64.88 KiB) Viewed 2999 times
any ideas?
thanks

upd: but using my.domoticz.com I was able to add Gateway, bug or feature?
Spoiler: show
2017-03-24_00-18-52.png
2017-03-24_00-18-52.png (81.26 KiB) Viewed 2990 times
Last edited by Coldman on Thursday 23 March 2017 22:21, edited 1 time in total.
bing69
Posts: 139
Joined: Thursday 05 June 2014 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: 's-Hertogenbosch, NL
Contact:

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

Post by bing69 »

When i use the app on the phone the lamp on the gateway goes on and off and in the logfile i see:

2017-03-23 21:47:59.615 {"cmd":"report","model":"gateway","sid":"f0b429cfad38","short_id":0,"data":"{\"rgb\":419430291}"}
2017-03-23 21:48:21.586 {"cmd":"report","model":"gateway","sid":"f0b429cfad38","short_id":0,"data":"{\"rgb\":0}"}

When set the lamp on and off in Domoticz then the lamp goes NOT on but in the log file i see:

2017-03-23 21:48:46.937 User: Admin initiated a switch command (174/Xiaomi RGB Gateway/On)
2017-03-23 21:49:51.371 User: Admin initiated a switch command (174/Xiaomi RGB Gateway/Off)

what goes wrong??
Neutrino
Posts: 21
Joined: Sunday 08 May 2016 19:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: France
Contact:

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

Post by Neutrino »

deennoo wrote:
Yes beta is beta :lol:
So it's just not me :)
bertbigb
Posts: 147
Joined: Thursday 13 August 2015 13:36
Target OS: NAS (Synology & others)
Domoticz version: beta
Location: Netherlands
Contact:

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

Post by bertbigb »

Mooseknuckle wrote:Hi,

I made icon files for the cube and the round selector switch. Grab them if you like.
Thanks for your effort
Best regards Bert

Synology DS1517+ - DSM 6.2
Raspberry PI2-B, Raspberry Nano - Raspberry PI3 - model B
Xiaomi Gateway - Philips HUE Lights - Zwave - RFXCom(E) with KaKu and other 433MHz devices - Yeelight Lights - Toon
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 »

Coldman wrote:Hi Corbin,
In last beta 3.7115 could not to add Gateway, no way to enter IP, port and password
99.9% chance your browser has cached old files, you need to force the cache to clear.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
juzx
Posts: 16
Joined: Thursday 23 March 2017 14:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by juzx »

deennoo wrote:
juzx wrote:Anyone knows anything about progress on the Mi Socket Wi-Fi and how to control this within Domoticz or even without the Mi application?
Please provid a source who explain how to do this...probleme is here no way to get it on domoticz if there is no source to begin something.

Maybe hack who works for Mi Robot Vaccum Cleaner can work.

Search on this topic
I tried the same Method as Sevift did with the Vacuum Cleaner. I think indeed they use some sort of same way of communication. My results so far with the BlueStacks > WireShark > PacketSender method.

If you try to turn on the socket from the App it always sents the following message
21310020ffffffffffffffffffffffffffffffffffffffffffffffffffffffff

The answer on this message changes. It seems that there is some sort of counter in it. Below are 3 different responses from 3 different tries. You see a pattern that the first part is always the same and the last part. Only the middle part changes.

213100200000000003499f5d000 17 d5d 716ef1302435d69990f86a8c784db01f

213100200000000003499f5d000 18 3da 716ef1302435d69990f86a8c784db01f

213100200000000003499f5d000 18 4b1 716ef1302435d69990f86a8c784db01f

After this the app sents the following messages (again 3, also the 3 responses from the received signals from above). Here you also see a pattern. It uses the first part of the received message and then adds something probably encrypted?

213100600000000003499f5d000 17 d5d d531bc1c897ebfb15f5341678a6d0eba34cb5514fc89cb573d80d9617e9cf0e23ccf9685f7415287c2149336f51211ba817d8101670106990945d6daf0630546f6f42ab4547f92ef4f0aed6f78dc7ffb

213100600000000003499f5d000 18 3da 6315570f8702ce010b9d9562093474b660e38047a77a80588dee67ca90326f4586c1aad9f4e434c6083408e3211dad488c5509e04b6cbddc398bd95da60396c9edf821d224b951aa40f1a59a71f5ead5

213100600000000003499f5d000 18 4b1 aa2db754bec96fdd156abe56a2e2cfbecff67a91c17e502e744a72928bb1130def5e7be78e04c24921dfdf65a91514e070984b09a8a5f4b8e09903d64303a7a5dedea888a2a1137edee2f1051cddb795

After this you receive another package from the socket but this is probably not necessary to decrypt for now.

I think the vacuumcleaner, air purifier and the wifi wall socket all use the same method of communication.

Someone who got experience with this kind of decrypthing?
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 »

corbin wrote:
Coldman wrote:Hi Corbin,
In last beta 3.7115 could not to add Gateway, no way to enter IP, port and password
99.9% chance your browser has cached old files, you need to force the cache to clear.
I'm using the Chrome extension "Cache Killer" that you recommended, I also tried Firefox
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 »

Coldman wrote: I'm using the Chrome extension "Cache Killer" that you recommended, I also tried Firefox
I still think it is a caching issue. In Chrome, run developer tools and tick 'disable cache' under the network tab, then refresh the page - make sure you get the "Browser Cache is being refreshed..." message in the top right.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

corbin wrote:
Coldman wrote: I'm using the Chrome extension "Cache Killer" that you recommended, I also tried Firefox
I still think it is a caching issue. In Chrome, run developer tools and tick 'disable cache' under the network tab, then refresh the page - make sure you get the "Browser Cache is being refreshed..." message in the top right.
Ok, I will try
Thanks
Andy611
Posts: 1
Joined: Friday 24 March 2017 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Andy611 »

Hi all

I have an issue with Xiaomi wireless switch, I can see it in list of devices but I its not working like in previus beta version. I send command click but Xiaomi wireless bulb did not turn on. I also did tried to add bulb as sub device. Could you help me or do you have same experience ? Thanks
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 »

for anyone having problems with switches, try deleting and re-adding them.

I've also made some changes at https://github.com/corbinmunce/domoticz that will help with some of the switches.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

Thanks Corbin.
To re-add, I need just to remove the devices, or do I need to remove/add again the Xiaomi Hardware?

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

either way should work, sometimes I'll delete and re-add the Gateway to start with a clean slate of all devices for testing
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
doxikus
Posts: 14
Joined: Friday 27 November 2015 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Dalj, Croatia
Contact:

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

Post by doxikus »

Hi Guys,

I have gateway working for more than two weeks and here is few strange things that I want to share with you here, maybe someone mentioned earlier here but here is my problem. I have gateway with enabled developer mode, IP address is assigned via dhcp, on my phone with MI app I can controll light, radio, add sensor (I have one temp sensor and wireless switch), found and pair works great, I have also mylight led bulb which is under app found and controlled. When I move to domoticz and add gateway with all paired device it will work with no problem, but now is problem with phone app when I open It will report that gateway is offline, mylight also (led bulb have assigned static IP). I repeat control over domoticz works great, but my main concern is what if I want to add new device trough app!? Do I need to reset gateway add/adopt devices and agin pair in domoticz (add ip address and new password), enable developer mode!?

Thanks
Hedda
Posts: 49
Joined: Wednesday 06 July 2016 13:16
Target OS: Linux
Domoticz version:
Contact:

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

Post by Hedda »

FYI, this new function in Domoticz and this forum thread specifically have been mentioned in this blog post on cnx-software.com

http://www.cnx-software.com/2017/03/24/ ... -software/

"Xiaomi 6-in-1 WiFi & Zigbee Smart Home Kit Works with Domoticz Home Automation Software"
hekm77
Posts: 45
Joined: Thursday 09 February 2017 18:31
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

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

Post by hekm77 »

Still the same problem with the Xiaomi Smart Plug
Spoiler: show
2017-03-24 20.18.48.png
2017-03-24 20.18.48.png (89.46 KiB) Viewed 2843 times
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 »

Deleting and re-adding the devices actually didn't solve the problem for me. What I did to fix it was start with a new blank domoticz.db database. The devices then added correctly and plugs are controllable again. I didn't take a copy of the non-working database however.

@hekm77, could you send me a copy of your domoticz.db so I can compare?

EDIT - ok I've seen the problem, switches are getting added in as duplicates again in my new clean database. I'll try to get this fixed today
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

doxikus wrote: Do I need to reset gateway add/adopt devices and agin pair in domoticz (add ip address and new password), enable developer mode!?
I had a problem with my gateway a few days ago, half the devices were reporting as being disconnected in the Mi Home app. I deleted the gateway from the app, then added it back in and added in the disconnected devices and it went back to normal. Also disabled and re-enabled the developer/lan mode. The app remembered any previous rules I had setup.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
bing69
Posts: 139
Joined: Thursday 05 June 2014 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: 's-Hertogenbosch, NL
Contact:

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

Post by bing69 »

bing69 wrote:When i use the app on the phone the lamp on the gateway goes on and off and in the logfile i see:

2017-03-23 21:47:59.615 {"cmd":"report","model":"gateway","sid":"f0b429cfad38","short_id":0,"data":"{\"rgb\":419430291}"}
2017-03-23 21:48:21.586 {"cmd":"report","model":"gateway","sid":"f0b429cfad38","short_id":0,"data":"{\"rgb\":0}"}

When set the lamp on and off in Domoticz then the lamp goes NOT on but in the log file i see:

2017-03-23 21:48:46.937 User: Admin initiated a switch command (174/Xiaomi RGB Gateway/On)
2017-03-23 21:49:51.371 User: Admin initiated a switch command (174/Xiaomi RGB Gateway/Off)

what goes wrong??

no one??
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 »

bing69 wrote:When set the lamp on and off in Domoticz then the lamp goes NOT on but in the log file i see:
try compiling from https://github.com/corbinmunce/domoticz
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest