Deep link to Apple TV Library app (or other way to start it from HA)

I would like to create an automation that wakes my Mac and starts the Library app on my Apple TV so I can access the media stored in Music and TV apps on my Mac.

I have Wake on LAN working fine. Has anyone figured out a deep link for the Library app on Apple TV, or some other way of starting the app from Home Assistant?

Edit: never mind, it’s probably not that hard to achieve either using media_player.select_source or creating a script that sends remote commands.

As of 2023.7.0 it looks like the AppleTV integration supports deep links, at least for certain apps. There’s more information about it here: