Last active
July 16, 2023 13:33
-
-
Save joogps/35e9071b1faaa6f152c3455878264a19 to your computer and use it in GitHub Desktop.
Revisions
-
João Gabriel revised this gist
Jun 30, 2020 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,13 @@ - 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']] }}" -
João Gabriel revised this gist
Jun 21, 2020 . 1 changed file with 8 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,13 @@ - alias: Call webostv.button on HomeKit Remote key presses trigger: - event_data: entity_id: media_player.living_room_tv event_type: homekit_tv_remote_key_pressed platform: event action: - data_template: 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']] }}" entity_id: "{{ trigger.event.data['entity_id'] }}" service: webostv.button -
João Gabriel revised this gist
Jun 21, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ - alias: Call webostv.button on HomeKit Remote key presses trigger: platform: event event_type: homekit_tv_remote_key_pressed -
João Gabriel revised this gist
Jun 21, 2020 . No changes.There are no files selected for viewing
-
João Gabriel revised this gist
Jun 21, 2020 . No changes.There are no files selected for viewing
-
João Gabriel renamed this gist
Jun 21, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
João Gabriel created this gist
Jun 21, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ - alias: Call webostv.button on HomeKit Remote key press 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 = {\n \"arrow_right\": \"RIGHT\",\n \"arrow_down\"\ : \"DOWN\",\n \"arrow_left\": \"LEFT\",\n \"arrow_up\": \"UP\",\n \"select\"\ : \"ENTER\",\n \"back\": \"BACK\",\n \"information\": \"HOME\",\n} %}\n\ {{ key_map[trigger.event.data['key_name']] }}"