Page 62 of 123
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 12 April 2017 15:27
by marcotrumpet
deennoo wrote:marcotrumpet wrote:Great job guys.. gateway alarm ringtone works perfect but I can't trigger it with blocky.. in the log I see "eventSystem: Malformed action sequence!" Tried both with Police siren 1 and "10"
Inviato dal mio iPhone utilizzando Tapatalk
As This is a selector switch use setlevel to xx%
Amazing!!!
Inviato dal mio iPhone utilizzando Tapatalk
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 12 April 2017 15:29
by bing69
mvveelen wrote:What switch? I use the doorsensors and would like to have the battery statuses (back) in Domoticz.
I know what you mean, (read doorsensors ipv switch) do what i say and wait.....
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 12 April 2017 15:43
by mvveelen
Ah, I'm at work and can't try that at the moment. So in short: when I use the switch, the status is sent and then the devices will appear in the (unused) devices list

? Seems logical to me. Will try this tonight, thanks !
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 12 April 2017 16:49
by warmaniac
Hi ,
I had problem with sending back to the xiaomi gateway , it shows ERR
Code: Select all
2017-04-12 16:45:27.774 User: warmaniac initiated a switch command (109/Xiaomi RGB Gateway/On)
2017-04-12 16:45:27.926 Error: XiaomiGateway: unable to write command - Invalid Key
in domoticz it looks okay
Domoticz is running on Raspberry PI which is on same network as Xiaomi Gateway, in Raspberry is allowed UDP as you show on your site.
Tried to refresh key in xiaomi APP, it won't work .

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 12 April 2017 18:10
by deennoo
Does your rpi goes the right date and hour ? There is a sécurité Key which is calculate each Time you send an order, this need to be at the good hour
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 12 April 2017 21:27
by corbin
warmaniac wrote:
I had problem with sending back to the xiaomi gateway , it shows ERR
I've added extra troubleshooting steps -
http://www.domoticz.com/wiki/Xiaomi_Gat ... leshooting
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 12 April 2017 22:48
by evographics
Hi, I just configured a raspberry pi with domoticz. I want to add the Xiaomi Gateway, but it is not in the Hardware list. I already cleared the browser cache. Can you help me?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 12 April 2017 23:37
by warmaniac
allready done this things before I write a topic , I had correct time on raspberry , raspberry was plugged trought LAN to same router where is connected Xiaomi gateway, it is on main wifi network not guest , tried many times to change password copyied from PSPAD without spaces . I don't really know what to do next

Re: Xiaomi Smart Home Suite Doorbell trigger * SOLVED *
Posted: Thursday 13 April 2017 8:07
by mrefex
mrefex wrote:I installed the gateway and added the Doorbell gateway and volume and mp3.
My question is how to send a command to the gateway to play the doorbell sound.
Finally figured it out while reading the thread again
Had to trigger the MP3 gateway by first upload a mp3 with the Mihome app on my android. Now it works !
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 8:08
by corbin
evographics wrote:Hi, I just configured a raspberry pi with domoticz. I want to add the Xiaomi Gateway, but it is not in the Hardware list. I already cleared the browser cache. Can you help me?
Did you install the beta version of Domoticz?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 9:00
by evographics
corbin wrote:evographics wrote:Hi, I just configured a raspberry pi with domoticz. I want to add the Xiaomi Gateway, but it is not in the Hardware list. I already cleared the browser cache. Can you help me?
Did you install the beta version of Domoticz?
I don't think so. How can I check it?
I simply run
Code: Select all
sudo curl -L install.domoticz.com | sudo bash
on my RP3 with Jessy
Thank you for your response.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 9:24
by corbin
I've only ever compiled the beta, but would assume it is easy to download and install from
https://www.domoticz.com/downloads/
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 9:44
by warmaniac
always can't send command to the gateway
Code: Select all
Error: XiaomiGateway: unable to write command - Invalid Key
but after update , I've seen when xiaomi gateway connecting to domoticz this shows
Code: Select all
2017-04-13 09:38:39.556 XiaomiGateway: Worker started...
2017-04-13 09:38:39.556 XiaomiGateway: Using 192.168.2.8 for local IP address.
but that IP adress i IP adress of Domoticz server running, not xiaomi gateway, Gatway has
192.168.2.78 , may it be that problem what I had ?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 10:07
by bing69
warmaniac wrote:
always can't send command to the gateway
Code: Select all
Error: XiaomiGateway: unable to write command - Invalid Key
but after update , I've seen when xiaomi gateway connecting to domoticz this shows
Code: Select all
2017-04-13 09:38:39.556 XiaomiGateway: Worker started...
2017-04-13 09:38:39.556 XiaomiGateway: Using 192.168.2.8 for local IP address.
but that IP adress i IP adress of Domoticz server running, not xiaomi gateway, Gatway has
192.168.2.78 , may it be that problem what I had ?
No, thats ok!
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 10:58
by bing69
Check the battery status of just four door switches, but since April 11, I received no status. Work with the latest official beta
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 11:05
by mvveelen
This probably is the reason why I don't get the Battery Status back in Domoticz after deleting them....
Edit:
After updating to the latest Domoticz, I noticed that all Xiaomi doorsensor statuses where "Open". When I open the door and close it again, the status is updated to "Closed", and the status is OK again. Is this a known issue? Would it be possible to check the real status of the sensors so the statuses are OK the next time I restart or update Domoticz?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 13:11
by corbin
When Domoticz or the Xiaomi hardware device is restarted, it queries for the current state of devices. It should only update device state if there was a change from the last state - that is the intended operation.
Since this is not happening, it indicates a problem with your Domoticz settings, or in my code.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 13:15
by mvveelen
Well, I hope it's not in my settings (what setting could be wrong, it is open or closed), so maybe other users can try?
And, what about the battery statuses. Have you seen that they are not updating in the latest beta? Might be a small problem in the code I think.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 17:26
by Swifty
Has anyone tried to connect more than one Xiaomi gateway to Domoticz?
I'm thinking of buying a second one, just to use for a hallway night light (that can be switched on via presence sensor).. but don't want to buy another if it will interfere with my current one (or won't work in Domoticz at all)
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 13 April 2017 18:27
by murtadin
Swifty wrote:Has anyone tried to connect more than one Xiaomi gateway to Domoticz?
I'm thinking of buying a second one, just to use for a hallway night light (that can be switched on via presence sensor).. but don't want to buy another if it will interfere with my current one (or won't work in Domoticz at all)
Just buy xiaomi socket + any source of light you like.
Sent from my MI MAX using Tapatalk