Accessing HomeKit on Apple Watch

Hi


Does anyone been able to use HomeKit to access real devices on Apple Watch (not simulators)? I have a simple test app that access Elgato Eve Room. I can query values on the iPhone but when using the same code on the watch I can't access any data because primaryHome is nil. An excerpt of my code is the following: I try to update the UI querying HomeKit in the homeManagerDidUpdateHomes callback, but this method is never called.


class InterfaceController: WKInterfaceController, HMHomeManagerDelegate {
    let homeManager = HMHomeManager()
  
    override func awakeWithContext(context: AnyObject?) {
        super.awakeWithContext(context)
      
        homeManager.delegate = self
    }
  
    func homeManagerDidUpdateHomes(manager: HMHomeManager) {
        updateUI()
    }

   //...
}


Thanks

MB

have you ever solved this problem?

i'm having the same problem

I'm still looking for an answer. I opened a ticket with Apple but I haven't received a response yet.

MB

Did you ever get a response? I'm still finding the same behaoivr, 5 years later.

Accessing HomeKit on Apple Watch
 
 
Q