I use an Apple TV (gen 4) as my only source when watching TV. In the TV room I also have a heat pump that is normally running at full fan speed, in order to get the best possible distribution of heat.
However, when I’m watching TV I turn down the fan speed, in order to lower the noise.
So is there a way that Homey can detect when the Apple TV is turned on or off? Homey already talks to the heat pump, so it’s easy to create a flow that controls the fan speed once it knows the status of the Apple TV.
Can you run shortcuts on Apple TV? If so, you can see if there’s a shortcut action available that matches what you want (either “turn off” or “stop watching” or something similar) and send a webhook request to Homey when that happens.
Net Scan seems like a possibility. Tried with IP, but that didn’t work. The Apple TV doesn’t seem to go offline even when turned off.
At least Net Scan doesn’t detect that it’s turned off, and it also responds to ping.
So I’ll have to see if there’s a port that I can use
New to Homey and has exactly the same question as the thread title but I also have some other options that I can explore.
We use Apple TV with sound out to Sonos speakers (over Air Play 2) and picture out to a projector, projecting on a motorized screen. We have an old Logitech Harmony 555 to lower the screen, and turn on the projector with one button.
I would really like to detect when the apple tv, or projector is turned on in order to trigger other Sonos speakers to be paused and a number of lights to be turned off. I don’t care how the Homey learns that I am about to watch something on the Apple TV but needs some advice on the easiest route. I tried to add the IR functionality for Apple TV in Home but no success, I then tried to add the Logitech Harmony 555 to Homey but cannot seem to find this remote.
Haven’t looked for the Sanyo PLV Z800 to be added yet, maybe this is an opportunity.
So in short, if Homey can understand if either:
Apple TV is awake
The projector is on
The Logitech Harmony 555 sends the startup command for the projector screen and the projector
I can use this as a starting point to set other actions in motion.
I ended up using a power plug on the TV. Since the TV uses less that one watt when turned off, and 70-100 watts when turned on, it is easy to detect if it is turned on or off.
Just make sure that you use a power plug that can measure the power consumption, otherwise it is no use
Good to know this works. I had expected Homey to be able to pickup the state of either the Apple TV, the projector or the remote but maybe this is a simpler and better solution.
Sometimes it is better to do what works than fighting to do what you think should work…
I have no answer to your question and can only second what you are saying, it seems odd that Homey cannot effectively pick up the state of an Apple TV, seeing that this is a well connected device which state is an important starting point for many automation ideas.
As I did not come up with any better solutions though I did what was suggested above and got a plug, and first put it between the socket and the Apple TV but this didi not work as the Apple TV even when on only draws minimal power, between 1 and 10 W according to my plug and even putting an action threshold at 5W did not work as the power consumption fluctuates back to a very low value after a short while. I then put the new plug between the socket and my projector, as I turn on the projector with my “smart” old logitech control in a combined sweep together with my motorized screen and the Apple TV. This works fine and I can now create new flows based on the Apple TV being on (while in fact it is based on the projector being on, but since this coincides nicely with what I want it works).
Just wanted to share my experience, so that if someone else can get inspired, that’s great!
I don’t have an Apple TV. But I assume you also have an iPhone?
Is this not possible with an iPhone/iPad and Homekit? Is there no automation possible that when Apple TV is on then send Webhook to Homey. This is possible with other homekit accessoires, but I don’t know if homekit gets notified when AppleTV is turned on?