Page 51 of 123
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 23 March 2017 21:51
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 (64.88 KiB) Viewed 2998 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 (81.26 KiB) Viewed 2989 times
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 23 March 2017 21:53
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??
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 23 March 2017 21:59
by Neutrino
deennoo wrote:
Yes beta is beta
So it's just not me
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 23 March 2017 22:01
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
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 9:29
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.
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 9:32
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?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 9:34
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
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 9:40
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.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 9:51
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
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 10:04
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
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 11:10
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.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 11:13
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
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 11:15
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
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 14:46
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
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 15:14
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"
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 20:22
by hekm77
Still the same problem with the Xiaomi Smart Plug
- Spoiler: show
- 2017-03-24 20.18.48.png (89.46 KiB) Viewed 2842 times
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 24 March 2017 23:38
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
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 25 March 2017 2:10
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.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 25 March 2017 7:27
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??
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 25 March 2017 9:58
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