Will I be able to get the apple_tv platform to work on HassOS?
As per the documentation https://www.home-assistant.io/integrations/apple_tv/ it seems like I would need some extra libraries.
And I assume I cannot install those in HassOS.
All I need is to read out attributes from apple_tv to use in an automation.
Right now I am testing out the installation without the Ubuntu VM, running only HassOS.
Everything needed is already bundled with Hass.io (no matter if running on HassOS or not). But if you want to add an Apple TV running tvOS you need to use the beta component until I have merged it back into Home Assistant. I recommend that you install with HACS to get automatic updates.
Thank you for info and for your effort in writing this integration.
I pulled the beta down using HACSđ
I got confused, though: restart or not restart?
You need to restart Home Assistant. This integration supports config_flow, that means that you now can go to the integration section of your UI to configure it.
No restart required
That is some clear instructions right there I guess there are two things here. Since itâs a custom component, you need to restart Home Assistant in order to get it since Home Assistant canât hotload components/integrations. Once you have it available in HA, then you donât have to restart when adding new Apple TVs after that (due to confg flows).
There is one thing I donât understand:
How can I ensure the Apple TV is accessible?
In the image below the âpowerâ button is switched off. This prevents the Automation to run, even when the Apple TV device is playing content.
Any tips how I can make sure itâs switched on for the automation?
The Apple TV itself is running, and playing content.
The switch is in the OFF state (see image).
The Apple TV, âmedia_player.stua_1_etgâ state is âplayingâ
My automation is triggered by this state, but do not work if the state is off.
This looks like an impossible situation to me, I donât really understand it. It f the device is off, the fronted renders âOffâ in the title (with localization). That is not possible to override as far as I know. Do you see anything in the logs? Maybe you can enable these:
Would you mind posting an example yaml snippet to use the remote entities?
Iâm having Iâm trying to use the âwakeâ command outlined in pyatv as a script to turn on my Apple TV. Beta working great apart from that
Thank you so much! You have no idea how long Iâve been trying to build a sleep button for my Apple TV 4. The hold_home command was just a myth for the longest time
It will be on/idle only with an open connection. So if it turned off in Home assistant (or if Home
Assistant loses connection), then the both the media player and remote will be (logically) off.
As a workaround for turning on (assuming it does not do that when turning on the entity), you can write a script that turns on the media player/remote, wait for idle state and then sends wakeup.
I would assume that you use it when you want I turn on the physical device (in case CEC doesnât kick in)? Iâm not sure I fully understand the usecase here when Iâm thinking about it.