I hope someone who already uses Apple TV and Home Assistant can help me out. I have some pre-sale questions for an Apple TV:
Is it possible to open Apps (like Netflix, Youtube, etc.) via Home Assistant?
What I want to achieve:
Use a switch to turn on my AVR, turn on Apple TV, switch to Spotify App and play media.
Or create a Netflix-Switch. I hit this switch, my TV turns on, my AVR turns on, Apple TV turns on and opens Netflix app.
Yes, thatās right. As @Tribune suggested and I had done that, you may create scripts that send the right sequence of remote commands to open the desired app. You can even put some delays to wait for the app to load and then go thru the login/select things.
Sending commands on my Harmony remote might be the solution.
But I totally missed that there is no Spotify (Connect) support, which is really disappointing.
I have to think about how to integrate Airplay into my systemā¦
The first āmenuā command is just to āwake upā the atv. ātop-menuā brings the ATV to the āhome screenā so you kind know where the cursor is. Then you have to adapt to your case where your app is. As long you dont keep changing the positions of the apps, it should work. Maybe the ādelayā isnt needed but since it worked I left them there.
Thanks for sharing! This is very close to what I have so far.
Iām going to add the delays and see if that helps. I have the feeling that sometimes Iām too fast for the ATV to register each step. Adding more delays would solve this perhaps.
I have added commands to scripts.yaml file to start netflix. Test execute the script and it works. How can I setup HA to tell Alexa to run the command? I have emulated hue installed.
I have figure it out. We need to create an input boolean as a trigger to run the script and expose the input boolean for Alexa to turn it on via voice command.
input_boolean.yaml
(Note: Need to install Simpleicon via HACS since some brand logos have been āmovedā.)
appletv_netflix:
name: AppleTV Netflix
icon: si:netflix
initial: off
It is now possible to launch apps directly (vs using several programmed button presses). Iām not sure if itās new to v15 or specific to newer devices, but the sources show in a drop down on the info tab of my Apple TV device menu, and I have successfully launched Disney+ with a script using the media_player.select_source service (āMedia player: select sourceā in UI). When configuring my test script, I typed the source name exactly as it is shown in that dropdown.