Sounds like you're trying to re-invent the wheel by creating your own app...
Just configure the iPad to kiosk mode and only use the 'Home' app.
- Ensure you're signed into your iPad using the same iCloud account as the rest of your iOS devices.
- Go to 'Settings', tap on 'Home' and select 'Use this iPad as a Home Hub'.
- Open the Home app and tap in the upper-left corner. Then look under Home Hubs to see if your home hub is connected. If you have multiple home hubs set up, the primary home hub will show as connected. The other home hubs will show Standby as their status and will take over remote access if the main home hub is disconnected.
Further configuration questions might be better suited for Apple's public forums https://support.apple.com/
Thanks for the reply. There are some differents. I will only expose a subset of Home app and I will need to integrate with other services, such as payment. For example, in my app I will say, pay me x amount of dollars, I will activate feature A for you. Feature A is composed of a group of controlled devices
Not sure a 'hub' and subset are the same things...
Via your app, see:
Introduction to HomeKit
This document helps you write a HomeKit app. HomeKit is a framework for communicating with and controlling connected home automation accessories that support Apple's HomeKit Accessory Protocol. HomeKit apps enable users to discover compatible accessories and configure them. Users can also create actions to control accessories (such as a thermostat or light), group them together, and trigger them by using Siri. HomeKit objects are stored in a database residing on the user’s iOS device, which is synchronized over iCloud to other iOS devices. HomeKit supports remote access to accessories, multiple user devices, and multiple users. HomeKit also handles security and privacy for you.
Which links to a sample app:
To include 'In App Purchases' see:
...no promise you'll be allowed to paywall HK features, especailly when the devices aren't yours - be sure to check the ASRGs:
Ok! It looks like I mis-understood the concept here. So there is really no home-hub in the system then (feels strange ). Given how HomeKit works, the control part that I need to do seems really simple now. I guess on the other hand, it seems very difficult to do time based rules then.....