-
Notifications
You must be signed in to change notification settings - Fork 82
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
Unable to add accessory, EVE stuck saying 'Adding Accessory' #21
Comments
It looks like you need to implement the HomekitAuthInfo.hasUser method. I need to update the sample - it's required as of iOS9. See http://beowulfe.github.io/HAP-Java/apidocs/com/beowulfe/hap/HomekitAuthInfo.html#hasUser-- |
Thanks for the response. In my own Auth file I do have a getUser method which uses a List of users persisted in a JSON file, and that doesn't seem to work either. `public class MockAuthInfo implements HomekitAuthInfo {
}` |
Issues like this are usually attributable to something wrong in the mdns On Sunday, September 11, 2016, shepparddigital notifications@github.com
|
That all looks perfect. Must be something in the http response instead. Try On Monday, September 12, 2016, shepparddigital notifications@github.com
|
Sorry, I seem to be having issues changing the log level. I've added -Dorg.slf4j.simpleLogger.defaultLogLevel=TRACE to the VM arguments but I don't see any additional information? |
I figured out how to change the log level to trace, I'm attaching the trace as a txt file as it's a little too long to paste in here I think. |
Is there anything else I can provide to help diagnose this issue? |
I had similar issue on my iPhone with iOS 10. |
Is there any new on this issue? |
Sample project is not working by me. It hangs by pairing. Can you prepare working sample or post link to working sample |
I have the exact same issue with the pairing (iOS 10) |
I have solved problem with sample. My computer has multiple network interfaces and sample app get wrong ip address. Network address in ip address of your computer |
close as solution found according to the last comment |
I'm trying to setup a standalone accessory using the default MockSwitch accessory and the default MockAuthInfo class.
I open EVE on my iPhone, I'm able to see the accessory, select it, enter the access and then EVE gets stuck showing 'Adding Device'. It's as if the HAP server isn't letting EVE know that the process is complete.
Here's the console output from trying to add the accessory;
20:06:47.796 [defaultEventExecutorGroup-4-1] INFO com.beowulfe.hap.impl.http.impl.AccessoryHandler - New homekit connection from /192.168.0.12:49431 20:06:47.799 [nioEventLoopGroup-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacity.default: 262144 20:06:47.813 [defaultEventExecutorGroup-4-1] INFO com.beowulfe.hap.impl.pairing.PairingManager - Starting pair for Test Lightbulb 2 20:06:47.945 [defaultEventExecutorGroup-4-1] INFO com.beowulfe.hap.impl.http.HomekitClientConnection - 200 /pair-setup 20:06:47.949 [defaultEventExecutorGroup-4-1] DEBUG io.netty.util.internal.Cleaner0 - java.nio.ByteBuffer.cleaner(): available 20:06:53.227 [defaultEventExecutorGroup-4-1] DEBUG com.beowulfe.hap.impl.pairing.PairingManager - Entering second stage of pair for Test Lightbulb 2 20:06:53.326 [defaultEventExecutorGroup-4-1] INFO com.beowulfe.hap.impl.http.HomekitClientConnection - 200 /pair-setup 20:06:53.432 [defaultEventExecutorGroup-4-1] DEBUG com.beowulfe.hap.impl.pairing.PairingManager - Entering third stage of pair for Test Lightbulb 2 Added pairing for 6:a8:6c:d7:ca:ca891C4817-03C3-4F7B-9531-417AB50C92D2 20:06:53.552 [defaultEventExecutorGroup-4-1] INFO com.beowulfe.hap.impl.jmdns.JmdnsHomekitAdvertiser - Re-creating service due to change in discoverability to false 20:06:55.559 [defaultEventExecutorGroup-4-1] INFO com.beowulfe.hap.impl.jmdns.JmdnsHomekitAdvertiser - Registering _hap._tcp.local. on port 9124 20:06:58.151 [defaultEventExecutorGroup-4-1] INFO com.beowulfe.hap.impl.http.HomekitClientConnection - 200 /pair-setup 20:06:58.370 [defaultEventExecutorGroup-4-1] INFO com.beowulfe.hap.impl.http.impl.AccessoryHandler - Terminated homekit connection from /192.168.0.12:49431 20:06:58.380 [nioEventLoopGroup-2-1] INFO io.netty.handler.logging.LoggingHandler - [id: 0x1164b103, /0:0:0:0:0:0:0:0:9124] RECEIVED: [id: 0x4d11f81b, /192.168.0.12:49432 => /192.168.0.14:9124] 20:06:58.381 [defaultEventExecutorGroup-4-2] INFO com.beowulfe.hap.impl.http.impl.AccessoryHandler - New homekit connection from /192.168.0.12:49432 20:06:58.384 [defaultEventExecutorGroup-4-2] DEBUG com.beowulfe.hap.impl.pairing.PairVerificationManager - Starting pair verification for Test Lightbulb 2 20:06:58.391 [defaultEventExecutorGroup-4-2] INFO com.beowulfe.hap.impl.http.HomekitClientConnection - 200 /pair-verify 20:06:58.453 [defaultEventExecutorGroup-4-2] DEBUG com.beowulfe.hap.impl.pairing.PairVerificationManager - Completed pair verification for Test Lightbulb 2 20:06:58.454 [defaultEventExecutorGroup-4-2] INFO com.beowulfe.hap.impl.http.HomekitClientConnection - 200 /pair-verify 20:06:58.458 [defaultEventExecutorGroup-4-2] DEBUG io.netty.util.internal.JavassistTypeParameterMatcherGenerator - Generated: io.netty.util.internal.__matchers__.io.netty.buffer.ByteBufMatcher 20:06:58.492 [defaultEventExecutorGroup-4-2] INFO com.beowulfe.hap.impl.http.HomekitClientConnection - 200 /accessories 20:06:58.632 [defaultEventExecutorGroup-4-2] INFO com.beowulfe.hap.impl.connections.SubscriptionManager - Added subscription to class com.beowulfe.hap.impl.characteristics.common.PowerStateCharacteristic for 1998817436 20:06:58.635 [defaultEventExecutorGroup-4-2] INFO com.beowulfe.hap.impl.http.HomekitClientConnection - 204 /characteristics 20:09:37.209 [defaultEventExecutorGroup-4-2] INFO com.beowulfe.hap.impl.connections.SubscriptionManager - Removed subscription to class com.beowulfe.hap.impl.characteristics.common.PowerStateCharacteristic for 1998817436 20:09:37.209 [defaultEventExecutorGroup-4-2] INFO com.beowulfe.hap.impl.http.HomekitClientConnection - 204 /characteristics
I've tried creating another Accessory on the server and exactly the same issue happens with this too.
I have had the same issue when adding accessories to a bridge. The bridge adds to my iPhone fine, but 9 times out of ten the individual accessories don't show on my phone.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: