0 Replies
      Latest reply on Aug 27, 2018 10:53 PM by KAPPLE
      KAPPLE Level 1 Level 1 (0 points)

        I am trying to add an HMAccessory via AddAccessory Method, I checked the HMAccessory object is allocated and can see its properties like name etc., but I always get following error:


        Error Domain=HMErrorDomain Code=2 "Object not found." UserInfo={NSLocalizedDescription=Object not found.}


        Here is a simple code:

            HMHome *currentHome = [[HomeManager sharedManager] home];
            [currentHome addAccessory:_accessoryToProvision completionHandler:^(NSError * _Nullable error) {
                NSLog(@"Error: %@", error.localizedDescription);


        Note: The accessory I am trying to add is not certified yet.