HomeKit
HomeKit copied to clipboard
Can't add accessory to home.
Hi,
I am getting below errors when I am trying to add the accessory. Any help is much appreciated.
Thanks, Swetha.
do you have provisionning profiles with homekit checked?
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.
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.
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.
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.
Also from when can I download "homekit accessory controller"?