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 »

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
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

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
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
marcotrumpet
Posts: 102
Joined: Saturday 18 February 2017 8:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by marcotrumpet »

Afterhours update I've a lot of new gateway device "voltage" type .. maybe some new stuff :D

They refers to the round wireless switch I think
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 »

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.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
schurgan
Posts: 9
Joined: Monday 20 March 2017 15:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by schurgan »

How to recognize which battery indicator to which device belongs? For temperature sensors, there is no battery indicator.
schurgan
Posts: 9
Joined: Monday 20 March 2017 15:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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.
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

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

Post 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.
Not using Domoticz anymore
apazga
Posts: 13
Joined: Tuesday 23 August 2016 11:24
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Spain
Contact:

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

Post 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.
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 »

@cobin allow your modifications to domoticz to edit the switchbutton? I'm using the official latest beta, but I can't edit my switch :(
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

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

Post 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 ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

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

Post 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
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
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 »

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.
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 »

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.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

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

Post 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 
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
7h1nk
Posts: 15
Joined: Monday 06 March 2017 23:38
Target OS: Linux
Domoticz version:
Contact:

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

Post 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
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

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

Post 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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
7h1nk
Posts: 15
Joined: Monday 06 March 2017 23:38
Target OS: Linux
Domoticz version:
Contact:

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

Post 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
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

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

Post by mvveelen »

Yes, I tried that (once). No Gateway in the Devices list. I'm soooooo close.........

Edit: tried it twice.....no result
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
7h1nk
Posts: 15
Joined: Monday 06 March 2017 23:38
Target OS: Linux
Domoticz version:
Contact:

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

Post 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
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

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

Post 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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests