Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

User avatar
brunod
Posts: 9
Joined: Tuesday 14 April 2015 9:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

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

Post by brunod »

Any issues using the Xiaomi Gateway with Domoticz?
I have some issues using you're tutorial:
https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Adding the Xiaomi Gateway to Domoticz:
In above part, I choose the toggle switch to enable de LAN mode and write down the password. I then click OK in the right bottom area to save the changes. Which I see with an answer to be correct.

After those steps I fill in the new hardware and password in Domoticz and click add (update)
The log file says: XiaomiGateway: Worker started...
And I can see the new hardware in Domoticz.
After those steps nothing happens in Domoticz. No Xiaomi Gateway appears at the devices en no other devices (already connected to the gateway) do appear.

To check my password and settings in the app after that I surprisingly see a new password and no toggled LAN switch! It seems I cannot save the setting in the xiaomi app on my phone.

Do you have any ideas to correct this?
levynger
Posts: 87
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Israel
Contact:

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

Post by levynger »

brunod wrote:
Any issues using the Xiaomi Gateway with Domoticz?
I have some issues using you're tutorial:
https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
Adding the Xiaomi Gateway to Domoticz:
In above part, I choose the toggle switch to enable de LAN mode and write down the password. I then click OK in the right bottom area to save the changes. Which I see with an answer to be correct.

After those steps I fill in the new hardware and password in Domoticz and click add (update)
The log file says: XiaomiGateway: Worker started...
And I can see the new hardware in Domoticz.
After those steps nothing happens in Domoticz. No Xiaomi Gateway appears at the devices en no other devices (already connected to the gateway) do appear.

To check my password and settings in the app after that I surprisingly see a new password and no toggled LAN switch! It seems I cannot save the setting in the xiaomi app on my phone.

Do you have any ideas to correct this?
Happened to me as well once, make sure the Mi Smart saves the settings by closing the App and reopen..
also, please what is your GW version?
User avatar
brunod
Posts: 9
Joined: Tuesday 14 April 2015 9:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

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

Post by brunod »

under about it says Version 2.19
benj29
Posts: 16
Joined: Sunday 22 January 2017 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by benj29 »

Hi,

I'm running on 3.6616 on raspberry. Since the last update (beta), i lost the connection with two gateways V2 (with color band) (which worked since 1 week).
I see the two gateways in my router configuration with the adequate IP (in case of...), 2.40/ 2.165.
Of course, the Xiaomi systems works perfectly on the Xiaomi software and in local.

I see this error on the log :
2017-02-05 16:44:00.644 Error: XIAOMI-GAT1 hardware (9) thread seems to have ended unexpectedly
2017-02-05 16:44:00.644 Error: XIAOMI-GAT2 hardware (10) thread seems to have ended unexpectedly

I see all the sensors, with the last date of connection, one day ago, before the upgrade to the last version.

Any idea ? i've started a new install on a baytrail (because i prefer to use this computer instead of a raspberry for long term use...)

EDIT : I check the error, i suppress one gateway, and i reconfigure the first one and it works !
But i loose all the sensors of the second gateway... humrf ??? How i can access to the second gateway or bridge it ?

EDIT 2 : I remove the LAN support for the second gateway, only one works on 9898. But i can't see the other sensors linked to the previous one since the LAN connection of the second... is it volontary to reduce to only one gateway ? I don't understand because i see two RGB color band in the measurement units, but when i set on/off the rgb band, only one will turn on, which is the adequate gateway (with Lan activation).
User avatar
brunod
Posts: 9
Joined: Tuesday 14 April 2015 9:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

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

Post by brunod »

Ok I finally got it working:

Trick was to re-install the android app to get the password set and saved for Domoticz.
Domoticz immediately found the Xiaomi Gateway
2017-02-05 21:17:11.043 XiaomiGateway: Worker started...
2017-02-05 21:17:11.047 XiaomiGateway: RGB Gateway Detected
and I was able to bind the detected hardware to a Domoticz light switch.

Now I wait for Domoticz to detect my connected temperature gauges. I hope they will eventually appear.
Kayle
Posts: 1
Joined: Sunday 05 February 2017 21:27
Target OS: Windows
Domoticz version:
Contact:

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

Post by Kayle »

Sevift wrote:
Sevift wrote:Xiaomi Mi Robot Vacuum - Is that possible? )
it's possible!

Снимок экрана 2017-01-08 в 21.06.53.png
Hello Sevift,

did you manage also to get the actual Battery Level or cleaning time ?

Greetings Kay
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 »

benj29 wrote:Hi,

I'm running on 3.6616 on raspberry. Since the last update (beta), i lost the connection with two gateways V2 (with color band) (which worked since 1 week).
I see the two gateways in my router configuration with the adequate IP (in case of...), 2.40/ 2.165.
Of course, the Xiaomi systems works perfectly on the Xiaomi software and in local.

I see this error on the log :
2017-02-05 16:44:00.644 Error: XIAOMI-GAT1 hardware (9) thread seems to have ended unexpectedly
2017-02-05 16:44:00.644 Error: XIAOMI-GAT2 hardware (10) thread seems to have ended unexpectedly

I see all the sensors, with the last date of connection, one day ago, before the upgrade to the last version.

Any idea ? i've started a new install on a baytrail (because i prefer to use this computer instead of a raspberry for long term use...)

EDIT : I check the error, i suppress one gateway, and i reconfigure the first one and it works !
But i loose all the sensors of the second gateway... humrf ??? How i can access to the second gateway or bridge it ?

EDIT 2 : I remove the LAN support for the second gateway, only one works on 9898. But i can't see the other sensors linked to the previous one since the LAN connection of the second... is it volontary to reduce to only one gateway ? I don't understand because i see two RGB color band in the measurement units, but when i set on/off the rgb band, only one will turn on, which is the adequate gateway (with Lan activation).
Only a single gateway is supported in Domoticz. In older Beta versions I would have expected it to stop working as you are currently seeing with each thread crashing. But with the current Beta, it should not be starting at all and instead displaying "XiaomiGateway: Only one Xiaomi Gateway is supported, please remove any duplicates from Hardware"
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
benj29
Posts: 16
Joined: Sunday 22 January 2017 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by benj29 »

Thanks Corbin for your return.
But how i can add other sensors linked to the second gateway ?
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 »

benj29 wrote:Thanks Corbin for your return.
But how i can add other sensors linked to the second gateway ?
I don't have 2 gateways so haven't observed how it would work. Can you put everything on one gateway?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
benj29
Posts: 16
Joined: Sunday 22 January 2017 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by benj29 »

No i can't due to the surface of my house and of course number of sensors (near 40 !).
I don't remember exactly but there is a limitation of max sensor / gateway.
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 »

Did you hit the sensor limit? I'd like to know what it is, have 17 so far with a few more to go yet. Also do you have the power plugs as they are supposed to be range extenders?
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 »

corbin wrote: Only a single gateway is supported in Domoticz.
No way to get 2 or more ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
benj29
Posts: 16
Joined: Sunday 22 January 2017 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by benj29 »

corbin wrote:Did you hit the sensor limit? I'd like to know what it is, have 17 so far with a few more to go yet. Also do you have the power plugs as they are supposed to be range extenders?
I can try, but 2 gateways are very pratical (red color for alarm) etc... i will try !
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 »

deennoo wrote: No way to get 2 or more ?
Well if someone programs it, yes there is no reason why there can't be 2 or more. I have no desire to program it myself.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
benj29
Posts: 16
Joined: Sunday 22 January 2017 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by benj29 »

Hurmf, in other case, if it does not working with the two gateways, i need to use Jeedom or other softwares... :(
Sevift
Posts: 31
Joined: Monday 21 September 2015 16:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Contact:

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

Post by Sevift »

Kayle wrote:
Hello Sevift,

did you manage also to get the actual Battery Level or cleaning time ?

Greetings Kay
Hello.
No. To do this, we must be able to decrypt the packets.
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 »

benj29 wrote:Hurmf, in other case, if it does not working with the two gateways, i need to use Jeedom or other softwares... :(
And paid 6€ for a plugin who is on beta stage, and who got an update every day, good deal !
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
benj29
Posts: 16
Joined: Sunday 22 January 2017 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by benj29 »

Not sure to understand. Jeedom plug-in is in beta? Yes, same nightmare in this case lol!

I try to remove all my sensors from the second gateway to add on the first one, but I cannot add more than 31...

Envoyé de mon Moto G (4) en utilisant Tapatalk
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 »

benj29 wrote:Not sure to understand. Jeedom plug-in is in beta? Yes, same nightmare in this case lol!

I try to remove all my sensors from the second gateway to add on the first one, but I cannot add more than 31...

Envoyé de mon Moto G (4) en utilisant Tapatalk
I got your solution !

Add a second domoticz+rpi/syno or anything else for the 2nd gateway and use the domoticz slave system to add the 2nd gateway hardware to your main
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
benj29
Posts: 16
Joined: Sunday 22 January 2017 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by benj29 »

Hehe !!!! :)
Good idea ! :)
I have a raspberry pi3, free of charge, because i move my installation to another Baytrail, more reliable :) !!!!
Now, i need to add all my sensors again... but if your idea will works it, it is perfect !
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest