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
the 8th device is always "Not Supported" #97
Comments
me too. why ? |
I have a very similar implementation and can't reproduce your issue. The only main difference is that I use an explicit bridge accessory. Maybe that will help you. |
@timoschilling thanks, this is my code,Your method is not useful to me, I still have this problem. |
I think the problem is in iOS if you use a normal accessory (a switch for example) as a bright. |
Note: Running @gerardbos's example and adding the accessory to the Home app in the iOS simulator raises an exception in the
|
The official HAP documentation says
Your bridge doesn't come even close to 100 accessories. I think this is an iOS HomeKit bug. |
I've filed rdar://35770975. |
Maybe I found the problem. I have tried to add a bridge accessory to hc, during the test of the bridge I runed in the same issue. After some debugging I found this: This bridge works: package accessory
type Bridge struct {
*Accessory
}
func NewBridge(info Info, identifier string) *Bridge {
acc := Bridge{}
acc.Accessory = New(info, TypeBridge)
return &acc
} This one has the "8th device Not Supported" problem: package accessory
import (
"github.com/brutella/hc/service"
)
type Bridge struct {
*Accessory
BridgingState *service.BridgingState
}
// NewBridge returns a bridge which implements model.Bridge.
func NewBridge(info Info, identifier string) *Bridge {
acc := Bridge{}
acc.Accessory = New(info, TypeBridge)
acc.BridgingState = service.NewBridgingState()
acc.BridgingState.Category.SetValue(1)
acc.BridgingState.AccessoryIdentifier.SetValue(identifier)
acc.BridgingState.Reachable.SetValue(true)
acc.BridgingState.LinkQuality.SetValue(100)
acc.AddService(acc.BridgingState.Service)
return &acc
} |
I have a similar problem but mine is the 6th or 7th device (not sure how the numbering works). Mine shows as "No Response" in the official Home app and as Blocked in Brutella's Home app. My code is older though (based on edc1591/gohome) and perhaps needs refactoring but it works for the 31 other X10 devices. |
I'm now working around it by using @timoschilling 's solution (creating an explicit bridge for these devices). I haven't seen the problem since. |
I fix this problem , @timoschilling Thank You |
I hope #101 will be merged to have a build in solution to fix this. |
This should be fixed with the merge of #101 |
Hi Matthias,
I'm using your library for a home project, and I see that if I add more than 7 devices, the 8th device is always broken (It gives an error while adding the accessory to Home) and in Home, it shows up as "Not Supported" with a Home Icon.
The code to reproduce it is shown in this gist: https://gist.github.com/gerardbos/df971f24eef9a8a41b5fccc86d87d7bf
The text was updated successfully, but these errors were encountered: