Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Friday 19 May 2017 12:36
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.
Open source Home Automation System
https://forum.domoticz.com/
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)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.
Thanks,xxLeoxx93 wrote:I'm using the latest main beta and I can see the lux sensor
Compilation was successful, just waiting to smoke alarm to appear in Domoticz.corbin wrote:Sorry, forgot to sync. It is updated now - https://github.com/corbinmunce/domoticzchatainsim wrote: I will try as soon as possible.
Which branche ? Because master was updated 13 days ago.
Thanks
Ok, I've deleted everything than add Gateway back.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
I might be wrong about this but what is your battery low threshold set to?chatainsim wrote:I have a question regarding battery information.
For a temp sensor, I have this information :
Which one should I trust ?
The Low for Temp only, or the 80 ?
It's set to 5(%)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?
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.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
Ok, so I haven't burn my house down but thanks to ecig I was able to test the smoke alarm easilycorbin 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.
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\"}"}
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\"}"}
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
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 ?deennoo wrote: About alarme just a french translation...all is ok aucun probleme c'est ainsi