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

Accessory is out of compliance #3

Open
counterbeing opened this issue Mar 24, 2023 · 8 comments
Open

Accessory is out of compliance #3

counterbeing opened this issue Mar 24, 2023 · 8 comments

Comments

@counterbeing
Copy link

Hey there! Thanks for the example code. I was trying to get this exact code running.

It builds, and uploads to the board just fine. I configure wifi, and a pairing code. The iPhone thinks for a moment, and then this error appears:

image

Unable to add Accessory
Accessory is out of compliance

Given you've run this code yourself just fine, I'm wondering if Apple made some kind of update that breaks the code? Also worth noting I'm running the current latest HomeSpan (1.7.1 as of writing this).

Thanks for the great library!

@HomeSpan
Copy link
Owner

I haven't run this in a while - very possible Apple made an update in recent versions of HomeKit that broke something in the sketch. I'll revisit and see what I can find.

@counterbeing
Copy link
Author

Thanks so much! While I have your attention, I'm still trying to wrap my head around the underlying HomeKit architecture works.
I'm wondering if it's possible to have something beyond the hue selector. I saw in here you did something special for the eve controller. But is there no way to surface an additional tile for an additional characteristic that would allow you to control animations in the apple home app itself?

I was looking here, and it kind of looks like that's all you can do: https://developer.apple.com/documentation/homekit/hmcharacteristic/characteristic_types#3080266

@HomeSpan
Copy link
Owner

I just tried the code, compiled with 1.7.1, and it pairs and works fine - did not get any errors about the device being out of compliance. Are you running a beta version of iOS, or just production? Do you get the same error if you run one of the Tutorial Example sketches?

@HomeSpan
Copy link
Owner

Regarding your question about surfacing an additional tile to control animations, unfortunately Apple does not have anything like that for the Lightbulb Service. However, others have created some clever combinations of other tiles: instead of using the Lightbulb Service, they model the light as a Television Service and use the Input Source Service as a way of selecting different effects (instead of different TV Inputs). It's a little clunky but seems to work.

@counterbeing
Copy link
Author

counterbeing commented Mar 25, 2023 via email

@dolfelt
Copy link

dolfelt commented Nov 26, 2023

@HomeSpan I am also having the compliance error when compiling and adding with 1.8. Other sketches and tutorials have worked and paired just fine. Perhaps it's related to the Custom Characteristic. I might try with the TV selector, but would love to set the color as well as pick an effect.

@HomeSpan
Copy link
Owner

Which sketch is causing the compliance error?

@dolfelt
Copy link

dolfelt commented Nov 26, 2023

@HomeSpan It looks like the issue was with a code formatter that was adding spaces into the UUID. Once I turned that off I was able to add the accessory!

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

3 participants