Page 91 of 123

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

Posted: Sunday 27 August 2017 17:42
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!

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

Posted: Sunday 27 August 2017 18:52
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

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

Posted: Monday 28 August 2017 9:30
by marcotini
Any news for the water sensor? Because I just bought one, Aliexpress sell it at 12 euros.

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

Posted: Monday 28 August 2017 19:48
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

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

Posted: Monday 28 August 2017 20:14
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

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

Posted: Monday 28 August 2017 20:16
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!

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

Posted: Tuesday 29 August 2017 10:00
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?

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

Posted: Tuesday 29 August 2017 19:16
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.

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

Posted: Tuesday 29 August 2017 19:18
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!

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

Posted: Tuesday 29 August 2017 20:32
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\"}"}

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

Posted: Wednesday 30 August 2017 4:32
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.

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

Posted: Wednesday 30 August 2017 4:34
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

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

Posted: Wednesday 30 August 2017 4:39
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.

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

Posted: Wednesday 30 August 2017 4:41
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.

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

Posted: Wednesday 30 August 2017 4:44
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.

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

Posted: Wednesday 30 August 2017 6:56
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

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

Posted: Wednesday 30 August 2017 7:45
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.

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

Posted: Wednesday 30 August 2017 11:49
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!

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

Posted: Wednesday 30 August 2017 11:56
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.

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

Posted: Wednesday 30 August 2017 16:12
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? :)