Yes try firmware update, as I believe v2 of the gateway has been released for quite some time alreadydeennoo wrote:@ducseb don't you have a fw update to do on your gateway ?
Xiaomi Smart Home Suite (very cheap) compatibilty?
Moderator: leecollings
- 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?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- 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?
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.jjnj wrote:Just to be 100% sure:
i should buy this one: https://goo.gl/qQcoeo and not perse https://goo.gl/TZ1291 ?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
-
- 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?
Using a selector switch !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?

Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- 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?
May be split them into 3 independent buttons (switches without state)?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?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?
- corbin
- Posts: 463
- Joined: Saturday 20 August 2016 22:57
- Target OS: Windows
- Domoticz version: Beta
- Location: Brisbane, Australia
- Contact:
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
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"deennoo wrote:
Using a selector switch !
Is there something else to do to get those options?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
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 !
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 !
Last edited by deennoo on Friday 30 December 2016 9:53, edited 1 time in total.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
- 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?
That would be ok, but if the switch deennoo has posted can work, it looks the goods!pavelbor wrote: May be split them into 3 independent buttons (switches without state)?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- 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?
I just ticked "Hide Off level", but that doesn't work, where do i Hide Off?deennoo wrote:Hide off
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- 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?
Oh, haha!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 !
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?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- vetalok
- Posts: 22
- Joined: Friday 30 December 2016 12:40
- Target OS: Linux
- Domoticz version: 3.6273
- Location: Lviv, Ukraine
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
I have a problem, when I add gateway:
Maybe the problem in port? I enter the following data: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
type:command
param:addhardware
htype:95
address:192.168.2.193
port:777
name:XG
password:oz8w8fomda1do20a
enabled:true
datatimeout:0
Mode1:undefined
-
- 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?
Will try to help when my gateway will arrive.corbin wrote:Oh, haha!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 !
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?
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.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
- 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?
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.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- 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?
Does this still happen after a system restart?vetalok wrote:I have a problem, when I add gateway:Maybe the problem in port? I enter the following data: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
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- 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?
Switches now have the extra options:
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
-
- 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?
to check it is need to do it?corbin wrote:Switches now have the extra options:
xiaom_switches.PNG
git pull
cmake CMakeLists.txt
make
- 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?
only in my repository at this stage, so something like this:
git clone https://github.com/corbinmunce/domoticz.git domoticz
git clone https://github.com/corbinmunce/domoticz.git domoticz
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
-
- 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?
Great ! Very great !corbin wrote:Switches now have the extra options:
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
- vetalok
- Posts: 22
- Joined: Friday 30 December 2016 12:40
- Target OS: Linux
- Domoticz version: 3.6273
- Location: Lviv, Ukraine
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Yes. System crashed and not restarted.corbin wrote:Does this still happen after a system restart?vetalok wrote:I have a problem, when I add gateway:Maybe the problem in port? I enter the following data: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
Only If I delete a domoticz.db file, the system runs.
What am I doing wrong? Why do I have this issue?
- corbin
- Posts: 463
- Joined: Saturday 20 August 2016 22:57
- Target OS: Windows
- Domoticz version: Beta
- Location: Brisbane, Australia
- Contact:
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
deennoo wrote:Great ! Very great !corbin wrote:Switches now have the extra options:
xiaom_switches.PNG

Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- 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?
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?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?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Who is online
Users browsing this forum: No registered users and 1 guest