Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

islandman
Posts: 53
Joined: Saturday 05 August 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by islandman »

xbox2610 wrote: Sunday 27 August 2017 14:09 Hi all, I have a few days restarted domoticz + homebridge + mqtt + broadlink and it all works well apart from the gateway functionality (sound effects + RGB light) and xiaomi smart plug somebody to the same problem?
Thank you
Mine are working great and stable!
deennoo
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?

Post by deennoo »

Pyros wrote: Wednesday 23 August 2017 15:11
deennoo wrote: Wednesday 23 August 2017 7:45 Where have you read that à yeelight device ? That à Philips One...once again search about product before buy a price...now you have :
- to search some source (i already give some)
- dévelop à python plugin for this, (thanks you)
Some guys worked on it : https://github.com/aholstenson/miio/issues/57
I've just succeded with light on/light off the ceiling with miio.

So next step is to work on domoticz plugin with those informations
There already a python lib for lot of device : https://github.com/rytilahti/python-mirobo have a look

edit : just test it with mibulb xiaomi philips : it works great ! finally hard trick is to get the token from the device
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
marcotini
Posts: 28
Joined: Thursday 16 February 2017 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

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

Post by marcotini »

Any news for the water sensor? Because I just bought one, Aliexpress sell it at 12 euros.
timh1004
Posts: 9
Joined: Monday 28 August 2017 11:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by timh1004 »

The Lux sensor values from the Xiaomi Gateway itself stops working after restarting my Pi. Then, after a few hours, it sometimes works again all of a sudden. Does anybody else have problems with the Lux value? And does the Lux sensor of the new Aqara motion sensor work yet?


Gesendet von iPhone mit Tapatalk
joebar
Posts: 35
Joined: Tuesday 24 January 2017 12:19
Target OS: -
Domoticz version:
Contact:

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

Post by joebar »

Yeah, never had good luck with the gateway lux sensor, the aqara lux in the new body sensor does work yes, it however only seems to update when triggered by motion.
No problem for me because I use it for motion and lux controlled lighting.
And it is not very sensitive, but still it does work. For better results you better get an i2c lux sensor directly on the pi or remote with an esp8266
timh1004
Posts: 9
Joined: Monday 28 August 2017 11:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by timh1004 »

joebar wrote:Yeah, never had good luck with the gateway lux sensor, the aqara lux in the new body sensor does work yes, it however only seems to update when triggered by motion.
No problem for me because I use it for motion and lux controlled lighting.
And it is not very sensitive, but still it does work. For better results you better get an i2c lux sensor directly on the pi or remote with an esp8266
This is great news! Thank you!
visser
Posts: 5
Joined: Sunday 13 November 2016 10:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Brisbane, Australia
Contact:

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

Post by visser »

Hi Domoticz users, I'm trying to trigger a notification when the power usage on a Xiaomi Smart Plug drops back to 0 (e.g. end of a washing machine cycle), I've found the current General > kWh device populates daily values well but not per-minute data. Help?
Martins80
Posts: 13
Joined: Saturday 26 August 2017 21:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Martins80 »

timh1004 wrote: Monday 28 August 2017 19:48 The Lux sensor values from the Xiaomi Gateway itself stops working after restarting my Pi. Then, after a few hours, it sometimes works again all of a sudden. Does anybody else have problems with the Lux value? And does the Lux sensor of the new Aqara motion sensor work yet?


Gesendet von iPhone mit Tapatalk
I have a pair of them and the lux measurement is not as good as i expected, i can not use it for turning on the lights of a room because it detects no light when there is still light for not turning on the lights :(

Also, the device is not supported in domoticz gateway plugin yet.
pandemicz
Posts: 9
Joined: Tuesday 15 August 2017 14:41
Target OS: -
Domoticz version:
Contact:

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

Post by pandemicz »

deennoo wrote: Sunday 27 August 2017 18:52
There already a python lib for lot of device : https://github.com/rytilahti/python-mirobo have a look

edit : just test it with mibulb xiaomi philips : it works great ! finally hard trick is to get the token from the device
Hi, just tried to discover my Xiaomi Philips Eyecare Smart Lamp 2, which is listed in supported devices, but I only discovered my gateway and yeelights, is there some trick to it or you just discovered xiaomi-philips bulb with mirobo discover command? Thanx!
mrinner
Posts: 56
Joined: Tuesday 22 August 2017 20:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belarus
Contact:

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

Post by mrinner »

Corbin,
Can you take a look at the my issue? :)
After restarting domoticz/hardware - some of devices (seems random) going in incorrect state. Sometimes all motion sensors goes ON, some switches... (beta 3.8369)

I've recorded log example. SID 158d0001309b87 is switch, when I restart hardware the channel 0 switched to "ON" state, but should be in "OFF". Then I opened Mi Home to check status -> show correct statuses of all devices. By log above seems it should be in "off" state (last row in log).

Code: Select all

2017-08-29 21:09:57.373 XiaomiGateway: will listen on 9898 for hardware id 3
2017-08-29 21:09:57.374 XiaomiGateway: Delaying worker startup...
2017-08-29 21:10:00.341 dzVents: Info: ------ Start internal script: Timer 1 min:, trigger: every minute
2017-08-29 21:10:00.384 dzVents: Info: ------ Finished Timer 1 min
2017-08-29 21:10:02.374 XiaomiGateway: Worker started...
2017-08-29 21:10:05.837 (Xiaomi Gateway) Lighting Limitless/Applamp (Xiaomi Gateway RGB)
2017-08-29 21:10:05.876 (Xiaomi Gateway) Light/Switch (Ванная - Свет)
2017-08-29 21:10:05.876 {"cmd":"report","model":"ctrl_neutral2","sid":"158d0001309b87","short_id":56446,"data":"{\"channel_1\":\"on\"}"}
2017-08-29 21:10:05.970 (Xiaomi Gateway) Light/Switch (Спальня - Свет)
2017-08-29 21:10:05.970 {"cmd":"report","model":"ctrl_neutral2","sid":"158d0001580b78","short_id":59882,"data":"{\"channel_1\":\"on\"}"}
2017-08-29 21:10:05.973 {"cmd":"read_ack","model":"86sw2","sid":"158d00012a79b2","short_id":35441,"data":"{\"voltage\":3045}"}
2017-08-29 21:10:05.974 (Xiaomi Gateway) General/Voltage (Кухня - Проходной (Battery))
2017-08-29 21:10:05.980 (Xiaomi Gateway) Light/Switch (Детская - Свет 1)
2017-08-29 21:10:05.980 {"cmd":"read_ack","model":"ctrl_neutral2","sid":"158d0001580bfb","short_id":26403,"data":"{\"voltage\":3300,\"channel_0\":\"on\",\"channel_1\":\"off\"}"}
2017-08-29 21:10:05.984 (Xiaomi Gateway) Light/Switch (Ванная - Вытяжка)
2017-08-29 21:10:05.985 {"cmd":"read_ack","model":"ctrl_neutral2","sid":"158d0001309b87","short_id":56446,"data":"{\"voltage\":3300,\"channel_0\":\"off\",\"channel_1\":\"on\"}"}
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 »

@mrinner Delete the wall switches and wait for Domoticz to detect them again. They will then get a new unit code which should make them work properly.
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 »

visser wrote: Tuesday 29 August 2017 10:00 Hi Domoticz users, I'm trying to trigger a notification when the power usage on a Xiaomi Smart Plug drops back to 0 (e.g. end of a washing machine cycle), I've found the current General > kWh device populates daily values well but not per-minute data. Help?
This is how I do a similar thing for my projector:

Code: Select all

local projectoron = false
watts = otherdevices["Xiaomi Usage Projector"]
watts = string.sub(watts, 0, string.find(watts, ";")-1)
numericWatts = tonumber(watts)
if (numericWatts > 100) then
    projectoron = true
    --print('projector is on')
end
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 »

marcotini wrote: Monday 28 August 2017 9:30 Any news for the water sensor? Because I just bought one, Aliexpress sell it at 12 euros.
If this is the plant sensor, then it won't work as it uses bluetooth not the gateway.
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 »

xbox2610 wrote: Sunday 27 August 2017 14:09 Hi all, I have a few days restarted domoticz + homebridge + mqtt + broadlink and it all works well apart from the gateway functionality (sound effects + RGB light) and xiaomi smart plug somebody to the same problem?
Thank you
Sounds like your gateway IP address or password is not correct in Domoticz. Double check both including checking for spaces in the gateway.
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 »

@xraken

If you try without the slider can you get it to work?
When Domoticz creates this Switch, it creates a User Variable : XiaomiMP3 with 10001 as a value : remember what is 10001 ? first sound recorded on the gateway ! Change it for 10002, click on Xiaomi Gateway MP3 switch and it will play sound 10002 which is your second personalised sound.
I've tested on my gateway and it still works through Domoticz.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
User avatar
marcotini
Posts: 28
Joined: Thursday 16 February 2017 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

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

Post by marcotini »

corbin wrote: Wednesday 30 August 2017 4:39
marcotini wrote: Monday 28 August 2017 9:30 Any news for the water sensor? Because I just bought one, Aliexpress sell it at 12 euros.
If this is the plant sensor, then it won't work as it uses bluetooth not the gateway.
No I mean this https://m.it.aliexpress.com/s/item/32825807314.html
joebar
Posts: 35
Joined: Tuesday 24 January 2017 12:19
Target OS: -
Domoticz version:
Contact:

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

Post by joebar »

Martins80 wrote:
timh1004 wrote: Monday 28 August 2017 19:48 The Lux sensor values from the Xiaomi Gateway itself stops working after restarting my Pi. Then, after a few hours, it sometimes works again all of a sudden. Does anybody else have problems with the Lux value? And does the Lux sensor of the new Aqara motion sensor work yet?


Gesendet von iPhone mit Tapatalk
I have a pair of them and the lux measurement is not as good as i expected, i can not use it for turning on the lights of a room because it detects no light when there is still light for not turning on the lights :(

Also, the device is not supported in domoticz gateway plugin yet.
Indeed, not sensitive enough but it is already supported in the plugin for a couple of weeks now. I have two of them working and controlling the lighting.
Martins80
Posts: 13
Joined: Saturday 26 August 2017 21:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Martins80 »

joebar wrote: Wednesday 30 August 2017 7:45
Martins80 wrote:
timh1004 wrote: Monday 28 August 2017 19:48 The Lux sensor values from the Xiaomi Gateway itself stops working after restarting my Pi. Then, after a few hours, it sometimes works again all of a sudden. Does anybody else have problems with the Lux value? And does the Lux sensor of the new Aqara motion sensor work yet?


Gesendet von iPhone mit Tapatalk
I have a pair of them and the lux measurement is not as good as i expected, i can not use it for turning on the lights of a room because it detects no light when there is still light for not turning on the lights :(

Also, the device is not supported in domoticz gateway plugin yet.
Indeed, not sensitive enough but it is already supported in the plugin for a couple of weeks now. I have two of them working and controlling the lighting.
Then i suppose i have to update to the latest corbin version. Thanks for the info!
mrinner
Posts: 56
Joined: Tuesday 22 August 2017 20:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belarus
Contact:

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

Post by mrinner »

corbin wrote: Wednesday 30 August 2017 4:32 @mrinner Delete the wall switches and wait for Domoticz to detect them again. They will then get a new unit code which should make them work properly.
I'm already did it when updated on the beta from stable (4 days ago), all switches was re-added, all works. But issue with restart domoticz/hardware sometimes exists, not only for switches but for motion sensors too.
PABben
Posts: 48
Joined: Friday 31 January 2014 14:32
Target OS: Windows
Domoticz version:
Location: Norway
Contact:

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

Post by PABben »

deennoo wrote: Monday 21 August 2017 18:13
pandemicz wrote:Guys, I'm a little confused with all the switches :oops: Just to be sure, is there solution for Wireless Two-Button Switch LEFT click problem with 149 firmware in latest build or we all suppose to wait for an update from Xiaomi?
You have to wait about a Fw update, that not à domoticz problème.
I have a dual switch and it's working fine in mi-app using 149 firmware. Why should xiaomi change the firmware when it's nothing wrong when using the app? :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest