niou-ns / homebridge-aqara-hub-lux Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hello,
I don't use the Mi Home app so my Aqara Hub is not listed there and if I add the hub to mi home I need to reset the hub and I don't want to do that because I have 23 devices connected to it.
How do I get the token from the Aqara app?
thanks.
I've got the tokens from the sensors, but i got this error:
[10/20/2020, 23:52:23] [movimento cozinha] Failed to discover Aqara Gateway at 192.168.x.x
[10/20/2020, 23:52:23] [movimento cozinha] Will retry after 30 seconds
The IP on the config is the ip of the Aqara hub correct? And the hub must have the name "Aqara Hub"? The "name" is the name of the acessory or i can put whatever i want?
Hi there,
Thanks for the plugin, but I cannot get it to work! I've got a chinese version of aqara hub.
I've extracted the token using Charles web proxy... however the plugin says cannot discover aqara hub at ip address, can u please help?
Regards
Teymur
Hi
I managed to use your plugin to expose this sensor to my Home App home. It is working great!
However, I don't know how to use the sensor in an automation as the sensor is always on. Could you provide some examples? I would like to use this sensor together with the motion sensor, e.g. if lux is <10 and movement is detected, switch on aqara hub light.
Hi,
Would it be possible to expose also Aqara motion sensor’s light sensor To HomeKit? It would be very useful to use it instead of timings.
Thanks for the plugin !
Any chance to add the new Aqara M2 hub ?
The device type is: lumi.gateway.iragl7
Off topic, but is it possible to control the sound (on/off, type) from HomeKit?
Right now you can’t trigger sound from non Aqara sensors normally.
Hi there,
I don't why, maybe my AqaraHub (chinese version) is special, but I'm not able to use the token that I retrieved from the device. It looks like it is being changed once the device is paired with the app. Here are the steps I follow:
I reset my device:
When the device is in AccessPoint mode I connect to it:
With packet sender I send the HEX "21310020ffffffffffffffffffffffffffffffffffffffffffffffffffffffff" to the IP of the device (192.168.5.1) port 54321
I listen the traffic with Wireshark and the device replies:
0000 f8 16 54 61 7f 01 50 ec 50 ed 88 8b 08 00 45 00 ..Ta..P.P.....E. 0010 00 3c d5 da 40 00 40 11 d9 20 c0 a8 05 01 c0 a8 .<..@.@.. ...... 0020 05 64 d4 31 f4 01 00 28 b3 ca 21 31 00 20 00 00 .d.1...(..!1. .. 0030 00 00 10 71 ef fc 00 00 03 8f 50 61 77 45 76 41 ...q......PawEvA 0040 58 31 35 6c 73 72 32 32 61 71 X15lsr22aq
I take last 16 bytes PawEvAX15lsr22aq
and convert them with https://www.rapidtables.com/convert/number/ascii-to-hex.html this tool and I get 50 61 77 45 76 41 58 31 35 6c 73 72 32 32 61 71
I remove the spaces and then I paste this 5061774576415831356c737232326171
in the plugin settings, save config and restart homebridge
Pair the device with the aqara app, add motion sensor so I get the light sensor as well
Homebridge log says
Failed to discover aqara gateway at IP address, will try again in 30 seconds.
Can you please point out anything that I do wrong. THanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.