Hi, yes I enabled the local communication on the gateway. The firmware is the latest chinese one.
Nice find !
It is the good method.
What worked for me was on step 5 to click a couple of times on the refresh button on the right of the code, then validate on the bottom right button. I did it one or two times before it worked.
Which firmware version do you have on the gateway?
Mine is: 1.2.6_138.0141
And no matter what I do I can’t upgrade it.
So with current MQTT implementation how it works? Do the door sensors report only when switching open/close state?
Easy to set up? Thinking of getting a set so need opinion if it can be made working with HA currently as component for aqara is being written for HA
I found the my gateway is V3 (Name of the wifi on first configuration), this could explain why I can’t update to the version reported in this topic.
Searching around I found this interesting github: https://github.com/louisZL and this repository:
https://github.com/louisZL/lumi-gateway-local-api
That talk about the lumi gateway that from what I understand is the Xiaomi smart home gateway.
Finally there is this website:
https://translate.google.com/translate?hl=en&sl=auto&tl=en&u=https%3A%2F%2Flouiszl.gitbooks.io%2Faiot-open-c2c%2Fcontent%2Fresource_definition.html
That list all the “lumi.gateway.v3” device function and also function about other devices.
Hope that this could be useful to someone.
This is really exciting!
Xiaomi smart home is the only affordable sensor suite that i have been able to find, and i am just waiting to be able to integrate it into HASS.
Once that is done - All rooms will have motion sensors, door and window switches, and all light switches will be replaced with the wireless buttons!
i can’t wait!
Just got my xiaomi smart gateway updated to the new firmware after being stuck on 1.2. Strange though after updating to 1.3, 1.4 suddenly came up. I can now retrieve the local password. WIll try this integration with HA now
This morning I’ve done the update to the firmware “1.4.1_142.0141” now I have developer mode enabled and working.
dammit! you got me excited and i have just bought a heap… Gearbest has a sale on at the moment. i bought USD100 worth of gear…
Just a quick update everithing is working fine using this code:
But I found that the motion sensor need 1 minute in order to catch a motion again anyone else have experienced this behaviour?
This is annoying if I want to use the motion sensors in order to trigger a “light follower” feature.
Just upgraded. Code from Jon1012 works great! The only thing is that temp sensor sends updates once per hour if there is no significant changes.
Hello everybody,
I’m the “dev” under the “fooxy” name.
I update the code in github for the custom component:
https://github.com/fooxy/homeassistant-aqara
Currently, it is not so easy-to-use, you need to have sensors ids (SID) but it is intended to include a function to get them automatically.
I’m not a developer but I’ve been interested in several languages (swift, javascript, etc) so thank you for being understanding about any errors.
Until now (5 days), everything works with vizualisation in Grafana via Influxdb
Hello Fooxy.
Thank you for you efforts. Component work fine. I’ve already installed it. There is small issue with temp sensor naming. It appears as device name. I’ve changed code in same way as for humidity sensor. So it appears now as device_name_temperature.
Thanks Lapatoc,
It was temporarily for personal use because I wanted to keep the old recordings.
I merged the pull request in Github.
Fantastic work guys, just one thing I’ve run in to. A lot of wireless APs don’t forward multicast packets onto wifi clients. After enabling developer mode, it looked like the gateway wasn’t sending the UDP packets when I was using Wireshark on my laptop. When I connected the ethernet cable they appeared.
Hopefully this helps someone. Keep up the good work.
so are you saying that HASS needs to be on a hardwired network? can use port forwarding to ensure that the UDP packets are sent to the appropraite IP?
It is possible to use the door/windows détecter alone?
No - you need the hub.
Ok so i Will order the hub and windows next time when it’s on promotion.
There was à promotion last week-end for black friday
i just bought from gearbest for $30 AUD. cheapest price i could find at the time.(just looked USD25)