HomeKit icon indicating copy to clipboard operation
HomeKit copied to clipboard

Can't add accessory to home.

Open incipio-swetha opened this issue 10 years ago • 6 comments

Hi,

I am getting below errors when I am trying to add the accessory. Any help is much appreciated.

img_0272 img_0273 img_0274

Thanks, Swetha.

incipio-swetha avatar Sep 23 '14 10:09 incipio-swetha

do you have provisionning profiles with homekit checked?

marcelfalliere avatar Sep 23 '14 11:09 marcelfalliere

Yes, its checked in the provisioning profile. I am getting a error while calling the below code:

homeManager.primaryHome.addAccessory(accessories[indexPath.row] as HMaccessory, completionHandler: ({(error:NSError!) in

The above code is giving the below error when I debug: fatal error: unexpectedly found nil while unwrapping an Optional value

Thanks, Swetha.

incipio-swetha avatar Sep 23 '14 11:09 incipio-swetha

I enabled the home kit in provisioning profile, but I am still getting the below error: error: Error Domain=HMErrorDomain Code=2 "The operation couldn’t be completed. (HMErrorDomain error 2.)".

Any help is appreciated.

screen shot 2014-09-23 at 5 46 33 pm

incipio-swetha avatar Sep 23 '14 12:09 incipio-swetha

Is it a real accessory or ont from the simulator ?

If it's a real one, maybe your accessory as some problems. Try downloading the homekit accessory controller to make sure your accessory works with homekit.

marcelfalliere avatar Sep 23 '14 12:09 marcelfalliere

Thank u, its a real accessory. The accessory which I created using "Homekit accessory simulator" is working fine. The real accessory is not working.

Thanks for your update, can you please let em know if a accessory needs a certain characteristic to be identified.

incipio-swetha avatar Sep 23 '14 12:09 incipio-swetha

Also from when can I download "homekit accessory controller"?

incipio-swetha avatar Sep 23 '14 12:09 incipio-swetha