Apple TV - Open Apps via Home Assistant

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

scripts.yaml

# Turn on Netflix via AppleTV
  appletv_netflix:
      alias: Appletv Netflix
      sequence:
        - service: remote.send_command
          data:
            entity_id: remote.living_room
            command:
              - menu
        - delay: 00:00:08
        - service: remote.send_command
          data:
            entity_id: remote.living_room
            command:
              - menu
        - delay: 00:00:02
        - service: remote.send_command
          data:
            entity_id: remote.living_room
            command:
              - down
        - delay: 00:00:02
        - service: remote.send_command
          data:
            entity_id: remote.living_room
            command:
              - select

automations.yaml

# Turn on Appletv Netflix
- alias: 'turn on appletv netflix'
  trigger:
    platform: state
    entity_id: input_boolean.appletv_netflix
    from: 'off'
    to: 'on'
  action:
  - service: script.turn_on
    entity_id: script.appletv_netflix
  - service: input_boolean.toggle
    entity_id: input_boolean.appletv_netflix

emulated_hue.yaml

#emulated_hue:
  host_ip: !secret emulated_hue_ip
  listen_port: 80
  off_maps_to_on_domains:
    - automation
  expose_by_default: false
  exposed_domains:
    - input_boolean
  entities:
    input_boolean.appletv_netflix:
      name: 'Appletv Netflix'
      hidden: false