HOME ASSISSTANT APPLE TV turn on

I am trying to simulate the action of pressing the power button on the appletv remote on home assistant
is that possible?
any help would be much appreciated

When you add apple TV integration, it will create 2 entities

media_player.[apple_tv_name]
remote.[apple_tv_name]

You can use the remote service to turn it on

Apple TV - Home Assistant (home-assistant.io)

i cant seem to find the auto created remote entity what should i do?

media_player.turn_on on the entity does the same thing.

hmm so how do i go about making an action in an automation with media_player.turn_on, sorry im very new to HA

Have you add the apple TV intergration yet

Setting > Device & services

yup i have it

how do you want it to trigger? if you want to put it in an automation, fill in the trigger

- alias: [automation_name]
  trigger:
   
  action:
    - service: media_player.turn_on
      target:
        entity_id: media_player.apple_tv_name

i just tried to put this into an automation and got this error
Message malformed: Unable to determine action @ data[‘action’][0]

Can you paste your automation?

description: ""
mode: single
trigger: []
condition: []
action:
  - action:
      - service: media_player.turn_on
        target: null
        entity_id: media_player.home_cinema
alias: testaptv

shouldnt be like that? and what trigger you want to turn it on?