[Experimental] Add HomeKit support based on HomeSpan for the ONE. - #392
Draft
seansfkelley wants to merge 1 commit into
Draft
[Experimental] Add HomeKit support based on HomeSpan for the ONE.#392seansfkelley wants to merge 1 commit into
seansfkelley wants to merge 1 commit into
Conversation
seansfkelley
commented
Jul 27, 2026
|
|
||
| // HomeKit pairing (SRP) is stack-heavy; enlarge the Arduino loop-task stack so | ||
| // homeSpan.poll() has room to complete pairing without a stack overflow. | ||
| SET_LOOP_TASK_STACK_SIZE(16 * 1024); |
Author
There was a problem hiding this comment.
I'm not sure if this is actually necessary. Would check it again before committing to it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary and Features
This PR adds support for reporting to HomeKit using HomeSpan for the ONE. (It is the only one I have and so the only one I tested.)
When set up, the ONE reports all the readings it has, with some caveats (see below). It appears in HomeKit as little pills, since it's a read-only sensor and not an interactive thing.
To try it out, after flashing this firmware, pair with the code 466-37-726 (HomeSpan's default value).
Technical Details and Caveats
This PR has significant shortcomings, however, so it needs input from other HomeKit users (i.e. what they want) and AirGradient (i.e. what is acceptable) if it is to be incorporated upstream. That said, I'm opening this PR for discoverability for other potential HomeKit tinkerers.
The major caveats are:
And these aren't really caveats so much as things to be aware of/corners I cut temporarily: