Last active
November 19, 2022 03:18
-
-
Save BHSPitMonkey/277cdc703c0b2f6226e1b95e78043273 to your computer and use it in GitHub Desktop.
Example Home Assistant dashboard for controlling an Android TV device
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 characters
type: vertical-stack | |
cards: | |
- type: media-control | |
entity: media_player.tv | |
- type: markdown | |
content: '## Remote Control' | |
- type: grid | |
cards: | |
- type: button | |
tap_action: | |
action: toggle | |
show_icon: false | |
- type: button | |
tap_action: | |
action: call-service | |
service: androidtv.adb_command | |
service_data: | |
entity_id: media_player.tv | |
command: UP | |
target: {} | |
icon: mdi:menu-up | |
- type: button | |
tap_action: | |
action: toggle | |
show_icon: false | |
- type: button | |
tap_action: | |
action: call-service | |
service: androidtv.adb_command | |
service_data: | |
entity_id: media_player.tv | |
command: LEFT | |
target: {} | |
icon: mdi:menu-left | |
- type: button | |
tap_action: | |
action: call-service | |
service: androidtv.adb_command | |
service_data: | |
entity_id: media_player.tv | |
command: CENTER | |
target: {} | |
icon: mdi:circle | |
hold_action: | |
action: none | |
- type: button | |
tap_action: | |
action: call-service | |
service: androidtv.adb_command | |
service_data: | |
entity_id: media_player.tv | |
command: RIGHT | |
target: {} | |
icon: mdi:menu-right | |
- type: button | |
tap_action: | |
action: toggle | |
show_icon: false | |
- type: button | |
tap_action: | |
action: call-service | |
service: androidtv.adb_command | |
service_data: | |
entity_id: media_player.tv | |
command: DOWN | |
target: {} | |
icon: mdi:menu-down | |
- type: button | |
tap_action: | |
action: toggle | |
show_icon: false | |
- type: button | |
tap_action: | |
action: call-service | |
service: androidtv.adb_command | |
service_data: | |
entity_id: media_player.tv | |
command: BACK | |
target: {} | |
icon: mdi:arrow-u-left-top-bold | |
- type: button | |
tap_action: | |
action: call-service | |
service: androidtv.adb_command | |
service_data: | |
entity_id: media_player.tv | |
command: HOME | |
target: {} | |
icon: mdi:home | |
hold_action: | |
action: none | |
- type: button | |
tap_action: | |
action: call-service | |
service: androidtv.adb_command | |
service_data: | |
entity_id: media_player.tv | |
command: MENU | |
target: {} | |
icon: mdi:card-multiple | |
square: false | |
- type: markdown | |
content: '## Streaming Apps' | |
- type: grid | |
cards: | |
- type: custom:button-card | |
tap_action: | |
action: call-service | |
service: script.turn_on | |
service_data: | |
entity_id: script.launch_tv_app | |
variables: | |
app: com.netflix.ninja | |
icon: mdi:netflix | |
color: white | |
styles: | |
card: | |
- background-color: red | |
haptic: selection | |
- type: custom:button-card | |
tap_action: | |
action: call-service | |
service: script.turn_on | |
service_data: | |
entity_id: script.launch_tv_app | |
variables: | |
app: org.xbmc.kodi | |
icon: mdi:kodi | |
color: '#11ace0' | |
styles: | |
card: | |
- background-color: '#1a1e1a' | |
haptic: success | |
- type: custom:button-card | |
tap_action: | |
action: call-service | |
service: script.turn_on | |
service_data: | |
entity_id: script.launch_tv_app | |
variables: | |
app: com.disney.disneyplus | |
icon: fapro:disney-plus | |
color: white | |
styles: | |
card: | |
- background-color: '#1c1f5c' | |
haptic: selection | |
- type: custom:button-card | |
tap_action: | |
action: call-service | |
service: script.turn_on | |
service_data: | |
entity_id: script.launch_tv_app | |
variables: | |
app: com.amazon.amazonvideo.livingroom | |
icon: fapro:amazon | |
color: white | |
styles: | |
card: | |
- background-color: '#0ca7d8' | |
haptic: selection | |
- type: custom:button-card | |
tap_action: | |
action: call-service | |
service: script.turn_on | |
service_data: | |
entity_id: script.launch_tv_app | |
variables: | |
app: com.google.android.youtube.tv | |
icon: mdi:youtube | |
color: red | |
styles: | |
card: | |
- background-color: white | |
haptic: medium | |
- type: custom:button-card | |
tap_action: | |
action: call-service | |
service: script.turn_on | |
service_data: | |
entity_id: script.launch_tv_app | |
variables: | |
app: com.hbo.hbonow | |
icon: fapro:hbo | |
color: white | |
styles: | |
card: | |
- background-color: black | |
square: true | |
columns: 6 | |
- type: markdown | |
content: '## Tasks' | |
- show_name: true | |
show_icon: false | |
type: button | |
tap_action: | |
action: call-service | |
service: kodi.call_method | |
service_data: | |
method: VideoLibrary.Scan | |
target: | |
entity_id: media_player.kodi | |
entity: '' | |
name: Update Kodi Library | |
icon: mdi:kodi | |
icon_height: 12px |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment