Coder Social home page Coder Social logo

shield-card's Introduction

Nvidia Shield Remote Card

Forked from marrobHD/tv-card

Demo:

yaml found below

demo

Options

Name Type Requirement Description
type string Required custom:tv-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, Exclusive service to call when power button pressed. When power defined, power_on and power_off are disabled, even when defined
power_on service Optional, Exclusive service to call when power_on button pressed. Only enabled if no power defined.
power_off service Optional, Exclusive service to call when power_off button pressed. Only enabled if no power defined.
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
play service Optional service to call when play button pressed
forward service Optional service to call when forward button pressed
finder service Optional service to call when remote finder 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
netflix service Optional service to call when netflix button pressed
prime_video service Optional service to call when prime video button pressed
youtube service Optional service to call when youtube button pressed
hulu service Optional service to call when hulu button pressed
plex service Optional service to call when plex button pressed

service Options

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

Installation

Install using HACS: 3 dots in the top right Custom repository Repository: Gangoke/shield-card Category: lovelace Add

or [see this guide](https://github.com/thomasloven/hass-config/wiki/

Nvidia Shield Commands

Here you cna find some adb commands: NVIDIA Shield Intents

Example 1:

Fully built for Nvidia Shield. I personally remove the power button. Change each entity/entity_id to your own media_player.shield

type: custom:shield-card
entity: media_player.living_room_nvidia_shield
name: false
tv: true
power: 
  service: media_player.turn_on
  service_data:   
    entity_id: media_player.living_room_nvidia_shield
back:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: BACK
home:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: HOME
menu:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: >-
      am start -a android.intent.action.VIEW -d -n
      com.android.tv.settings/.MainSettings
up:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: UP
left:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: LEFT
select:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: ENTER
right:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: RIGHT
down:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: DOWN
reverse:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: input keyevent 38
play:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: input keyevent 85
forward:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: input keyevent 40
finder:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: >-
      am start -a android.intent.action.VIEW -d -n
      com.nvidia.remotelocator/.ShieldRemoteLocatorActivity
hulu:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: >-
      am start -a android.intent.action.VIEW -n
      com.hulu.livingroomplus/.WKFactivity
prime_video:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: >-
      am start -a android.intent.action.VIEW -n
      com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity
netflix:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: am start -a android.intent.action.VIEW -n com.netflix.ninja/.MainActivity
plex:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: >-
      am start -a android.intent.action.VIEW -n
      com.plexapp.android/com.plexapp.plex.activities.SplashActivity
youtube:
  service: androidtv.adb_command
  service_data:
    entity_id: media_player.living_room_nvidia_shield
    command: >-
      am start -a android.intent.action.VIEW -n
      com.google.android.youtube.tv/com.google.android.apps.youtube.tv.activity.ShellActivity

shield-card's People

Contributors

gangoke avatar iantrich avatar fstani avatar andersteern avatar mozan avatar manuellr avatar myanello avatar wojtek14a avatar zephirenz avatar brad999 avatar villhellm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.