How do I enable it?
Open Settings → Home Assistant in OneTV on your Apple TV (or iPhone/iPad) and toggle "Expose to Home Assistant". The Bonjour advertisement starts immediately. In Home Assistant, go to Settings → Devices & Services → Add Integration, search for "OneTV Connect", click your device.
What automations can I build?
Anything that reads state or sends commands. A few real examples: "When OneTV plays a sport channel, dim the living-room lights to 30 %." "At 8:00 pm on weekdays, switch OneTV to the news channel." "If OneTV is playing and the doorbell rings, pause it." "When the iPhone Live Activity reports a goal, flash the kitchen light."
Will it slow down the Apple TV?
No. The REST server pre-encodes JSON caches when state changes and serves them straight from memory. We measured a 0 ms hit on the KSPlayer main thread even with Home Assistant polling every 5 seconds.
Does it work with HomeKit too?
Not directly — HomeKit's media-player profile is restrictive. But you can bridge HomeKit through Home Assistant (or any other automation hub that speaks REST/SSE) and reach the same outcome.
I don't use Home Assistant. Is the API still useful?
Yes. Any device on your network that can speak HTTP can talk to OneTV — Shortcuts on iOS, Node-RED, openHAB, Athom Homey, a Raspberry Pi running a Python script, etc. The contract is plain JSON + SSE.