Apple TV Integration - tvOS 15 Beta

Yeah, but more in the line of how the “turn off” shortcut works (as that uses Companion) which is much more reliable as menu navigation isn’t needed.

Interesting… when use that, my TV turns off, and my ATV goes to sleep (light goes out). Then about 30s, it all comes back on.

It might be one of those catch-22 situations where “turn off” turns off the device, which makes Home Assistant drop the connection and trigger a re-connect that turns on the device again. If you clear the log, turn off the device and look for a “connection lost” message from the Apple TV integration in the log, then you can most certainly conclude this is the case. My suggestion is that you try turning off auto-sleep on your device and see if it works better.

Can I ask what you’re referring to by Companion? I know of that as a stream deck component but would like to know what it is/how to utilize this function here.

It refers to one of the Apple TV protocols.

Hi,. I have the latest Apple TV 4K with the latest apple update. (As of this date)

I also have the latest HA installation version and the latest Apple TV integration App.

I can’t seem to be able to pair my Apple TV to HA. . I can enter the PIN ok but it then aborts. Have tried maybe 15 times. I also remove the “0” when it’s needed .

Has anyone else come across this ?

1 Like

Of the beta (which this thread is about) or the bundled integration?

Sorry I should of mentioned , I’m referring to the bundled integration…

@postlund just wanted to say thank you big time for all the updates. i completely misunderstood how to get this latest ATV integration installed on Home Assistant (totally my fault). once i figured out what i was missing - the integration worked on the first try…

now, i’m off to learn how to further integrate this with some automation. my first use case is to figure out how to have an ATV app turn on/off at specific times on weekdays on my home office TV.

Important thing is that it works in the end :wink: Good luck exploring useful things to do with it!

Feel like I have everything setup correctly for the pyatv HACS beta integration, but my forked-daapd instance isn’t recognized and does not attempt to pair. Any clue what may be the issue?

1 Like

We have made the decision to filter and only auto-discover devices that we know works in core. A lot of AirPlay 2 devices does not work, which is an annoyance for a lot of people. I will not maintain this filter in the beta component however, in case people want to try out their devices. I intend to try to fix AirPlay 2 support in the future to extend this in the future, but my time is limited right now. I will also try to compile a list of verified devices.

Although the device is not auto-discovered, this limitation is not enforced when you manually add a device (with IP for instance). There is however a bit open regarding owntone/forked-daapd, so you might have been hit by that. The reason it fails is because the pairing process announces services with docker internal addresses that owntone can’t access, so the pairing fails. I hope to fix that in the future too, hopefully before the next release (but no promises).

Hi,

First of all I am fairly new to Home Assistant, so i might be asking a perhaps some basic question. I got the integration with AppleTV to work, which works great. But now I would like to create an automation based of the app that is playing on the apple tv, be it Netflix, Disney+ etc and setting the lights a specific scene (this last part works already as I a standard setting when setting up the automation for the AppleTV)

But the only thing I can do anything with is the playback state (idle, playing, paused etc). Is there a way to get the correct information from the integration in such a way i could use them in a automation.

Thanks in advance!

1 Like

The trigger must be a state change, you can use conditions to determine what app is active, like these two examples:


You can use developer tools to look for the names and id’s of each app :wink:

1 Like

Thanks! That helps alot :smiley:

Firstly thanks for making this app. It’s much appreciated. I realise it’s all voluntary.

I have the latest Apple TV 4K 32gb. I made a post over a week ago mentioning that I could not get the HA Apple TV App to pair with my Apple TV 4K… . Unfortunately i didn’t get any response from anyone…

On reading your recent post (quoted above) are you basically saying that the Apple TV App is not compatible with current Apple TV’s. ?

I spent about an hour trying to get my Apple TV to pair …

The bundled integration does not work, no. You have to run the beta integration, switch to beta channel (in the supervisor) or wait for the release in February.

1 Like

Cool … Thanks …

Could I possibly make one suggestion. In the opening dialog of the bundled integration, could it state that it currently does not work with latest Apple TV’s …

Like myself , I’d say many will fall into the same trap and download the integration (the app as I call it) , try and pair it , have it fail , then screw around for many hours trying to figure why it won’t work …

Would save some potential grief for many . :+1:

Cheers …

There’s no point in doing that now as it will be fixed in the next release. This should have been posted to https://alerts.home-assistant.io/, which is the official way of dealing with breakage. I forgot about this which is my bad. Last time someone else beat me to it…

1 Like

:slightly_smiling_face: :+1:

No prob