Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

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 »

Ok done ! Got to debug brightness for gateway hurry up ! ;-)

And get a hair cut ! Hippie ! Lol
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

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

Post by corbin »

murtadin wrote: But i have checked some libs - they are installed. Not all - cause i do not use kerberos, ldap and so on But may be some important libs are missed and for some reason, when i configure sources i see no errors at all about it.

P.S. - i really apreciate your help. Thank you.
I would guess missing crypto libraries on your Gentoo too - I don't really know what I'm looking at here, but this is the output from my Raspberry:
Spoiler: show

Code: Select all

pi@raspberrypi:~/domoticz $ sudo ldd domoticz
        linux-vdso.so.1 (0x7efd6000)
        /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f43000)
        libusb-0.1.so.4 => /lib/arm-linux-gnueabihf/libusb-0.1.so.4 (0x76f24000)
        libssl.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 (0x76eca000)
        libcrypto.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 (0x76d5c000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76d45000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76d1d000)
        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x76cf5000)
        libcurl.so.4 => /usr/lib/arm-linux-gnueabihf/libcurl.so.4 (0x76c84000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76c71000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76bf6000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76ab5000)
        /lib/ld-linux-armhf.so.3 (0x54b15000)
        libidn.so.11 => /usr/lib/arm-linux-gnueabihf/libidn.so.11 (0x76a73000)
        librtmp.so.1 => /usr/lib/arm-linux-gnueabihf/librtmp.so.1 (0x76a4a000)
        libssh2.so.1 => /usr/lib/arm-linux-gnueabihf/libssh2.so.1 (0x76a28000)
        libgssapi_krb5.so.2 => /usr/lib/arm-linux-gnueabihf/libgssapi_krb5.so.2 (0x769de000)
        libkrb5.so.3 => /usr/lib/arm-linux-gnueabihf/libkrb5.so.3 (0x7692a000)
        libk5crypto.so.3 => /usr/lib/arm-linux-gnueabihf/libk5crypto.so.3 (0x768eb000)
        libcom_err.so.2 => /lib/arm-linux-gnueabihf/libcom_err.so.2 (0x768d8000)
        liblber-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/liblber-2.4.so.2 (0x768bc000)
        libldap_r-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2 (0x76868000)
        libgnutls-deb0.so.28 => /usr/lib/arm-linux-gnueabihf/libgnutls-deb0.so.28 (0x7675b000)
        libhogweed.so.2 => /usr/lib/arm-linux-gnueabihf/libhogweed.so.2 (0x76721000)
        libnettle.so.4 => /usr/lib/arm-linux-gnueabihf/libnettle.so.4 (0x766e1000)
        libgmp.so.10 => /usr/lib/arm-linux-gnueabihf/libgmp.so.10 (0x7666f000)
        libgcrypt.so.20 => /lib/arm-linux-gnueabihf/libgcrypt.so.20 (0x765cc000)
        libkrb5support.so.0 => /usr/lib/arm-linux-gnueabihf/libkrb5support.so.0 (0x765b3000)
        libkeyutils.so.1 => /lib/arm-linux-gnueabihf/libkeyutils.so.1 (0x765a7000)
        libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0x76582000)
        libsasl2.so.2 => /usr/lib/arm-linux-gnueabihf/libsasl2.so.2 (0x7655b000)
        libp11-kit.so.0 => /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0 (0x7651a000)
        libtasn1.so.6 => /usr/lib/arm-linux-gnueabihf/libtasn1.so.6 (0x764fa000)
        libgpg-error.so.0 => /lib/arm-linux-gnueabihf/libgpg-error.so.0 (0x764db000)
        libffi.so.6 => /usr/lib/arm-linux-gnueabihf/libffi.so.6 (0x764cb000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x7649e000)

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 »

deennoo wrote:Ok done ! Got to debug brightness for gateway hurry up ! ;-)

And get a hair cut ! Hippie ! Lol
Haha, one day, for both :)
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

Corbin, I finally assembled Visual studio with domoticz,and cloned your github.
when i run domoitcz, im missing the gateway ip and passoword fields, resulting in empty strings in m_gatewayIp and m_GatewayPassword

any idea what can cause this?
Attachments
Capture.PNG
Capture.PNG (97.5 KiB) Viewed 3068 times
psedma
Posts: 4
Joined: Tuesday 17 January 2017 22:50
Target OS: Windows
Domoticz version:
Contact:

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

Post by psedma »

any idea of my "problem"? I can't even see xiaomi gateway in "type" of hardware.
Attachments
2017-01-17.png
2017-01-17.png (68.5 KiB) Viewed 3044 times
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 »

@levynger, @psedma, clear your browser cache so that you get the fresh files.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
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 »

corbin wrote:@levynger, @psedma, clear your browser cache so that you get the fresh files.
Thanks @corbin
וtried that, also using the chrome plug in you suggested.
I r happen only on the compiled version from visual Studio.
On my Ubuntu, I pulled and compiled.. No issues.
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 »

copy the whole 'www' folder from the root of the project to the msbuild folder, replacing what is already there.
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 »

Received a box of Xiaomi sensors in the mail today, super impressed by the quality of the hardware, it's a lot smaller than I expected which opens up new possibilities for putting motion sensors around the place.

Opened each sensor and recorded the battery models (I have so many sensors from so many brands now this is the first thing I do).

Might want to keep a packet of each battery type in the cupboard, they all take different batteries. :)

Brand: Type: Sensor Model: Battery Model: Battery Voltage:
Xiaomi Door Sensor MCCGQ01LM CR1632 3v
Xiaomi Motion Sensor RTCGQ01LM CR2450 3v
Xiaomi Push Button WXKG01LM CR2032 3v

Also received the Xiaomi Air Purifier v2, again the quality of the hardware appears very well built. Working to figure out how to integrate it into Domoticz. :D
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
User avatar
vetalok
Posts: 22
Joined: Friday 30 December 2016 12:40
Target OS: Linux
Domoticz version: 3.6273
Location: Lviv, Ukraine
Contact:

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

Post by vetalok »

ben53252642 wrote:Received a box of Xiaomi sensors in the mail today, super impressed by the quality of the hardware, it's a lot smaller than I expected which opens up new possibilities for putting motion sensors around the place.

Opened each sensor and recorded the battery models (I have so many sensors from so many brands now this is the first thing I do).

Might want to keep a packet of each battery type in the cupboard, they all take different batteries. :)

Brand: Type: Sensor Model: Battery Model: Battery Voltage:
Xiaomi Door Sensor MCCGQ01LM CR1632 3v
Xiaomi Motion Sensor RTCGQ01LM CR2450 3v
Xiaomi Push Button WXKG01LM CR2032 3v

Also received the Xiaomi Air Purifier v2, again the quality of the hardware appears very well built. Working to figure out how to integrate it into Domoticz. :D
You must also have Xiaomi Gateway. The sensors do not work without it.
User avatar
vetalok
Posts: 22
Joined: Friday 30 December 2016 12:40
Target OS: Linux
Domoticz version: 3.6273
Location: Lviv, Ukraine
Contact:

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

Post by vetalok »

corbin wrote:
vetalok wrote: Emm... When I enable LED from MiHome - Domoticz off light
I've made a couple of changes, you will now need to turn the light on from the app to get it to detect in Domoticz, and I've added some extra log output. Can you try that and post the output if it still isn't working?
Yes I can. I will test how come from work (At 17:00 GMT).
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 »

corbin wrote:copy the whole 'www' folder from the root of the project to the msbuild folder, replacing what is already there.
thanks @corbin, a magician.. as always..
murtadin
Posts: 62
Joined: Saturday 31 December 2016 15:33
Target OS: Linux
Domoticz version: beta
Contact:

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

Post by murtadin »

corbin wrote:
I would guess missing crypto libraries on your Gentoo too - I don't really know what I'm looking at here, but this is the output from my Raspberry:
who can give me minimal system requirements? Which libs and kernel options are required in order to run domoticz with xiaomi gateway? Why no errors during configure an make?

Help - this driving me crazy ))
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 »

corbin wrote:
vetalok wrote: Emm... When I enable LED from MiHome - Domoticz off light
I've made a couple of changes, you will now need to turn the light on from the app to get it to detect in Domoticz, and I've added some extra log output. Can you try that and post the output if it still isn't working?

Turning it on/off once indeed got it detected in Devices.
however trying to turn it on/off results in invalid key ack

2017-01-18 10:39:11.700 XiaomiGateway: response {"cmd":"write_ack","sid":"f0b429cbf966","data":"{\"error\":\"Invalid key\"}"}
Coldman
Posts: 61
Joined: Saturday 17 December 2016 11:51
Target OS: Linux
Domoticz version: Beta
Location: Moscow, Russia
Contact:

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

Post by Coldman »

corbin wrote:
vetalok wrote: Emm... When I enable LED from MiHome - Domoticz off light
I've made a couple of changes, you will now need to turn the light on from the app to get it to detect in Domoticz, and I've added some extra log output. Can you try that and post the output if it still isn't working?

Code: Select all

XiaomiGateway: unhandled model: gateway
{"cmd":"report","model":"gateway","sid":"f0b4299a4e49","short_id":0,"data":"{\"rgb\":1694498782}"}
XiaomiGateway: unhandled model: gateway
{"cmd":"report","model":"gateway","sid":"f0b4299a4e49","short_id":0,"data":"{\"rgb\":0}"}
update: after git pull from https://github.com/corbinmunce/domoticz

Code: Select all

XiaomiGateway: rgb received value: 1694498782
XiaomiGateway: setting on to true
XiaomiGateway: New Gateway Found (299a4e49/Xiaomi RGB Gateway)
2017-01-18 23:23:09.751  (xGW) Lighting Limitless/Applamp (Unknown)
{"cmd":"report","model":"gateway","sid":"f0b4299a4e49","short_id":0,"data":"{\"rgb\":1694498782}"}
XiaomiGateway: rgb received value: 0
XiaomiGateway: setting on to false
XiaomiGateway: Updating existing - nodeid: f0b4299a4e49
2017-01-18 23:23:13.744  (xGW) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
{"cmd":"report","model":"gateway","sid":"f0b4299a4e49","short_id":0,"data":"{\"rgb\":0}"}
and as a result:
Spoiler: show
2017-01-18_23-27-15.png
2017-01-18_23-27-15.png (35.21 KiB) Viewed 2823 times
2017-01-18_23-37-32.png
2017-01-18_23-37-32.png (78.85 KiB) Viewed 2820 times
Mat2Vence
Posts: 41
Joined: Saturday 09 April 2016 18:11
Target OS: Linux
Domoticz version: 3.7449
Location: France
Contact:

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

Post by Mat2Vence »

Any idea why I cannot get the latest beta version update of domoticz? I am getting an error at the very end of the download
Coldman
Posts: 61
Joined: Saturday 17 December 2016 11:51
Target OS: Linux
Domoticz version: Beta
Location: Moscow, Russia
Contact:

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

Post by Coldman »

Mat2Vence wrote:Any idea why I cannot get the latest beta version update of domoticz? I am getting an error at the very end of the download
what is your platform - Windows/Unix?
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 »

Coldman wrote:
Mat2Vence wrote:Any idea why I cannot get the latest beta version update of domoticz? I am getting an error at the very end of the download
what is your platform - Windows/Unix?
im using both linux and windows, just tried to downlaod latest beta from domoticz, didnt see any problem.
file downloaded sucessfully.
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 »

levynger wrote:
corbin wrote:
vetalok wrote: Emm... When I enable LED from MiHome - Domoticz off light
I've made a couple of changes, you will now need to turn the light on from the app to get it to detect in Domoticz, and I've added some extra log output. Can you try that and post the output if it still isn't working?

Turning it on/off once indeed got it detected in Devices.
however trying to turn it on/off results in invalid key ack

2017-01-18 10:39:11.700 XiaomiGateway: response {"cmd":"write_ack","sid":"f0b429cbf966","data":"{\"error\":\"Invalid key\"}"}
@corbin, im getting invalid key ack from the gateway on any command i construct using the string from "GetGatewayKey();" function.
is it working for you?
Mat2Vence
Posts: 41
Joined: Saturday 09 April 2016 18:11
Target OS: Linux
Domoticz version: 3.7449
Location: France
Contact:

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

Post by Mat2Vence »

levynger wrote:
Coldman wrote:
Mat2Vence wrote:Any idea why I cannot get the latest beta version update of domoticz? I am getting an error at the very end of the download
what is your platform - Windows/Unix?
im using both linux and windows, just tried to downlaod latest beta from domoticz, didnt see any problem.
file downloaded sucessfully.
I should have made something wrong... I succeed. Let's make some trial on this new release and xiaomi :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest