Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

marrobHD/firetv-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โš ๏ธ Archived: Please move to https://github.com/marrobHD/tv-card

FireTV Remote Card

๐Ÿ“บ FireTV Lovelace Card editited by mar_robHD

GitHub Release License

Project Maintenance GitHub Activity hacs_badge Discord Community Forum

Github

Support

This card is for Lovelace on Home Assistant that display a FireTV remote.

NOTE: Firefox releases before 67 are not supported

https://twitter.com/_developit/status/1090364879377260544

ex

Options

Name Type Requirement Description
type string Required custom:firetv-card
entity string Required random entity
remote string Optional remote entity of Roku device. Default assume named like entity
name string Optional Card name
theme string Optional Card theme
tv boolean Optional If true shows volume and power buttons. Default false
power service Optional service to call when power button pressed
back service Optional service to call when back button pressed
home service Optional service to call when home button pressed
menu service Optional service to call when menu button pressed
up service Optional service to call when up button pressed
left service Optional service to call when left button pressed
select service Optional service to call when select button pressed
right service Optional service to call when right button pressed
down service Optional service to call when down button pressed
reverse service Optional service to call when reverse button pressed
pauseplay service Optional service to call when play/pause button pressed
forward service Optional service to call when forward button pressed
volume_up service Optional service to call when volume up button pressed
volume_down service Optional service to call when volume down button pressed
volume_mute service Optional service to call when volume mute button pressed
invisible service Optional service to call when invisible button between the power buttons is pressed

service Options

Name Type Requirement Description
service string Required Service to call
service_data string Optional Service data to use

Installation

HACS:

Add this to your HACS settings tab:

https://github.com/marrobHD/firetv-card

example

Step 1

Install firetv-card by copying firetv-card.js and firetv-card-editor.js from this repo to <config directory>/www/firetv-card.js on your Home Assistant instance.

Example:

wget https://raw.githubusercontent.com/marrobHD/firetv-card/master/firetv-card.js
wget https://raw.githubusercontent.com/marrobHD/firetv-card/master/firetv-card-editor.js
mv firetv-card* /config/www/

Step 2

Link firetv-card inside your ui-lovelace.yaml.

resources:
  - type: module
    url: /local/tv-card.js?v=1

Step 3

Add a custom element in your ui-lovelace.yaml

        type: 'custom:firetv-card'
        theme: Backend-selected
        tv: false
        entity: sun.sun
        name: FireTV
        power:
          service: androidtv.adb_command
          service_data:
            command: "input keyevent 26"
            entity_id: media_player.firetv
        back:
          service: androidtv.adb_command
          service_data:
            command: BACK
            entity_id: media_player.firetv
        home:
          service: androidtv.adb_command
          service_data:
            command: HOME
            entity_id: media_player.firetv
        down:
          service: androidtv.adb_command
          service_data:
            command: DOWN
            entity_id: media_player.firetv
        up:
          service: androidtv.adb_command
          service_data:
            command: UP
            entity_id: media_player.firetv
        left:
          service: androidtv.adb_command
          service_data:
            command: LEFT
            entity_id: media_player.firetv
        select:
          service: androidtv.adb_command
          service_data:
            command: "input keyevent 23"
            entity_id: media_player.firetv
        right:
          service: androidtv.adb_command
          service_data:
            command: RIGHT
            entity_id: media_player.firetv
        reverse:
          service: androidtv.adb_command
          service_data:
            command: input keyevent 89
            entity_id: media_player.firetv
        pauseplay:
          service: androidtv.adb_command
          service_data:
            command: input keyevent 85
            entity_id: media_player.firetv
        forward:
          service: androidtv.adb_command
          service_data:
            command: input keyevent 90
            entity_id: media_player.firetv
        menu:
          service: androidtv.adb_command
          service_data:
            command: MENU
            entity_id: media_player.firetv

Example 1:

You can use the card in combination with the browser mod integration. That means that you can create a ex. input_boolean which opens when you click on its icon:

type: entities
entities:
  - entity: input_boolean.firetv
    name: FireTV
    tap_action:
      action: fire-dom-event
      browser_mod:
        command: popup
        style:
          border-radius: 20px
          '--ha-card-border-radius': 0px
        title: FireTV Fernbedienung
        card:
          type: 'custom:firetv-card'
          entity: sun.sun
          back:
            service: androidtv.adb_command
            service_data:
              command: BACK
              entity_id: media_player.firetv
          down:
            service: androidtv.adb_command
            service_data:
              command: DOWN
              entity_id: media_player.firetv
          forward:
            service: androidtv.adb_command
            service_data:
              command: input keyevent 90
              entity_id: media_player.firetv
          home:
            service: androidtv.adb_command
            service_data:
              command: HOME
              entity_id: media_player.firetv
          left:
            service: androidtv.adb_command
            service_data:
              command: LEFT
              entity_id: media_player.firetv
          menu:
            service: androidtv.adb_command
            service_data:
              command: MENU
              entity_id: media_player.firetv
          pauseplay:
            service: androidtv.adb_command
            service_data:
              command: input keyevent 85
              entity_id: media_player.firetv
          power:
            service: androidtv.adb_command
            service_data:
              command: input keyevent 26
              entity_id: media_player.firetv
          reverse:
            service: androidtv.adb_command
            service_data:
              command: input keyevent 89
              entity_id: media_player.firetv
          right:
            service: androidtv.adb_command
            service_data:
              command: RIGHT
              entity_id: media_player.firetv
          select:
            service: androidtv.adb_command
            service_data:
              command: input keyevent 23
              entity_id: media_player.firetv
          tv: false
          up:
            service: androidtv.adb_command
            service_data:
              command: UP
              entity_id: media_player.firetv

suspended:Custom Updater:

Add this to your configuration.yaml

custom_updater:
  card_urls:
    - https://raw.githubusercontent.com/marrobHD/firetv-card/master/tracker.json

Troubleshooting