Event Automation Help Please

Hi, im trying to setup event key presses in homekit for the ios widget.

I read the docs and got this automation

- id: directionright
  alias: DirectionRight
  trigger:
    platform: event
    event_type: homekit_tv_remote_key_pressed
    event_data:
      key_name: arrow_right
  action:
    service: remote.send_command
    data:
      device: '75965197'
      command: DirectionRight
    target:
      entity_id: remote.livingroom
- id: directionleft
  alias: DirectionLeft
  trigger:
    platform: event
    event_type: homekit_tv_remote_key_pressed
    event_data:
      key_name: arrow_left
  action:
    service: remote.send_command
    data:
      device: '75965197'
      command: DirectionLeft
    target:
      entity_id: remote.livingroom
- id: directionup
  alias: DirectionUp
  trigger:
    platform: event
    event_type: homekit_tv_remote_key_pressed
    event_data:
      key_name: arrow_up
  action:
    service: remote.send_command
    data:
      device: '75965197'
      command: DirectionUp
    target:
      entity_id: remote.livingroom
- id: directiondown
  alias: DirectionDown
  trigger:
    platform: event
    event_type: homekit_tv_remote_key_pressed
    event_data:
      key_name: arrow_down
  action:
    service: remote.send_command
    data:
      device: '75965197'
      command: DirectionDown
    target:
      entity_id: remote.livingroom
- id: select
  alias: Select
  trigger:
    platform: event
    event_type: homekit_tv_remote_key_pressed
    event_data:
      key_name: select
  action:
    service: remote.send_command
    data:
      device: '75965197'
      command: Select
    target:
      entity_id: remote.livingroom
- id: informatiom
  alias: Information
  trigger:
    platform: event
    event_type: homekit_tv_remote_key_pressed
    event_data:
      key_name: information
  action:
    service: remote.send_command
    data:
      device: '75965197'
      command: Info
    target:
      entity_id: remote.livingroom
- id: back
  alias: Back
  trigger:
    platform: event
    event_type: homekit_tv_remote_key_pressed
    event_data:
      key_name: back
  action:
    service: remote.send_command
    data:
      device: '75965197'
      command: Back
    target:
      entity_id: remote.livingroom

Is there a HA command that I have wrong? the event keys don’t work. ie: arrow_up, arrow_down, arrow_left, arrow_right, back, information, select? or did I format it wrong? Any information would be appreciated!

Thanks!

  1. Go to Developer Tools > Events
  2. Enter homekit_tv_remote_key_pressed in Listen to events
  3. Click Start Listening
  4. Press buttons in the iOS widget and observe the events received (if any) by Home Assistant.
  5. Each event should reveal information about the corresponding button action.
1 Like

Thank You Very Much!!! Perfect. I haven’t used events yet in HA

1 Like