Question about Apple TV integration (what does the remote entity do?)

I have installed the Apple TV integration on my HA setup. For each Apple TV, I have two entities (one media_player, and one remote). My question is, what exactly does the remote entity do? For the life of me, I can’t figure out what purpose it has.

Quote from the Apple TV Integration page:

The Apple TV remote platform will automatically create a Remote entity for each Apple TV configured on to your Home Assistant instance. These entities allow you to turn the device on/off and to send control commands.

You can also find some examples for using the remote service on the integration page like sending the Apple TV to Sleep Mode

apple_tv_sleep:
  alias: "Make the Apple TV sleep"
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.lounge_appletv
      data:
        delay_secs: 1
        command:
          - home_hold
          - select
    - service: media_player.turn_off
      target:
        entity_id: media_player.lounge_appletv

Hi, where should I add this code? Is it a card or something?

thanks.

1 Like

It says on the home assistant web page that it is a script. Not sure, perhaps its supposed to be added to a “script”.

For a newbie I think some of the instructions on the webpage are unclear. They may not be unclear for those who know what to do, but for those new to both pi and HA alot of the things on the webpage is really confusing and takes alot of research to figure out

Yes, thats correct @asgeirsb. This code is from a script.
@galvanadr: Do you know how to add and use scripts to your installation?

Another noobie here ;O
Could you please elaborate a bit more how to use scripts? I want to automate my projector screen with AppleTV but it looks like AppleTV only turn to pause

Hi goprojojo,

I’m not entirely sure I understand your request. Could you provide more details?

Which projector screen are you referring to, and how is it integrated into Home Assistant? Additionally, what specific goals do you have for integrating the Apple TV?

I’m reffering to the Vividstorm projector screen using the included rf usb stick