Skip to content

[DEVELOPMENT ]HomeKit framework capabilities for time-based automation [IN SWIFT]

[DEVELOPMENT ]HomeKit framework capabilities for time-based automation [IN SWIFT]

I’m currently trying to use the HomeKit framework to create time-based automations. I read the documentation and am still confused about how much I can do there. What I want to do is create time-based automations that change some lights every 30 (or better 15) minutes. I don’t want the user to have the app open or running all the time, so my idea was to create HomeKit automations for that. But this has the downside that there will be 48 automations in the “Automation” tap of the Apple Home application. Also, the user can change their settings and my application would only notice the next time the user opens it. Has anyone else created time-based HomeKit triggers and can you point me in one direction? My solution would be to use the APIs of those light providers, such as Hue or Lifx, but then I would have to create a connector for each brand and I would really like to use Homekit. Disclaimer: I am very new to Swift & App Development