Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Join device to your local wifi #225

Open
stefandima opened this issue Nov 18, 2024 · 2 comments
Open

Join device to your local wifi #225

stefandima opened this issue Nov 18, 2024 · 2 comments

Comments

@stefandima
Copy link

I successfully pair Aqara FP2 device using this.
I had to connect my laptop to the WIFI of the device and I was able to pair.
Now, I want to send commands to the the device to connect to my local wifi network (sid and password), but I don't find any instructions.
If I disconnect from the device WIFI, after pairing, this WIFI is not present anymore, and I cannot connect again to him.
Does someone knows how to make my device, after pairing, to join my local wifi network ?
Thanks.

@Apollon77
Copy link
Owner

Apollon77 commented Nov 18, 2024

You need to add Wifi via Aqara app, then "unpair" their homekit again which usually keeps the wifi credentials and with this the device is still reachable on wifi. There are no HAP APIs that Iwould know to commission Wifi credentials

@stefandima
Copy link
Author

Thanks for your answer.
I was trying at beginning with Aqara Home application, When unpair from this application, the settings are lost.
Pairing with Home from iOS, and them unpair, the settings were keept (network and IP address at least).
I was able to pair with the device from the library, but, not fully.
The device has a led. When pairing with Home, the led is shut down.
When paring from the library, the led remains blue and blinking slowly. After a while the led switches to solid withe, and the device is not accessible anymore.
Searching for the solid withe led situation, looks like is indicating that the device is not connected to AIOT server.
I will prefer to keep my sensor without any external connection, but, also working.
I'm trying to find a way "to instruct" the device that is not needed to connect to aqara servers, but, maybe someone already investigated this and already has a solution.
I found some characteristics related with IOT:
{ "iid": 96, "type": "F49132D1-12DF-4119-87D3-A93E8D68531E", "primary": false, "hidden": true, "characteristics": [ { "iid": 101, "type": "00000023-0000-1000-8000-0026BB765291", "format": "string", "value": "AIOT", "perms": [ "pr", "hd" ], "ev": false, "enc": false, "description": "Name" }, { "iid": 97, "type": "25D889CB-7135-4A29-B5B4-C1FFD6D2DD5C", "format": "string", "value": "", "perms": [ "pr", "pw", "hd" ], "ev": false, "enc": false, "description": "Country Domain" }, { "iid": 98, "type": "C7EECAA7-91D9-40EB-AD0C-FFDDE3143CB9", "format": "string", "value": "lumi1.54ef445bb631", "perms": [ "pr", "hd" ], "ev": false, "enc": false, "description": "AIOT did" }, { "iid": 99, "type": "80FA747E-CB45-45A4-B7BE-AA7D9964859E", "format": "string", "perms": [ "pw", "hd" ], "description": "AIOT bindkey" }, { "iid": 100, "type": "C3B8A329-EF0C-4739-B773-E5B7AEA52C71", "format": "bool", "value": 0, "perms": [ "pr", "hd" ], "ev": false, "enc": false, "description": "AIOT bindstate" } ] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants