Skip to content

Instantly share code, notes, and snippets.

@joogps

joogps/automations.yaml

Last active Oct 1, 2020
Embed
What would you like to do?
Home Assistant automation for calling webostv.button on HomeKit Remote key presses
- alias: Call webostv.button on HomeKit Remote key presses
trigger:
- platform: event
event_type: homekit_tv_remote_key_pressed
event_data:
entity_id: media_player.living_room_tv
action:
- service: webostv.button
data_template:
entity_id: "{{ trigger.event.data['entity_id'] }}"
button: "{% set key_map = {'arrow_right': 'RIGHT', 'arrow_down' : 'DOWN', 'arrow_left':
'LEFT', 'arrow_up': 'UP', 'select': 'ENTER', 'back': 'BACK', 'information':
'HOME'} %} {{ key_map[trigger.event.data['key_name']] }}"
@ispiropoulos

This comment has been minimized.

Copy link

@ispiropoulos ispiropoulos commented Sep 30, 2020

Neat!!!

@joogps

This comment has been minimized.

Copy link
Owner Author

@joogps joogps commented Oct 1, 2020

@ispiropoulos i'm glad you liked it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.