Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

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 »

Please check your IP and password settings if you haven't already. The other sensors will still work as they use a different communication method.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Chucky69
Posts: 13
Joined: Saturday 09 January 2016 15:03
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

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

Post by Chucky69 »

corbin wrote:Please check your IP and password settings if you haven't already. The other sensors will still work as they use a different communication method.
Correct, I had until 10 minutes ago the same issue. So I opened the Mi Home again and I had to re-login again. (Most likely because my phone was recently updated with a new android version)
After logging in I also saw that I could update the gateway and the Mi Home app.

Then I refreshed the Xiaomi gateway in Domoticz and all worked....

Only I still don't see the lux sensor, but as I read some pages earlier it could be that the needed code is not merged yet in the main (beta) code.
xxLeoxx93
Posts: 16
Joined: Wednesday 22 March 2017 21:48
Target OS: Windows
Domoticz version:
Contact:

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

Post by xxLeoxx93 »

I'm using the latest main beta and I can see the lux sensor ;)
Chucky69
Posts: 13
Joined: Saturday 09 January 2016 15:03
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

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

Post by Chucky69 »

xxLeoxx93 wrote:I'm using the latest main beta and I can see the lux sensor ;)
Thanks,

on your remark I enabled new hardware devices and I made sure the light environment changed around the gateway. The lux sensor popped up in my devices now.
chatainsim
Posts: 101
Joined: Wednesday 25 March 2015 10:46
Target OS: Linux
Domoticz version: v4.11307
Location: France
Contact:

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

Post by chatainsim »

corbin wrote:
chatainsim wrote: I will try as soon as possible.
Which branche ? Because master was updated 13 days ago.
Thanks
Sorry, forgot to sync. It is updated now - https://github.com/corbinmunce/domoticz
Compilation was successful, just waiting to smoke alarm to appear in Domoticz.
chatainsim
Posts: 101
Joined: Wednesday 25 March 2015 10:46
Target OS: Linux
Domoticz version: v4.11307
Location: France
Contact:

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

Post by chatainsim »

I can add the Smoke detector.
But I have an error in logs :
2017-05-20 12:20:15.026 Error: XiaomiGateway: invalid data received!
How can I check what is it ? Get more debug log ?
chatainsim
Posts: 101
Joined: Wednesday 25 March 2015 10:46
Target OS: Linux
Domoticz version: v4.11307
Location: France
Contact:

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

Post by chatainsim »

If I click to turn on smoke detector, I cannot turn it off back. It always turn on.
Yes I know it shouldn't be turn on from Domoticz it doesn't make sense but I tried :)
Nothing change except the status in Domoticz.


Edit: Ok nevermind I found the reset button...
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 »

Was the error when smoke was detected?

You can enable the raw gateway messages to appear in the Domoticz log by creating a user variable 'XiaomiMessage' of type Integer and value 1. (Setup -> More Options -> User Variables). Then restart the Gateway hardware in Domoticz. from http://www.domoticz.com/wiki/Xiaomi_Gat ... leshooting
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

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

Post by ben53252642 »

Ahh awesome! Someone adding the Smoke Detector, mine should be arriving any day now. :D
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
chatainsim
Posts: 101
Joined: Wednesday 25 March 2015 10:46
Target OS: Linux
Domoticz version: v4.11307
Location: France
Contact:

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

Post by chatainsim »

corbin wrote:Was the error when smoke was detected?

You can enable the raw gateway messages to appear in the Domoticz log by creating a user variable 'XiaomiMessage' of type Integer and value 1. (Setup -> More Options -> User Variables). Then restart the Gateway hardware in Domoticz. from http://www.domoticz.com/wiki/Xiaomi_Gat ... leshooting
Ok, I've deleted everything than add Gateway back.
I can't get the error message again.

So for me it's working.
If you want me to test the activation of the smoke alarm, I have to wait until monday when I'll be alone at home :)
chatainsim
Posts: 101
Joined: Wednesday 25 March 2015 10:46
Target OS: Linux
Domoticz version: v4.11307
Location: France
Contact:

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

Post by chatainsim »

I have a question regarding battery information.
For a temp sensor, I have this information :
Image

Which one should I trust ?
The Low for Temp only, or the 80 ?
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

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

Post by ben53252642 »

chatainsim wrote:I have a question regarding battery information.
For a temp sensor, I have this information :
Image

Which one should I trust ?
The Low for Temp only, or the 80 ?
I might be wrong about this but what is your battery low threshold set to?

http://domoticzip/#/Setup Go to the "Other" tab.

Maybe it set the "Low" label because the level is under the threshold on that tab?
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
chatainsim
Posts: 101
Joined: Wednesday 25 March 2015 10:46
Target OS: Linux
Domoticz version: v4.11307
Location: France
Contact:

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

Post by chatainsim »

ben53252642 wrote: ...

I might be wrong about this but what is your battery low threshold set to?

http://domoticzip/#/Setup Go to the "Other" tab.

Maybe it set the "Low" label because the level is under the threshold on that tab?
It's set to 5(%)
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

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

Post by madrian »

Guys, what about xiaomi powerstrips? It is somehow compatible?
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 »

Not compatible with the Gateway, but -> http://www.domoticz.com/forum/search.php?keywords=miio
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 »

chatainsim wrote: Ok, I've deleted everything than add Gateway back.
I can't get the error message again.

So for me it's working.
If you want me to test the activation of the smoke alarm, I have to wait until monday when I'll be alone at home :)
Yes please test (but don't burn your house down! :)), as I've only tested here with your previously posted message. Need to see what actual value is reported when smoke/fire is detected - so enable the messages with the XiaomiMessage user variable.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
chatainsim
Posts: 101
Joined: Wednesday 25 March 2015 10:46
Target OS: Linux
Domoticz version: v4.11307
Location: France
Contact:

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

Post by chatainsim »

corbin wrote: Yes please test (but don't burn your house down! :)), as I've only tested here with your previously posted message. Need to see what actual value is reported when smoke/fire is detected - so enable the messages with the XiaomiMessage user variable.
Ok, so I haven't burn my house down but thanks to ecig I was able to test the smoke alarm easily :D

Just press the button to test :

Code: Select all

2017-05-22 10:23:21.750 {"cmd":"report","model":"smoke","sid":"158d0001538a9e","short_id":31763,"data":"{\"density\":\"0\"}"}
2017-05-22 10:23:21.752 {"cmd":"heartbeat","model":"smoke","sid":"158d0001538a9e","short_id":31763,"data":"{\"voltage\":3215}"}
2017-05-22 10:23:21.752 (Gateway) General/Voltage (Xiaomi Voltage)
2017-05-22 10:23:21.952 {"cmd":"report","model":"smoke","sid":"158d0001538a9e","short_id":31763,"data":"{\"alarm\":\"0\"}"}
Gateway talk to say "everything is normal" thanks to google translate.

When smoke is detected :

Code: Select all

2017-05-22 10:24:36.842 {"cmd":"report","model":"smoke","sid":"158d0001538a9e","short_id":31763,"data":"{\"alarm\":\"1\"}"}
2017-05-22 10:24:39.039 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:39.041 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":305}"}
2017-05-22 10:24:39.041 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:41.038 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:41.039 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":312}"}
2017-05-22 10:24:41.039 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:42.033 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:42.034 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":313}"}
2017-05-22 10:24:42.034 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:42.649 {"cmd":"report","model":"smoke","sid":"158d0001538a9e","short_id":31763,"data":"{\"density\":\"255\"}"}
2017-05-22 10:24:42.649 (Gateway) Light/Switch (Xiaomi Smoke Detector)
2017-05-22 10:24:42.654 {"cmd":"heartbeat","model":"smoke","sid":"158d0001538a9e","short_id":31763,"data":"{\"voltage\":3215}"}
2017-05-22 10:24:42.654 (Gateway) General/Voltage (Xiaomi Voltage)
2017-05-22 10:24:42.847 {"cmd":"report","model":"smoke","sid":"158d0001538a9e","short_id":31763,"data":"{\"alarm\":\"1\"}"}
2017-05-22 10:24:44.037 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:44.038 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":318}"}
2017-05-22 10:24:44.038 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:45.034 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:45.045 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":319}"}
2017-05-22 10:24:45.045 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:47.025 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:47.026 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":323}"}
2017-05-22 10:24:47.026 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:48.020 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:48.021 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":323}"}
2017-05-22 10:24:48.021 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:50.016 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:50.017 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":327}"}
2017-05-22 10:24:50.017 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:51.013 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:51.014 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":326}"}
2017-05-22 10:24:51.014 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:53.012 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:53.013 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":329}"}
2017-05-22 10:24:53.013 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:54.008 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:54.009 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":328}"}
2017-05-22 10:24:54.009 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:56.002 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:56.003 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":330}"}
2017-05-22 10:24:56.003 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:56.003 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:59.002 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:59.003 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":331}"}
2017-05-22 10:24:59.003 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:24:59.993 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:24:59.995 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":331}"}
2017-05-22 10:24:59.995 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:01.996 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:01.997 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":332}"}
2017-05-22 10:25:01.997 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:02.988 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:02.989 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":332}"}
2017-05-22 10:25:02.989 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:05.003 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:05.004 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":333}"}
2017-05-22 10:25:05.004 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:05.985 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:05.986 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":332}"}
2017-05-22 10:25:05.986 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:07.979 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:07.980 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":333}"}
2017-05-22 10:25:07.980 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:08.975 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:08.976 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":333}"}
2017-05-22 10:25:08.976 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:10.975 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:10.977 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":333}"}
2017-05-22 10:25:10.976 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:11.970 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:11.971 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":333}"}
2017-05-22 10:25:11.973 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:13.965 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:13.966 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:13.967 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":334}"}
2017-05-22 10:25:14.963 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:14.964 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":334}"}
2017-05-22 10:25:14.964 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:16.449 (Gateway) Light/Switch (Xiaomi Motion Sensor)
2017-05-22 10:25:16.450 {"cmd":"report","model":"motion","sid":"158d00014d2d72","short_id":28678,"data":"{\"status\":\"motion\"}"}
2017-05-22 10:25:16.959 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:16.960 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":334}"}
2017-05-22 10:25:16.960 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:17.958 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:17.959 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":334}"}
2017-05-22 10:25:17.959 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:19.710 {"cmd":"report","model":"smoke","sid":"158d0001538a9e","short_id":31763,"data":"{\"alarm\":\"0\"}"}
2017-05-22 10:25:19.955 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:19.956 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":334}"}
2017-05-22 10:25:19.956 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:20.952 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:20.953 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":334}"}
2017-05-22 10:25:20.953 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:22.916 (Gateway) Light/Switch (Xiaomi Motion Sensor)
2017-05-22 10:25:22.917 {"cmd":"report","model":"motion","sid":"158d00013f7278","short_id":32884,"data":"{\"status\":\"motion\"}"}
2017-05-22 10:25:22.951 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:22.952 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":50331435,\"illumination\":334}"}
2017-05-22 10:25:22.952 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:23.944 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:23.945 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":334}"}
2017-05-22 10:25:23.945 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:25.939 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:25.940 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":334}"}
2017-05-22 10:25:25.940 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:26.720 {"cmd":"heartbeat","model":"plug","sid":"158d00012f4f30","short_id":49264,"data":"{\"voltage\":3600,\"status\":\"off\",\"inuse\":\"0\",\"power_consumed\":\"2045\",\"load_power\":\"0\"}"}
2017-05-22 10:25:26.720 (Gateway) General/kWh (Xiaomi Smart Plug Usage)
2017-05-22 10:25:27.705 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:27.706 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":331}"}
2017-05-22 10:25:27.706 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:29.705 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:29.706 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":334}"}
2017-05-22 10:25:29.706 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:30.703 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:30.704 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":1694433280,\"illumination\":331}"}
2017-05-22 10:25:30.704 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:32.663 (Gateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-05-22 10:25:32.664 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":345}"}
2017-05-22 10:25:32.664 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:32.693 {"cmd":"report","model":"gateway","sid":"286c078891f8","short_id":0,"data":"{\"rgb\":0,\"illumination\":345}"}
2017-05-22 10:25:32.693 (Gateway) Lux (Xiaomi Gateway Lux)
2017-05-22 10:25:53.379 {"cmd":"report","model":"smoke","sid":"158d0001538a9e","short_id":31763,"data":"{\"alarm\":\"0\"}"}
It's raw logs :)
Revers59
Posts: 13
Joined: Friday 12 May 2017 13:53
Target OS: Linux
Domoticz version:
Contact:

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

Post by Revers59 »

I'm new in your world
All work fine here. Domoticz + xiaomi smart home + 3 doors sensors + switch.
The switch have 4 states :
CLICK
LONG CLICK
LONG CLICK RELEASE
DOUBLE CLICK

Are there a way to use this switch for ARM AWAY /ARM HOME /DISARM ?

Solved :) my first one

Code: Select all

commandArray = {}
if (devicechanged['Xiaomi Wireless Switch'] == 'Click') then
commandArray['Domoticz Security Panel'] = 'Disarm'
elseif (devicechanged['Xiaomi Wireless Switch'] == 'Double Click') then
commandArray['Domoticz Security Panel'] = 'Arm Home'
elseif (devicechanged['Xiaomi Wireless Switch'] == 'Long Click') then
commandArray['Domoticz Security Panel'] = 'Arm Away'
end
return commandArray
just one question in my Domoticz french language in curent state I have 'Normal' and not 'DIsarm' but the lua script work with Disarm. IS it a bug ?
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 »

About smoke sensor easu to see alarm goes 0 when all is ok and alarm goes 1 when smoke is detected.

About alarme just a french translation...all is ok aucun probleme c'est ainsi
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Revers59
Posts: 13
Joined: Friday 12 May 2017 13:53
Target OS: Linux
Domoticz version:
Contact:

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

Post by Revers59 »

deennoo wrote: About alarme just a french translation...all is ok aucun probleme c'est ainsi
Hi Deennoo thanks for your answer. What is the best way for find real 'Current state' for use in lua script ? put Domoticz in english ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest