I've looked all over and found several comments about how easy this is. I'm embarassed to say it but apparently I need a "dummies" guide because it's not at all obvious to me how to get started.
I've developed an iOS app that controls some HomeKit devices automatically. Once the user has entered their preferences, there is no ongoing need for interaction with the app (until the user changes their mind). There are limitations of that approach in iOS because:
1) An iPhone app cannot control HomeKit devices while the app is in the background, and
2) A hub such as AppleTV or iPad is required to enable remote control when the user is outside his home network.
Can an AppleTV app control Homekit devices from the background? If so, then extending my app to run on an appleTV hub makes good sense.
Here's what I'd love to do: I want my HomeKit controller app to run on an AppleTV hub so that it can operate autonomously, but have the iPhone app be the user's primary interface to the app on the hub. So preferences and settings changed in the iPhone app get mirrored to the hub app, which actually does the control. I want to use the phone interface I've already spent so much time developing. There's no reason for the AppleTV version to have much of an interface at all, except to turn it on/off, and perhaps to log into the Cloud to enable the transfer of preferences.
Does this strategy make sense? Are there examples somewhere that I could follow to get started on my first AppleTV app?
[edit] I should add that I've added AppleTV as a target in my iOS project. Without making any other changes, my app builds and installs to the AppleTV in Simulator. The debugger attaches. But there's no other indication that it's running. Nothing gets printed to the console and nothing appears on the screen.