Page 54 of 123
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 9:02
by corbin
They have:
Code: Select all
{"cmd":"read_ack","model":"plug","sid":"158d00010ec40b","short_id":6903,"data":"{\"voltage\":3600,\"status\":\"on\",\"inuse\":\"1\",\"power_consumed\":\"7624\",\"load_power\":\"210\"}"}
expect an update soon to get it working in Domoticz
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 9:29
by deennoo
Have a look to thé gateway illumination value is here.
2017-04-01 09:34:21.545 {"cmd":"report","model":"gateway","sid":"f0b429cc2781","short_id":0,"data":"{\"rgb\":0,\"illumination\":1217}"
Surely ability to play sound is here to
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 9:35
by marcotrumpet
Afterhours update I've a lot of new gateway device "voltage" type .. maybe some new stuff
They refers to the round wireless switch I think
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 9:49
by corbin
I've got a pull request in that will fix the voltage reporting just 3.6v. It should also do battery percentage however I've set 0% to be 3v - this will be lowered once I know what the actual minimum voltage for the sensors are.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 11:39
by schurgan
How to recognize which battery indicator to which device belongs? For temperature sensors, there is no battery indicator.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 11:59
by schurgan
There are no identical ID's. The last 2-3 characters are always the same for two devices. I just do not know why temperature sensor has no battery indicator.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 13:08
by G3rard
Just received my Xiaomi Gateway and door sensor and it works like a charm.
@corbin, thank you very much for your excellent work!
Also impressed by the hardware. Will certainly buy some more of it.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 13:32
by apazga
G3rard wrote:Just received my Xiaomi Gateway and door sensor and it works like a charm.
@corbin, thank you very much for your excellent work!
Also impressed by the hardware. Will certainly buy some more of it.
+1! And Mi Home app is so much better than I expected too, although I will use it from Domoticz ^_^
Thanks for your awesome work Corbin.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 14:08
by xxLeoxx93
@cobin allow your modifications to domoticz to edit the switchbutton? I'm using the official latest beta, but I can't edit my switch
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 15:20
by deennoo
corbin wrote:I've got a pull request in that will fix the voltage reporting just 3.6v. It should also do battery percentage however I've set 0% to be 3v - this will be lowered once I know what the actual minimum voltage for the sensors are.
Have you add the Lux sensor for the gateway ?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Saturday 01 April 2017 15:57
by Derik
Someone now how i can FLIP the camera picture with the fangh hack
Or perhaps go this topic for the Xiaomi fang hack:
https://www.domoticz.com/forum/viewtopi ... =4&t=16948
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 02 April 2017 1:29
by corbin
New functions added for testing (not in official beta yet, only on
https://github.com/corbinmunce/domoticz):
Xiaomi Gateway Audio - basic support to play 8 different alarms
Gateway Lux Sensor
Smart Plug Consumption
Better battery level reporting is in the works but secondary to getting the above functions working properly.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 02 April 2017 1:31
by corbin
xxLeoxx93 wrote:@cobin allow your modifications to domoticz to edit the switchbutton? I'm using the official latest beta, but I can't edit my switch
Edit the switch button how? I can edit mine ok but it would likely break some functionality.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 02 April 2017 12:25
by mvveelen
Can somebody help me to get the Xiaomi gateway working in my Domoticz setup?
Ik have the latest Beta of Domoticz installed. I managed to add 2 door sensors in the (iPhone) app and when I (dis)connect them, I receive a notification on my iPhone. But, when I add the gateway to Domoticz, I see no new devices.
I have a fixed IP for the gateway, I triple checked the gateway password and use port 9898. Detect new devices is ON in my Domoticz setup and I even clicked on Allow new hardware for 5 minutes.
I even used the 2 lines from the Wiki:
iptables -P OUTPUT ACCEPT
iptables -I INPUT -p udp -j ACCEPT
No gateway is seen.
Any help is much appreciated!
Edit:
I use Domoticz on a Synology NAS. Since I don't see any Xiaomi devices, I tried this:
Code: Select all
Problem: After adding the gateway, no devices are found in Domoticz Solution: You need to ensure the system Domoticz is running on can receive UDP Multicast packets. On Linux, this can be done with
iptables -P OUTPUT ACCEPT
iptables -I INPUT -p udp -j ACCEPT
But no results after using these 2 lines.
Edit 2:
When I add the gateway, I see this in the log:
Code: Select all
2017-04-02 13:13:36.187 XiaomiGateway: will listen on 9898 for hardware id 13
2017-04-02 13:13:36.187 XiaomiGateway: Worker started...
So, why no new devices seen in the Devices list ?!
Code: Select all
udp 0 0 0.0.0.0:9898 0.0.0.0:* 19282/domoticz
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 02 April 2017 13:24
by 7h1nk
Inside the Gateway app when you enter the section called 'local area connection protocol', you should see the password but did you also enable 'local area connection protocol'?
...I'm on Android btw so I don't know if it looks different in the iPhone app.
Also, do you have your Firewall enabled on Synology? If you do the it might be worth turning it off until everything is working just to rule it out.
Sent from my Nexus 6P using Tapatalk
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 02 April 2017 13:27
by mvveelen
Hi,
yes, I activated the switch. The only thing I find a bit strange, is that the password on the iPhone is all capitals+numbers. On Android it has small letters+numbers. I don't have an Android at the moment, so I have to use my iPhone. I tried resetting the password a few times and changed it in Domoticz, but no result.
I have the Firewall disabled on the Synology. Same results.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 02 April 2017 13:31
by 7h1nk
The password thing is strange. I've gone back into the password screen on my gateway in the Android app, hit the button to generate a new password and you are correct in that on Android the password is a mixture of lower case characters and numbers.
Have you tried the password all in lower case in Domoticz?
Sent from my Nexus 6P using Tapatalk
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 02 April 2017 13:33
by mvveelen
Yes, I tried that (once). No Gateway in the Devices list. I'm soooooo close.........
Edit: tried it twice.....no result
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 02 April 2017 13:36
by 7h1nk
Maybe give your Synology a reboot, not sure to be honest. Mine is running on Ubuntu so it's a bit different but it sounds like you've done everything fine.
Failing that, it might be worth removing the gateway from Domoticz, reading the Wiki again and doing it step by step. That helped me yesterday when I was setting mine up and it wasn't detecting devices.
Sent from my Nexus 6P using Tapatalk
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Sunday 02 April 2017 13:46
by mvveelen
Tried rebooting the Synology: no Xiaomi gateway. And removing and adding the gateway step-by-step: did the 2 times and got the same result. There must be something I'm missing.