Comments (4)
Hi, sorry it's a known problem outside of home assistant. Pairing works but the encryption keys aren't saved.
I'd love to make the cli fully functional again but short of time.
Iirc it's a result of the refactoring to add ble and thread support. That added a controller for each protocol, then a meta controller that started all 3 backends. Pairing is I think creating the record in IpController but the "save pairings" code is saving data from the meta controller. (Before there was just one controller object, so it worked fine).
There are a bunch of refactors planned, one of which would have fixed this by replacing how saving and loading pairings work. I wanted to add a PairingStorage abstraction so in HA we could read the keys directly out of HAs config abstraction, and in the CLI we just read them off disk.
Right now HA ignores the aiohomekit saving/loading. When it gets a pairing object from finish_pairing it saves the pairing record itself manually. Then it loads it back into a controller itself as well.
There is probably a temporary fix for the cli controller to have the save function iterate through all the transport controllers maybe. I think it just persists self.pairings. But needs to gather self.pairings from its children?
from aiohomekit.
Love the fast and interesting answer! Sounds like I'll just have to be patient and hope that you can use the client on it's own in the future. It would be a great tool for non HA-setups, I've been digging around the internet for days for something that can do what this does and was so happy when I found it. Started with the HomeKit Python which I think you were involved with as well but no luck with pairing there either. Imagine how happy I was when the log said "pairing for "device" was established". :D
Your last sentence: Don't know what you are talking about but it sounds great and super smart! :) I would use it and I would do a Youtube video about it cause people need to here about this awesome software!
But anyways, it clearly stated proceed with caution and that your focus is Home Assistant. Great work and thank you for taking the time to answer!
Oh, just realized one thing. Does this mean I could use an older version of your software where this still worked?
from aiohomekit.
In theory, versions < 2 should work as the split to enable multiple backend transports hadn't happened. There might be other problems of course.
from aiohomekit.
Okay worth a try for now. I will check it out when I have time. Thank you!
from aiohomekit.
Related Issues (20)
- Don't fetch programmable switch events on reconnect without getting a GATT notify for them HOT 5
- There is a race where we can be waiting for the device to be detected at startup and we get it more than once because we don't clear it before its detected again
- Fetching friendly_name does a linear search
- Using aiohomekit standalone: transport not supported HOT 2
- Eve Degree: Various BLE errors HOT 1
- asyncio.exceptions.TimeoutError during zeroconf search needs to be re-raised as AccessoryNotFoundError
- `first` to get accessory_info at startup is unexpectedly expensive
- Connection refused HOT 2
- BLE Pairing can fail due to race
- BLE callbacks can error if a device is unpairing because the cache has been deleted
- Missing Service cache clear is missing from pairing process
- Many callback to Called async_set_available_state with True at startup HOT 1
- Video & Intercom Doorbell in HA HOT 6
- BLE Events might still be read when processing disconnected notifications
- Out of order pairing steps when using HomeSpan (async race condition?) HOT 15
- Disconnect during operation can result in an empty event
- Implement happy eye balls with aiohappyeyeballs HOT 1
- Consider lowering the Happy Eyeballs delay to 0.1 from 0.25
- Add support for link local ipv6 addresses now that we have Happy Eyeballs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiohomekit.