Page 20 of 123
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Monday 16 January 2017 20:11
by arkoko
corbin wrote:This is already fixed after the last firmware update.
Which number of FW you talking about? I have 1.4.1_143.0141 and still magnet always closing in 1 minute (beta 6371).
Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Monday 16 January 2017 20:24
by murtadin
corbin wrote:murtadin wrote:
First check /usr/bin/emerge if file exists. Check permitions. You are trying it under root user? If not -
looks like you have to install stage 3. Just download it and unzip to the system root.
I have installed missing liveusb library, required by precompiled binaries - now i can start ./domoticz, but still no luck. No device appear in device menu. Still need help to debug this case.
How about you create a VM of your setup that I can test with?
Do you mean i should create VM image of gentoo linux for Vmware for you? I am not sure that i understood you correct.
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Monday 16 January 2017 20:56
by levynger
arkoko wrote:corbin wrote:This is already fixed after the last firmware update.
Which number of FW you talking about? I have 1.4.1_143.0141 and still magnet always closing in 1 minute (beta 6371).
what is your domoticz version?
this issue was resolved already by corbin.
Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Monday 16 January 2017 21:02
by deennoo
levynger wrote:arkoko wrote:corbin wrote:This is already fixed after the last firmware update.
Which number of FW you talking about? I have 1.4.1_143.0141 and still magnet always closing in 1 minute (beta 6371).
what is your domoticz version?
this issue was resolved already by corbin.
Is waiting your github correction to provid it to domoticz main beta
Edit : didn't see your work on github 1 hour ago sorry.
Now we have to wait about corbin to wakeup (it's only 6:05 on Brisban, wake up Corbin ! Europe waiting for you !)
Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Monday 16 January 2017 21:07
by levynger
deennoo wrote:levynger wrote:arkoko wrote: Which number of FW you talking about? I have 1.4.1_143.0141 and still magnet always closing in 1 minute (beta 6371).
what is your domoticz version?
this issue was resolved already by corbin.
Is waiting your github correction to provid it to domoticz main beta
the pull request is ready in github, includes the aqara wireless, and aqara wired (only report)
i just disconvered that there is another event "Dual Switch" with the wireless - will add it soon to a new pull.
Re: RE: Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Monday 16 January 2017 21:13
by deennoo
levynger wrote:deennoo wrote:levynger wrote:
what is your domoticz version?
this issue was resolved already by corbin.
Is waiting your github correction to provid it to domoticz main beta
the pull request is ready in github, includes the aqara wireless, and aqara wired (only report)
i just disconvered that there is another event "Dual Switch" with the wireless - will add it soon to a new pull.
Try something today :
For cube and round switch, corbin set the Off option, but as they are "active switch" they never goes to off but on standby (MiHome never show off for those device).
I remove off from selector this works just have to check about % value for selector.
Will made it after your pull about dual button wireless switch.
Re: RE: Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Monday 16 January 2017 21:26
by levynger
deennoo wrote:levynger wrote:deennoo wrote:
Is waiting your github correction to provid it to domoticz main beta
the pull request is ready in github, includes the aqara wireless, and aqara wired (only report)
i just disconvered that there is another event "Dual Switch" with the wireless - will add it soon to a new pull.
Try something today :
For cube and round switch, corbin set the Off option, but as they are "active switch" they never goes to off but on standby (MiHome never show off for those device).
I remove off from selector this works just have to check about % value for selector.
Will made it after your pull about dual button wireless switch.
done, removed old pull requests, patch-2 is ready with dual Click mode for the aqara wireless switch.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Monday 16 January 2017 22:13
by deennoo
Great ! What is next device ? In wall plug ? The one shown before on this thread ? ... No api for this one, or maybe the outside wall plug is the same api.
Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 6:10
by corbin
murtadin wrote:
Do you mean i should create VM image of gentoo linux for Vmware for you? I am not sure that i understood you correct.
If you can make it easy for me with a VM I can just download and run then I hope to be able to find what the problem is. Not one I have to play around with settings - as it is I've spent a bit of time just trying to get the thing running.
Re: RE: Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 6:12
by corbin
levynger wrote:
done, removed old pull requests, patch-2 is ready with dual Click mode for the aqara wireless switch.
Thanks, can you check I re-opened the right pull request - they were all closed.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 8:19
by corbin
Can everyone that knows the sid of their gateway, report it here?
Code: Select all
{"cmd":"iam","port":"9898","sid":"f0b4299ae4b8","model":"gateway","ip":"192.168.5.15"}
I want to see if I can shorten f0b4299ae4b8 so it can be converted to an int value.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 9:01
by vetalok
corbin wrote:Can everyone that knows the sid of their gateway, report it here?
Code: Select all
{"cmd":"iam","port":"9898","sid":"f0b4299ae4b8","model":"gateway","ip":"192.168.5.15"}
I want to see if I can shorten f0b4299ae4b8 so it can be converted to an int value.
Code: Select all
('received message:', '{"cmd":"heartbeat","model":"gateway","sid":"f0b4299a6a3e","short_id":"0","token":"oaPNSolhcqpmG5gu","data":"{\\"ip\\":\\"192.168.2.193\\"}"}')
('received message:', '{"cmd":"heartbeat","model":"gateway","sid":"f0b4299a6a3e","short_id":"0","token":"tAivdgpTAgNZIoHV","data":"{\\"ip\\":\\"192.168.2.193\\"}"}')
('received message:', '{"cmd":"heartbeat","model":"gateway","sid":"f0b4299a6a3e","short_id":"0","token":"MSsVaS5tRVOmEEV8","data":"{\\"ip\\":\\"192.168.2.193\\"}"}')
('received message:', '{"cmd":"heartbeat","model":"gateway","sid":"f0b4299a6a3e","short_id":"0","token":"SXx5S6qwTYR1Wlto","data":"{\\"ip\\":\\"192.168.2.193\\"}"}')
('received message:', '{"cmd":"heartbeat","model":"gateway","sid":"f0b4299a6a3e","short_id":"0","token":"ofS1Uyk0A5YjR8FT","data":"{\\"ip\\":\\"192.168.2.193\\"}"}')
('received message:', '{"cmd":"report","model":"gateway","sid":"f0b4299a6a3e","short_id":0,"data":"{\\"rgb\\":1694498776}"}')
('received message:', '{"cmd":"report","model":"gateway","sid":"f0b4299a6a3e","short_id":0,"data":"{\\"rgb\\":0}"}')
('received message:', '{"cmd":"heartbeat","model":"gateway","sid":"f0b4299a6a3e","short_id":"0","token":"qOEkOTi9YEtWCsfX","data":"{\\"ip\\":\\"192.168.2.193\\"}"}')
('received message:', '{"cmd":"heartbeat","model":"gateway","sid":"f0b4299a6a3e","short_id":"0","token":"EKlvQaYzg5Dylvyd","data":"{\\"ip\\":\\"192.168.2.193\\"}"}')
And on page:
https://notes.jmsinfor.com/blog/post/admin/Xiaomi-Hub
see:
Code: Select all
{'cmd': 'heartbeat', 'token': 'ydfnrsd4cjgIVcTj', 'model': 'gateway', 'sid': 'f0b429b3d7cc', 'data': '{"ip":"192.168.0.107"}', 'short_id': '0'}
f0b4299ae4b8
f0b429b3d7cc
f0b4299a6a3e
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 9:13
by corbin
thanks, all starts with f0b4, so what I've coded should work.
Having a problem to convert the Domoticz Hue value into RGB for the gateway now...
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 9:15
by vetalok
corbin wrote:
Having a problem to convert the Domoticz Hue value into RGB for the gateway now...
http://stackoverflow.com/questions/3018 ... 5-for-both
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 9:35
by corbin
There is a hue2rgb function already but I might be using it wrong, will try some other functions too.
Edit - I was making a mistake. Gateway light is working now, setting to the correct colour.
Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 10:36
by murtadin
corbin wrote:murtadin wrote:
Do you mean i should create VM image of gentoo linux for Vmware for you? I am not sure that i understood you correct.
If you can make it easy for me with a VM I can just download and run then I hope to be able to find what the problem is. Not one I have to play around with settings - as it is I've spent a bit of time just trying to get the thing running.
May be you can give me ssh access to your VM which you hve installed? And i can install all neceseray libs in order to run domoticz. If not - i will do something on my side. Probably install gentoo on standalone host.
But who can explain - which are minimal requirements to run successful domoticz with xiaomi gateway? I mena linux kernel options, libs etc?
Tonight i installed ubuntu 14.04 server on new pc and tested domoticz. Almost all was working except minor bugs and look at this:
- Spoiler: show
Code: Select all
hats@u-srv2:/usr/local/git/domoticz$ sudo ldd domoticz
linux-vdso.so.1 => (0x00007ffe79bf9000)
libusb-0.1.so.4 => /lib/x86_64-linux-gnu/libusb-0.1.so.4 (0x00007f0aa24a2000)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f0aa2243000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f0aa1e66000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f0aa1c5e000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f0aa1a45000)
libcurl.so.4 => /usr/lib/x86_64-linux-gnu/libcurl.so.4 (0x00007f0aa17dd000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0aa15bf000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0aa13bb000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0aa10b4000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0aa0cef000)
/lib64/ld-linux-x86-64.so.2 (0x00005612bc6d3000)
libidn.so.11 => /usr/lib/x86_64-linux-gnu/libidn.so.11 (0x00007f0aa0abc000)
librtmp.so.0 => /usr/lib/x86_64-linux-gnu/librtmp.so.0 (0x00007f0aa08a1000)
libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f0aa065a000)
liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f0aa044b000)
libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f0aa01f9000)
libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f0a9ff3b000)
libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f0a9fcba000)
libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f0a9f9ef000)
libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f0a9f7c0000)
libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f0a9f5bb000)
libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f0a9f3b0000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f0a9f195000)
libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f0a9ef79000)
libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007f0a9ed3b000)
libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f0a9eb27000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f0a9e8e4000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f0a9e6df000)
libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f0a9e4db000)
libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007f0a9e2d1000)
libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007f0a9e049000)
libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007f0a9dda8000)
libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007f0a9db74000)
libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007f0a9d95f000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f0a9d757000)
libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007f0a9d52d000)
libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007f0a9d31f000)
libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007f0a9d0d6000)
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f0a9ce1c000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f0a9cbe3000)
and same from gentoo:
Code: Select all
desktop domoticz # ldd domoticz
linux-vdso.so.1 (0x00007fffc2b5e000)
libusb-0.1.so.4 => /lib64/libusb-0.1.so.4 (0x00007f814608c000)
libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0 (0x00007f8145e1c000)
libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00007f81459d9000)
librt.so.1 => /lib64/librt.so.1 (0x00007f81457d1000)
libz.so.1 => /lib64/libz.so.1 (0x00007f81455ba000)
libcurl.so.4 => /usr/lib64/libcurl.so.4 (0x00007f8145354000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8145138000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f8144f34000)
libm.so.6 => /lib64/libm.so.6 (0x00007f8144c2f000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8144896000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8146292000)
libusb-1.0.so.0 => /lib64/libusb-1.0.so.0 (0x00007f814467e000)
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.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 14:19
by vetalok
corbin wrote:
There is a hue2rgb function already but I might be using it wrong, will try some other functions too.
Edit - I was making a mistake. Gateway light is working now, setting to the correct colour.
Emm... When I enable LED from MiHome - Domoticz off light
Log:
Code: Select all
2017-01-17 15:16:30.337 (XiaomiGateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-01-17 15:16:30.339 {"cmd":"report","model":"gateway","sid":"f0b4299a6a3e","short_id":0,"data":"{\"rgb\":1694440192}"}
2017-01-17 15:16:31.337 XiaomiGateway: Updating existing - nodeid: f0b4299a6a3e
2017-01-17 15:16:31.337 (XiaomiGateway) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-01-17 15:16:31.339 {"cmd":"report","model":"gateway","sid":"f0b4299a6a3e","short_id":0,"data":"{\"rgb\":0}"}
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 15:30
by deennoo
On/OFF looks to be solve since 1h30 gmt today
Have a different probleme :
brightness doesn't work but normal as show on log message :
Code: Select all
2017-01-17 08:03:58.379 User: Admin initiated a switch command (8/Xiaomi RGB Gateway/Set Level)
2017-01-17 08:03:58.379 XiaomiGateway: Setting brightness not implemented, will try to fix this later
It's time to concidering a beer donation for corbin, do you have a paypal account ?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 20:16
by corbin
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?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Tuesday 17 January 2017 20:19
by corbin
deennoo wrote:
It's time to concidering a beer donation for corbin, do you have a paypal account ?
Appreciate that thanks, but If you want to make a donation, please use the donate link on
https://www.domoticz.com/