I am working on creating an automation that will turn on my apple tv, switch to the twitch app, and then when triggered by a twitch streamer going online. I have successfully tested the twitch sensor, the turn on service, and select source service of the automation, but am running into an issue with launching the stream once twitch is open.
I have been trying to use the play media service to launch the stream, but haven’t had any success so far. For the content ID, I have tried using deeplinks ( 'twitch://stream/channel_name`, ‘twitch://open?stream=channel_name’), urls (‘twitch .tv/channel_name’), and plain text channel names (‘channel_name’) in combination with different content types: music, tvshow, video, episode, channel, and playlist
Searching online has not produced any solutions for accomplishing this on apple tv. I have considered sending commands for the remote inputs but navigating that far into the app itself using this method would require accounting for too many variables (state of the app after previous use mostly)
Has anyone been able to successfully launch a twitch stream on an apple tv from HA? Are there any other possible routes to accomplish this?