ios-homekit

How do I use “Get Contents of URL” in an iOS Home app automation?

独自空忆成欢 提交于 2020-12-15 05:15:51
问题 I want to use use my Apple TV 4K to make a daily call to a web URL; much like a cron Job if I had a home server. In theory, this should be so simple: Open iOS Home app Go to the Automation tab Create a new automation Choose A Time of Day Occurs Select Next Choose Advanced -> Convert To Shortcut Tap the ➕ icon Choose Web Choose Get Contents of URL from the Web Requests section Enter the URL as https://apple.com Tap the ▶️ icon to test the automation I see the error message “A server with the

How do I use “Get Contents of URL” in an iOS Home app automation?

限于喜欢 提交于 2020-12-15 05:15:33
问题 I want to use use my Apple TV 4K to make a daily call to a web URL; much like a cron Job if I had a home server. In theory, this should be so simple: Open iOS Home app Go to the Automation tab Create a new automation Choose A Time of Day Occurs Select Next Choose Advanced -> Convert To Shortcut Tap the ➕ icon Choose Web Choose Get Contents of URL from the Web Requests section Enter the URL as https://apple.com Tap the ▶️ icon to test the automation I see the error message “A server with the

How to Add and Set up accessory using HMAccessoryPayLoad

你说的曾经没有我的故事 提交于 2020-08-08 03:51:47
问题 I want to know how to use apple docs func addAndSetupAccessories(with payload: HMAccessorySetupPayload, completionHandler completion: @escaping ([HMAccessory]?, Error?) -> Void) I want to use this func because I need to pair HomeKit accessory without QR code or the HomeKit code. I want to pair the accessory through code. the documentation of HMAccessorySetupPayload argument for the above function, it says it accepts URL for init. I scanned QR-code for an accessory with QR code reader, it

How to add HomeKit accessory using HMAccessoryPayLoad?

不打扰是莪最后的温柔 提交于 2020-06-23 14:09:37
问题 Hello currently I'm working on HomeKit, I want achieve one feature using HomeKit. My requirement is without using QR code I want to add accessory. As every accessory has it's own URL like e.g. X-HM://XXXXXXXXX associated with QR code, i.e. HMAccessoryPayLoad . The very similar questions which are unanswered I can see How to Add and Set up accessory using HMAccessoryPayLoad Open HomeKits X-HM:// URL sheme So as per documentation I tried using below code to add accessory. I hope using this code

HMLocationEvent Sample

吃可爱长大的小学妹 提交于 2019-12-23 20:32:04
问题 I am implementing HMLocatinEvent in my HMHome. I am trying the below code but one thing I didn't get is I don't know how to execute functionality like incase if I left home have to switch off all the lights. I didn't find any method related to the actionset. Please correct me if I am wrong. Requirement: I want to switch off all the HMAccessories incase if I left home. Questions : To achieve the requirement Do I need to use HMLocationEvent and HMEventTrigger? or is there any alternate? Incase

Add Accessory to home always returns error(GenericError)

扶醉桌前 提交于 2019-12-08 12:46:44
问题 I am trying to add a accessory to Home(HMHome) and always error block is execute. I am getting GenericError which means An error occurred for which there is no more specific error code . I am not able to understand the reason of this error even documentation does not has the proper reason of it. And This is happening since last one day, earlier i was able to add the accessory by the same code. if (self.home != nil ){ self.home!.addAccessory(accessory, completionHandler: ({(error:NSError!) in