Page 8 of 123
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 9:25
by corbin
deennoo wrote:@ducseb don't you have a fw update to do on your gateway ?
Yes try firmware update, as I believe v2 of the gateway has been released for quite some time already
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 9:27
by corbin
I did read somewhere that v1 did not support radio, and that listing specifically states it has the radio feature, so I would guess it is ok.
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 9:30
by deennoo
corbin wrote:
Yes these events are reported by the gateway, but I don't know what to translate them to in Domoticz. Have you a suggestion?
Using a selector switch !

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 9:44
by pavelbor
corbin wrote:
levynger wrote:
I have noticed that the Switch Does report single, double and Long press (Pressed and released events)
altough it doesnt appear in Device tab like the other XIOAMI devices.
does this exposed in one the switch type as well?
Yes these events are reported by the gateway, but I don't know what to translate them to in Domoticz. Have you a suggestion?
May be split them into 3 independent buttons (switches without state)?
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 9:53
by corbin
deennoo wrote:
Using a selector switch !
Thanks, I just changed my source to add a selector switch, but I only see the button for "Off", not "1 Press | 2 Press | Long Press"
Is there something else to do to get those options?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 9:53
by deennoo
My gateway is still not here.
My screen was an exemple for you
Hide off
1 press : selector 10%
2 press : selector 20%
Long press : selector 30%
You have to code it !
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 9:54
by corbin
pavelbor wrote:
May be split them into 3 independent buttons (switches without state)?
That would be ok, but if the switch deennoo has posted can work, it looks the goods!
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 9:56
by corbin
deennoo wrote:Hide off
I just ticked "Hide Off level", but that doesn't work, where do i Hide Off?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 9:59
by corbin
deennoo wrote:My gateway is still not here.
My screen was an exemple for you
Hide off
1 press : selector 10%
2 press : selector 20%
Long press : selector 30%
You have to code it !
Oh, haha!
I'm not going to code that, but you are welcome to
Is this something that could be done with the new Python add on?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 12:43
by vetalok
I have a problem, when I add gateway:
XiaomiGateway: Worker started...
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
what(): bind: Address already in use
Maybe the problem in port? I enter the following data:
type:command
param:addhardware
htype:95
address:192.168.2.193
port:777
name:XG
password:oz8w8fomda1do20a
enabled:true
datatimeout:0
Mode1:undefined
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 14:20
by deennoo
corbin wrote:deennoo wrote:My gateway is still not here.
My screen was an exemple for you
Hide off
1 press : selector 10%
2 press : selector 20%
Long press : selector 30%
You have to code it !
Oh, haha!
I'm not going to code that, but you are welcome to
Is this something that could be done with the new Python add on?
Will try to help when my gateway will arrive.
About coding/linking switch status to selector switch, i think first that you have to understand that selector is just a dimmer (like yeelight mono bulb) switch with predefin step.
Selector api :
https://www.domoticz.com/wiki/Domoticz_ ... tor_Switch
As our switch got 3 status, we need 3 steps, 3 % values
If your able to parse switch message, it need a rules like
If recieve switch xx 1 pluse then selector = 10%
Else if If recieve switch xx 2 pluse then selector = 20%
Else if If recieve switch xx long pulse then selector = 30%
At creation instead of creating push on , select : selector and try adding rules.
Second solution :
Update a text device with switch status message on it.
And python plugin are still on beginning (need to have an installer, and finishing evaluating how it works, if we can call various lib etc etc) as this is a new feature and looks hard to develop this can take time.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 30 December 2016 23:17
by corbin
I was adding the selector switch in a wrong way. Have done it through the Domoticz GUI now and see the extra options - so will be simple to hook up the code.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 31 December 2016 1:13
by corbin
vetalok wrote:I have a problem, when I add gateway:
XiaomiGateway: Worker started...
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
what(): bind: Address already in use
Maybe the problem in port? I enter the following data:
Does this still happen after a system restart?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 31 December 2016 1:37
by corbin
Switches now have the extra options:

- xiaom_switches.PNG (31.07 KiB) Viewed 2035 times
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 31 December 2016 3:43
by Coldman
corbin wrote:Switches now have the extra options:
xiaom_switches.PNG
to check it is need to do it?
git pull
cmake CMakeLists.txt
make
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 31 December 2016 4:11
by corbin
only in my repository at this stage, so something like this:
git clone
https://github.com/corbinmunce/domoticz.git domoticz
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 31 December 2016 8:14
by deennoo
corbin wrote:Switches now have the extra options:
xiaom_switches.PNG
Great ! Very great !
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 31 December 2016 9:31
by vetalok
corbin wrote:vetalok wrote:I have a problem, when I add gateway:
XiaomiGateway: Worker started...
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
what(): bind: Address already in use
Maybe the problem in port? I enter the following data:
Does this still happen after a system restart?
Yes. System crashed and not restarted.
Only If I delete a domoticz.db file, the system runs.
What am I doing wrong? Why do I have this issue?
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 31 December 2016 9:51
by corbin
deennoo wrote:corbin wrote:Switches now have the extra options:
xiaom_switches.PNG
Great ! Very great !

I hope you get you gateway soon, and then give feedback
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 31 December 2016 9:54
by corbin
vetalok wrote:
Yes. System crashed and not restarted.
Only If I delete a domoticz.db file, the system runs.
What am I doing wrong? Why do I have this issue?
It might be another program listening on UDP. I will try to stop the crash in my code. Are you running other programs or plugins that could be conflicting?