Page 11 of 123
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 0:43
by dcliff1
corbin wrote:try updating to the latest beta - I've just had a pull request accepted. I don't think it will fix your problem but just to get you on the latest release.
If that doesn't work, are you able to compile from source? I could then do some troubleshooting.
Hey Corbin, its been a while since using Visual Studio but managed to get this:
2017-01-04 10:40:43.478 XiaomiGateway: Worker started...
2017-01-04 10:40:43.561 handle_receive starting:
2017-01-04 10:40:43.561 {"cmd":"iam","port":"9898","sid":"f0b429cc10e6","model":"gateway","ip":"192.168.1.2"}
2017-01-04 10:40:43.569 handle_receive starting:
2017-01-04 10:40:43.569 {"cmd":"get_id_list_ack","sid":"f0b429cc10e6","token":"32hIpaRsG3aB2B4j","data":"[\"158d000125519e\",\"158d000106c4e5\",\"158d000110a8c1\",\"158d000113b1f8\",\"158d00010df3cc\",\"158d0001185a1c\",\"158d00010e495b\",\"158d00012931f4\",\"158d000117f5f4\",\"158d00012d59e0\",\"158d0001106a9b\",\"158d0001185329\",\"158d000119d543\",\"158d00011854ab\",\"158d00010df43b\",\"158d000106c57c\",\"158d0001185779\",\"158d000113b1f2\",\"158d000111810a\",\"158d000108358c\",\"158d000106c3af\",\"158d0001062348\",\"158d000119
2017-01-04 10:40:43.569 Error: XiaomiGateway: error in handle_receive
----------
I have around 20 devices, mostly window sensors but also a temp sensor and a switch (clicker). I wonder if its seeing something that it doesn't recognize?
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 0:49
by corbin
dcliff1 wrote:
I have around 20 devices, mostly window sensors but also a temp sensor and a switch (clicker). I wonder if its seeing something that it doesn't recognize?
I set the receive buffer too small!, I've updated it to 1024 -
https://github.com/corbinmunce/domoticz ... iGateway.h
Update this line:
Code: Select all
enum { max_length = 512 };
to
enum { max_length = 1024 };
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 2:00
by dcliff1
Nice work mate! Its now reporting all the devices. Thanks heaps for that.. really appreciate the good work. Now to go play!
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 8:53
by corbin
dcliff1 wrote:
Nice work mate! Its now reporting all the devices. Thanks heaps for that.. really appreciate the good work. Now to go play!
That is a lot of devices, you should have some fun with that!. Are you getting any more? I think I read the limit is around 30 per gateway and would be good to know for sure.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 10:53
by dcliff1
corbin wrote:dcliff1 wrote:
Nice work mate! Its now reporting all the devices. Thanks heaps for that.. really appreciate the good work. Now to go play!
That is a lot of devices, you should have some fun with that!. Are you getting any more? I think I read the limit is around 30 per gateway and would be good to know for sure.
Yep, I'm getting another PIR and a camera.. I've set it up as my main security system and it works well with the app, but has some limitations that Domoticz appears to overcome. I'll report back once I have a few more devices and its all working.
Thanks again, i'm very impressed.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 13:34
by deennoo
@corbin
Finally got mine !
Pir + switch + temp are ok
Got a magic Cube too : nothing come on domoticz log.
Is there any trick to listen on udp port ? (without domoticz of course
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 20:42
by macieiks
Hello guys,
I read yesterday for the first time article about Xiaomi Mi Smart House Kit and today I would like to ask you few question before final buy order
1. How about acknowledgment of message and sensor's range, does it using repeater option like we can use in Z-wave protocol? I am asking because I am using Home Easy door sensors and sometimes "change" state is not being sent to RFlink or RFXtrx (tested in both houses, with good range).
2. How about sensor's status lag which was reporting to the Domoticz after 1 min (I read about this few pages before)?
3. Do you have any "trust" link to ebay / ali to get the "supported version with developer mode" ? On 5th page I found information I need to get atleast 2016 version v2.0 / Aquara to get it working.
4. Just for curiousity (I know developers here are making great great great job, asking this I do not want to make any pressure on them
) what is the current implementation stage of Xiaomi sensors, which ones are working from that kit, are there any additional?
Thanks guys and one more time big beer for developers
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 20:56
by ben53252642
macieiks wrote:Hello guys,
I read yesterday for the first time article about Xiaomi Mi Smart House Kit and today I would like to ask you few question before final buy order
1. How about acknowledgment of message and sensor's range, does it using repeater option like we can use in Z-wave protocol? I am asking because I am using Home Easy door sensors and sometimes "change" state is not being sent to RFlink or RFXtrx (tested in both houses, with good range).
2. How about sensor's status lag which was reporting to the Domoticz after 1 min (I read about this few pages before)?
3. Do you have any "trust" link to ebay / ali to get the "supported version with developer mode" ? On 5th page I found information I need to get atleast 2016 version v2.0 / Aquara to get it working.
4. Just for curiousity (I know developers here are making great great great job, asking this I do not want to make any pressure on them
) what is the current implementation stage of Xiaomi sensors, which ones are working from that kit, are there any additional?
Thanks guys and one more time big beer for developers
Read here:
https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
It uses Zigbee protocol, google to learn about it.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 21:02
by Derik
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 22:24
by deennoo
Left to get compatibel :
- Magic Cube : playing with this remote is fun !
- LED on the gateway
- Be able to lunch some sound who are stored on the gateway
Need to be tested :
- 230v wall switch
- batterie wall switch
Not domoticz dependante :
- change chinese radio to all internet radio
- change chinese voice for a english one (or french or german, or spanish or dutch)
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 22:33
by ben53252642
Is there any backup / restore functionality for the Xiaomi gateway, either cloud based (backs up settings and Zigbee) or manual?
Has anyone tested this?
Considering how many sensors I may invest in, backup / restore of some sort would be essential.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 22:52
by icibt
corbin wrote:dcliff1 wrote:
I have around 20 devices, mostly window sensors but also a temp sensor and a switch (clicker). I wonder if its seeing something that it doesn't recognize?
I set the receive buffer too small!, I've updated it to 1024 -
https://github.com/corbinmunce/domoticz ... iGateway.h
I have just built domoticz from your git fork (on Ubuntu 16.04) and I can see all of my devices, but when I click to turn on a power switch I get the error "Problem sending switch command"
From log:
Code: Select all
2017-01-04 13:24:48.515 User: Admin initiated a switch command (6/Xiaomi Smart Plug/Off)
2017-01-04 13:24:48.515 010F8D72
2017-01-04 13:24:48.515 Error: WebServer PO exception occurred : 'Invalid argument'
Besides that, I was wondering why is there no Password or Port setting for the Linux build (and everything works) but there is one on Windows Beta build (where I am unable to find a single device - Windows 10 x64).
Anyways.... very good job on adding this to Domoticz... kudos
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 23:22
by corbin
deennoo wrote:@corbin
Finally got mine !
Pir + switch + temp are ok
Got a magic Cube too : nothing come on domoticz log.
Is there any trick to listen on udp port ? (without domoticz of course
Cool, hope it works well in your setup!
Try this program to listen on udp -
https://packetsender.com/, maybe in combination with WireShark.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 23:31
by corbin
icibt wrote:
Besides that, I was wondering why is there no Password or Port setting for the Linux build (and everything works) but there is one on Windows Beta build (where I am unable to find a single device - Windows 10 x64).
Anyways.... very good job on adding this to Domoticz... kudos
Thanks
Password is mainly needed for controlling the smart plug, and is in the Linux version (they are the same web files) - you need to clear your browser cache to see the extra fields.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 23:33
by corbin
ben53252642 wrote:Is there any backup / restore functionality for the Xiaomi gateway, either cloud based (backs up settings and Zigbee) or manual?
Has anyone tested this?
Considering how many sensors I may invest in, backup / restore of some sort would be essential.
The app is linked to my Xiaomi Mi account, but I don't have another android device to test a backup/restore with.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Wednesday 04 January 2017 23:39
by corbin
ben53252642 wrote:macieiks wrote:Hello guys,
I read yesterday for the first time article about Xiaomi Mi Smart House Kit and today I would like to ask you few question before final buy order
Read here:
https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
It uses Zigbee protocol, google to learn about it.
To add to what is on the wiki -
The motion sensor will detect motion then go to sleep for 1 minute - there is no lag at all. This works very well for me and also helps with battery life.
Best to contact the gateway seller to confirm a v2.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 05 January 2017 0:30
by ben53252642
Just ordered:
1x Xiaomi Gateway V2
6x Motion Sensors
2x Smart Push Buttons
1x Door Sensor
Total $177.18 AUD ($129 USD)... WOW!
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 05 January 2017 0:35
by deennoo
Remeber one thing !
How does battery run?
Got an example that for a pir on a house of 4 personnes, place on a living room only live 1 mounth.
Second exemple a temp sensor run only 4 mounth on a place where temp/hum range got a lot of variation.
I already notice that temp sensor looks sending data only if value change.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 05 January 2017 0:39
by ben53252642
deennoo, yep I read about that. I've decided to buy a bunch of the sensors so I can do some testing and will report back.
Other places I've read the battery should last 2 years so we will soon find out.
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Posted: Thursday 05 January 2017 0:40
by deennoo
Main question is how many device a gateway can accepte ?
Got a big project for it.