All Projects → iantrich → roku-card

iantrich / roku-card

Licence: MIT license
📺 Roku Remote Card

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to roku-card

linak-desk-card
Home Assistant Lovelace Card for controlling desks based on linak bluetooth controller.
Stars: ✭ 26 (-69.77%)
Mutual labels:  home-assistant, lovelace, custom-card
entur-card
Home Assistant Lovelace card card for the Entur public transport component.
Stars: ✭ 38 (-55.81%)
Mutual labels:  home-assistant, lovelace
pymusiccast
Group MusicCast Speakers with Home Assistant
Stars: ✭ 34 (-60.47%)
Mutual labels:  home-assistant, lovelace
lovelace-fan-xiaomi
Xiaomi Smartmi Fan Lovelace card with CSS fan animation
Stars: ✭ 60 (-30.23%)
Mutual labels:  lovelace, custom-card
home-assistant-sun-card
Home assistant sun card based on Google weather design
Stars: ✭ 279 (+224.42%)
Mutual labels:  home-assistant, custom-card
Home-Assistant-Main
My Home Assistant Configuration Be sure to ⭐ my repo so you can keep up to date on the daily progress!
Stars: ✭ 54 (-37.21%)
Mutual labels:  home-assistant, lovelace
Home Assistantconfig
🏠 Home Assistant configuration & Documentation for my Smart House. Write-ups, videos, part lists, and links throughout. Be sure to ⭐ it. Updated FREQUENTLY!
Stars: ✭ 3,687 (+4187.21%)
Mutual labels:  home-assistant, lovelace
decluttering-card
🧹 Declutter your lovelace configuration with the help of this card
Stars: ✭ 186 (+116.28%)
Mutual labels:  home-assistant, lovelace
lovelace-valetudo-map-card
Draws the map available from a Xiaomi Vacuum cleaner flashed with Valetudo in a Home Assistant Lovelace card
Stars: ✭ 149 (+73.26%)
Mutual labels:  home-assistant, lovelace
purifier-card
Air Purifier card for Home Assistant Lovelace UI
Stars: ✭ 155 (+80.23%)
Mutual labels:  home-assistant, lovelace
ha-card-weather-conditions
Weather condition card (Lovelace) for Home Assistant.
Stars: ✭ 101 (+17.44%)
Mutual labels:  home-assistant, lovelace
hass-shutter-card
Shutter card for Home Assistant Lovelace UI
Stars: ✭ 151 (+75.58%)
Mutual labels:  home-assistant, lovelace
light-card
Lovelace light-card for home assistant
Stars: ✭ 18 (-79.07%)
Mutual labels:  home-assistant, lovelace
bom-radar-card
A rain radar card using the new tiled images from the Australian BOM
Stars: ✭ 52 (-39.53%)
Mutual labels:  home-assistant, lovelace
air-visual-card
A Lovelace card showing air quality data from airvisual.com. Requires the AirVisual component.
Stars: ✭ 70 (-18.6%)
Mutual labels:  home-assistant, lovelace
lovelace-canary
🐤 Adds many useful extensions to lovelace, such as templating secondary info, stacking within a card and more!
Stars: ✭ 28 (-67.44%)
Mutual labels:  home-assistant, lovelace
lovelace-soft-ui
💫 Simple and clean Lovelace configuration
Stars: ✭ 807 (+838.37%)
Mutual labels:  home-assistant, lovelace
lovelace-climate-mode-entity-row
Climate mode entity for Lovelace
Stars: ✭ 49 (-43.02%)
Mutual labels:  home-assistant, lovelace
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (-29.07%)
Mutual labels:  home-assistant, lovelace
uptime-card
Minimalistic uptime card for Home Assistant Lovelace UI
Stars: ✭ 152 (+76.74%)
Mutual labels:  home-assistant, lovelace

📺 Roku Remote Card

GitHub Release License hacs_badge

Project Maintenance GitHub Activity

Discord Community Forum

Twitter Github

Support

Hey dude! Help me out for a couple of 🍻 or a !

coffee

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

example

Installation

Version 1.1.0 and above require Home Assistant 0.110.0 or above

Use HACS or follow this guide

resources:
  url: /local/roku-card.js
  type: module

Options

Name Type Requirement Description
type string Required custom:roku-card
entity string Required media_player entity of Roku device
remote string Optional remote entity of Roku device. Default assumed 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 map Optional Button configuration for power See button options
volume_up map Optional Button configuration for volume_up See button options
volume_down map Optional Button configuration for volume_down See button options
volume_mute map Optional Button configuration for volume_mute See button options
up map Optional Button configuration for up See button options
down map Optional Button configuration for down See button options
left map Optional Button configuration for left See button options
right map Optional Button configuration for right See button options
home map Optional Button configuration for home See button options
info map Optional Button configuration for info See button options
back map Optional Button configuration for back See button options
select map Optional Button configuration for select See button options
reverse map Optional Button configuration for reverse See button options
play map Optional Button configuration for play See button options
forward map Optional Button configuration for forward See button options
apps map Optional List of app shortcuts See app options
haptic string Optional none, success, warning, failure, light, medium, heavy, selection. Default is success

app Options

Name Type Requirement Description
app string Optional Name of the source to launch as tap_action
image string Optional Path to image to use for app
icon string Optional mdi icon to use instead of an image for app
tap_action map Optional Tap action map See action options
hold_action map Optional Hold action map See action options
double_tap_action map Optional Doulbe Tap action map See action options

button Options

Name Type Requirement Description
show boolean Optional Show/Hide button true
tap_action map Optional Tap action map See action options
hold_action map Optional Hold action map See action options
double_tap_action map Optional Doulbe Tap action map See action options

action Options

Name Type Default Supported options Description
action string toggle more-info, toggle, call-service, none, navigate, url Action to perform
entity string none Any entity id Only valid for action: more-info to override the entity on which you want to call more-info
navigation_path string none Eg: /lovelace/0/ Path to navigate to (e.g. /lovelace/0/) when action defined as navigate
url_path string none Eg: https://www.google.com URL to open on click when action is url.
service string none Any service Service to call (e.g. media_player.media_play_pause) when action defined as call-service
service_data map none Any service data Service data to include (e.g. entity_id: media_player.bedroom) when action defined as call-service.
haptic string none success, warning, failure, light, medium, heavy, selection Haptic feedback for the Beta IOS App
repeat number none eg: 500 How often to repeat the hold_action in milliseconds.

Usage

type: 'custom:roku-card'
entity: media_player.basement_roku
tv: true
apps:
  - image: /local/netflix.webp
    app: Netflix
  - image: /local/hulu.webp
    app: Hulu
    hold_action:
      action: call-service
      service: media_player.select_source
      service_data:
        source: ESPN
        entity_id: media_player.basement_roku
volume_up:
  tap_action:
    action: call-service
    service: remote.send_command
    service_data:
      entity_id: remote.basement_roku
      command: play
volume_down:
  double_tap_action:
    action: call-service
    service: remote.send_command
    service_data:
      entity_id: remote.basement_roku
      command: play

Troubleshooting

Developers

  1. Fork and clone the repository.
  2. Open the devcontainer and run npm start when it's ready.
  3. The compiled .js file will be accessible on http://127.0.0.1:5000/roku-card.js.
  4. On a running Home Assistant installation add this to your Lovelace resources:
- url: 'http://127.0.0.1:5000/roku-card.js'
  type: module

Change "127.0.0.1" to the IP of your development machine.

Bonus

If you need a fresh test instance you can install a fresh Home Assistant instance inside the devcontainer as well.

  1. Run the command dc start.
  2. Home Assistant will install and will eventually be running on port 9123
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].