Skip to content

Instantly share code, notes, and snippets.

@iloveicedgreentea
Created August 15, 2023 14:47
Show Gist options
  • Save iloveicedgreentea/327560db0def136f5d75f17b31def3f7 to your computer and use it in GitHub Desktop.
Save iloveicedgreentea/327560db0def136f5d75f17b31def3f7 to your computer and use it in GitHub Desktop.
HA state based dashboard
views:
- title: Home
path: home
theme: Google Dark Theme
badges: []
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
color_type: label-card
show_entity_picture: true
show_name: false
icon: mdi:home
haptic: medium
color: rgb(0,0,0)
size: 43%
styles:
card:
- background-color: |
[[[
return states['input_boolean.dashboard_home'].state === 'on' ? "rgb(255,255,255)" : "rgb(0,0,0)";
]]]
name: Home
tap_action:
action: call-service
service: script.dashboard_home_switch
target: {}
- type: custom:button-card
color_type: label-card
show_entity_picture: true
show_name: false
entity_picture: /local/g033AVX4700-F.png
size: 100%
styles:
card:
- background-color: |
[[[
return states['input_boolean.dashboard_denon'].state === 'on' ? "rgb(255,255,255)" : "rgb(0,0,0)";
]]]
name: Denon
tap_action:
action: call-service
service: script.dashboard_denon_switch
target: {}
- type: custom:button-card
color_type: label-card
show_entity_picture: true
show_name: false
entity_picture: /local/jvc.png
size: 90%
styles:
card:
- background-color: |
[[[
return states['input_boolean.dashboard_jvc'].state === 'on' ? "rgb(255,255,255)" : "rgb(0,0,0)";
]]]
name: Denon
tap_action:
action: call-service
service: script.dashboard_jvc_switch
target: {}
- type: custom:button-card
color_type: label-card
show_entity_picture: true
show_name: false
entity_picture: /local/nvidia-shield.png
size: 125%
styles:
card:
- background-color: |
[[[
return states['input_boolean.dashboard_shield'].state === 'on' ? "rgb(255,255,255)" : "rgb(0,0,0)";
]]]
name: Denon
tap_action:
action: call-service
service: script.dashboard_shield_switch
target: {}
- type: custom:button-card
color_type: label-card
show_entity_picture: true
show_name: false
entity_picture: /local/apple.png
size: 50%
styles:
card:
- background-color: |
[[[
return states['input_boolean.dashboard_apple'].state === 'on' ? "rgb(255,255,255)" : "rgb(0,0,0)";
]]]
name: Denon
tap_action:
action: call-service
service: script.dashboard_apple_switch
target: {}
- type: custom:state-switch
entity: input_select.dashboard_counter
default: home
states:
denon:
type: grid
square: false
columns: 3
cards:
- show_name: true
show_icon: false
type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MNINF
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
name: Info
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MNCUP
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
show_name: false
show_icon: true
icon: mdi:arrow-up
- show_name: false
show_icon: false
type: button
icon: mdi:power-settings
entity: media_player.denon_avr_x6700h
show_state: true
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MNCLT
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
show_name: false
icon: mdi:arrow-left
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MNENT
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
name: Enter
icon: mdi:checkbox-blank-circle
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MNCRT
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
show_name: false
icon: mdi:arrow-right
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MNRTN
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
name: Back
show_icon: false
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MNCDN
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
show_name: false
icon: mdi:arrow-down
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?RCKSK0410035
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
name: Setup
show_icon: false
- type: button
tap_action:
action: call-service
service: script.gaming_2
service_data: {}
target: {}
show_icon: true
name: PC
icon: mdi:desktop-mac-dashboard
show_name: true
hold_action:
action: none
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?SIMPLAY
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
show_icon: true
name: AppleTV
icon: mdi:apple
show_name: true
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?SIBD
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
show_icon: true
name: Shield
icon: mdi:movie-open
show_name: true
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?SIGAME
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
show_icon: true
name: Switch
show_state: false
icon: mdi:nintendo-switch
show_name: true
- type: button
tap_action:
action: none
show_icon: true
entity: sensor.denon_volume
show_state: true
show_name: false
icon: mdi:volume-high
- show_name: true
show_icon: false
type: button
tap_action:
action: call-service
service: script.denon_music
service_data: {}
target: {}
name: Music Mode
hold_action:
action: none
entity: sensor.denon_codec
show_state: true
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MSAUTO
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
name: Auto Sound
show_icon: false
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?PSCES OFF
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
show_icon: false
hold_action:
action: none
name: C.S Off
- type: button
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?PSCES ON
target:
device_id: 56f59e2779e44ca58c7cf2472d7316dd
show_icon: false
hold_action:
action: none
name: C.S On
home:
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: media_player.volume_down
service_data: {}
target:
entity_id: media_player.denon_avr_x6700h
name: ''
icon: mdi:volume-minus
icon_height: 40px
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: media_player.volume_up
service_data: {}
target:
entity_id: media_player.denon_avr_x6700h
name: +
icon: mdi:volume-plus
icon_height: 40px
- type: horizontal-stack
cards:
- show_name: false
show_icon: false
type: button
tap_action:
action: none
- type: horizontal-stack
cards:
- type: custom:button-card
icon: mdi:volume-minus
styles:
card:
- width: 60px
- height: 60px
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MV50
entity_id: media_player.denon_avr_x6700h
show_icon: true
name: 50
- type: custom:button-card
icon: mdi:volume-minus
styles:
card:
- width: 60px
- height: 60px
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MV60
entity_id: media_player.denon_avr_x6700h
show_icon: true
name: 60
- type: custom:button-card
icon: mdi:volume-minus
styles:
card:
- width: 60px
- height: 60px
tap_action:
action: call-service
service: denonavr.get_command
service_data:
command: /goform/formiPhoneAppDirect.xml?MV70
entity_id: media_player.denon_avr_x6700h
show_icon: true
name: 70
- show_name: false
show_icon: true
type: button
tap_action:
action: toggle
entity: light.caseta_r_wireless_in_wall_dimmer
hold_action:
action: more-info
icon_height: 40px
icon: mdi:track-light
- show_name: false
show_icon: true
type: button
tap_action:
action: toggle
entity: switch.caseta_r_wireless_in_wall_neutral_switch
icon: mdi:vanity-light
hold_action:
action: none
- type: horizontal-stack
cards:
- show_name: false
show_icon: false
type: button
tap_action:
action: none
- type: horizontal-stack
cards:
- type: button
entity: ''
name: All Off
icon: mdi:projector-screen-variant-off
icon_height: 40px
show_name: false
hold_action:
action: call-service
service: script.all_off
service_data: {}
target: {}
tap_action:
action: none
- type: button
tap_action:
action: none
hold_action:
action: call-service
service: script.movie
service_data: {}
target: {}
entity: ''
name: Shield
icon: mdi:movie-open
icon_height: 40px
show_name: false
- type: button
tap_action:
action: none
hold_action:
action: call-service
service: script.tv_2
service_data: {}
target: {}
entity: ''
name: Apple TV
icon: mdi:apple
icon_height: 40px
show_name: false
- show_name: false
show_icon: true
type: button
tap_action:
action: none
hold_action:
action: call-service
service: script.gaming
service_data: {}
target: {}
icon: mdi:monitor-dashboard
icon_height: 40px
name: Gaming
show_state: true
- type: button
tap_action:
action: none
hold_action:
action: call-service
service: script.lights_off
service_data: {}
target: {}
name: lights
icon: mdi:lightbulb-group-off
show_name: false
icon_height: 40px
jvc:
square: false
columns: 3
type: grid
cards:
- type: button
name: Power
show_icon: false
entity: remote.nz7
show_state: true
show_name: true
icon: mdi:power
- type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: menu,up
target:
entity_id: remote.nz7
show_name: false
show_icon: true
icon: mdi:arrow-up
hold_action:
action: none
- type: button
tap_action:
action: none
show_icon: false
entity: sensor.jvc_low_latency
show_name: true
show_state: true
name: Low Latency
hold_action:
action: none
- type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: menu,left
target:
entity_id: remote.nz7
show_name: false
icon: mdi:arrow-left
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: menu, ok
target:
entity_id: remote.nz7
name: OK
icon: mdi:checkbox-blank-circle
show_state: true
- type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: menu, right
target:
entity_id: remote.nz7
show_name: false
icon: mdi:arrow-right
- type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: menu,back
target:
entity_id: remote.nz7
name: Back
show_icon: false
- type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: menu,down
target:
entity_id: remote.nz7
show_name: false
icon: mdi:arrow-down
- type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: menu,menu
target:
entity_id: remote.nz7
show_name: true
show_icon: false
name: Menu
hold_action:
action: none
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: installation_mode,mode5
target:
entity_id: remote.nz7
name: '17:9'
icon: mdi:television
show_state: false
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: installation_mode,mode4
target:
entity_id: remote.nz7
name: 2.4:1
icon: mdi:television
show_state: false
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: installation_mode,mode2
target:
entity_id: remote.nz7
name: IMAX
icon: mdi:television
show_state: false
- show_name: true
show_icon: false
type: button
tap_action:
action: none
icon: ''
show_state: true
entity: sensor.jvc_low_latency
name: Low Latency
- show_name: true
show_icon: false
type: button
tap_action:
action: none
icon: ''
show_state: true
entity: sensor.jvc_installation_mode
name: Installation mode
- show_name: true
show_icon: false
type: button
tap_action:
action: none
icon: ''
show_state: true
entity: sensor.jvc_installation_mode
name: Installation mode
shield:
square: false
columns: 3
type: grid
cards:
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: media_player.select_source
service_data:
source: com.plexapp.android
target:
device_id:
- 00d95f10986e2fee91439467c72bf9ad
name: Plex
icon: mdi:plex
show_state: false
hold_action:
action: none
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: androidtv.adb_command
service_data:
command: >-
sendevent /dev/input/event5 4 4 786498 && sendevent
/dev/input/event5 1 103 1 && sendevent /dev/input/event5 3
40 0 && sendevent /dev/input/event5 3 42 1 && sendevent
/dev/input/event5 0 0 0 && sendevent /dev/input/event5 4 4
786498 && sendevent /dev/input/event5 1 103 0 && sendevent
/dev/input/event5 3 40 1 && sendevent /dev/input/event5 3
42 0 && sendevent /dev/input/event5 0 0 0
target:
device_id: 00d95f10986e2fee91439467c72bf9ad
icon: mdi:arrow-up
hold_action:
action: none
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: androidtv.adb_command
service_data:
command: >-
sendevent /dev/input/event5 4 4 786496 && sendevent
/dev/input/event5 1 139 1 && sendevent /dev/input/event5 3
40 0 && sendevent /dev/input/event5 3 42 1 && sendevent
/dev/input/event5 0 0 0 && sendevent /dev/input/event5 4 4
786496 && sendevent /dev/input/event5 1 139 0 && sendevent
/dev/input/event5 3 40 1 && sendevent /dev/input/event5 3
42 0 && sendevent /dev/input/event5 0 0 0
target:
device_id: 00d95f10986e2fee91439467c72bf9ad
hold_action:
action: none
icon: mdi:menu
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: androidtv.adb_command
service_data:
command: >-
sendevent /dev/input/event5 4 4 786500 && sendevent
/dev/input/event5 1 105 1 && sendevent /dev/input/event5 3
40 0 && sendevent /dev/input/event5 3 42 1 && sendevent
/dev/input/event5 0 0 0 && sendevent /dev/input/event5 4 4
786500 && sendevent /dev/input/event5 1 105 0 && sendevent
/dev/input/event5 3 40 1 && sendevent /dev/input/event5 3
42 0 && sendevent /dev/input/event5 0 0 0
target:
device_id: 00d95f10986e2fee91439467c72bf9ad
icon: mdi:arrow-left
hold_action:
action: none
icon_height: 40px
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: androidtv.adb_command
service_data:
command: >-
sendevent /dev/input/event5 4 4 786497 && sendevent
/dev/input/event5 1 353 1 && sendevent /dev/input/event5 3
40 0 && sendevent /dev/input/event5 3 42 1 && sendevent
/dev/input/event5 0 0 0 && sendevent /dev/input/event5 4 4
786497 && sendevent /dev/input/event5 1 353 0 && sendevent
/dev/input/event5 3 40 1 && sendevent /dev/input/event5 3
42 0 && sendevent /dev/input/event5 0 0 0
target:
device_id: 00d95f10986e2fee91439467c72bf9ad
icon: mdi:checkbox-blank-circle
hold_action:
action: none
- type: button
tap_action:
action: call-service
service: androidtv.adb_command
service_data:
command: >-
sendevent /dev/input/event5 4 4 786501 && sendevent
/dev/input/event5 1 106 1 && sendevent /dev/input/event5 3
40 0 && sendevent /dev/input/event5 3 42 1 && sendevent
/dev/input/event5 0 0 0 && sendevent /dev/input/event5 4 4
786501 && sendevent /dev/input/event5 1 106 0 && sendevent
/dev/input/event5 3 40 1 && sendevent /dev/input/event5 3
42 0 && sendevent /dev/input/event5 0 0 0
target:
device_id: 00d95f10986e2fee91439467c72bf9ad
show_name: false
show_icon: true
icon: mdi:arrow-right
hold_action:
action: none
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: androidtv.adb_command
service_data:
command: >-
sendevent /dev/input/event5 4 4 786980 && sendevent
/dev/input/event5 1 158 1 && sendevent /dev/input/event5 3
40 0 && sendevent /dev/input/event5 3 42 1 && sendevent
/dev/input/event5 0 0 0 && sendevent /dev/input/event5 4 4
786980 && sendevent /dev/input/event5 1 158 0 && sendevent
/dev/input/event5 3 40 1 && sendevent /dev/input/event5 3
42 0 && sendevent /dev/input/event5 0 0 0
target:
device_id: 00d95f10986e2fee91439467c72bf9ad
hold_action:
action: none
icon: mdi:chevron-double-left
show_state: false
- type: button
tap_action:
action: call-service
service: androidtv.adb_command
service_data:
command: >-
sendevent /dev/input/event5 4 4 786499 && sendevent
/dev/input/event5 1 108 1 && sendevent /dev/input/event5 3
40 0 && sendevent /dev/input/event5 3 42 1 && sendevent
/dev/input/event5 0 0 0 && sendevent /dev/input/event5 4 4
786499 && sendevent /dev/input/event5 1 108 0 && sendevent
/dev/input/event5 3 40 1 && sendevent /dev/input/event5 3
42 0 && sendevent /dev/input/event5 0 0 0
target:
device_id: 00d95f10986e2fee91439467c72bf9ad
show_name: false
show_icon: true
icon: mdi:arrow-down
hold_action:
action: none
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: androidtv.adb_command
service_data:
command: >-
sendevent /dev/input/event5 4 4 786979 && sendevent
/dev/input/event5 1 172 1 && sendevent /dev/input/event5 3
40 0 && sendevent /dev/input/event5 3 42 1 && sendevent
/dev/input/event5 0 0 0 && sendevent /dev/input/event5 4 4
786979 && sendevent /dev/input/event5 1 172 0 && sendevent
/dev/input/event5 3 40 1 && sendevent /dev/input/event5 3
42 0 && sendevent /dev/input/event5 0 0 0
target:
device_id: 00d95f10986e2fee91439467c72bf9ad
name: Setup
show_state: false
icon: mdi:home
- show_name: false
show_icon: false
type: button
tap_action:
action: none
hold_action:
action: none
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: media_player.media_play_pause
service_data: {}
target:
entity_id: media_player.android_tv_192_168_88_13
icon: mdi:play-pause
hold_action:
action: none
- show_name: false
show_icon: false
type: button
tap_action:
action: none
hold_action:
action: none
apple:
square: false
columns: 3
type: grid
cards:
- show_name: false
show_icon: false
type: button
tap_action:
action: none
icon: ''
show_state: false
hold_action:
action: none
- type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: up
target:
entity_id: remote.media_room
show_name: false
show_icon: true
icon: mdi:arrow-up
hold_action:
action: none
- show_name: false
show_icon: false
type: button
tap_action:
action: none
hold_action:
action: none
icon: mdi:menu
- type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: left
target:
entity_id: remote.media_room
show_name: false
show_icon: true
icon: mdi:arrow-left
hold_action:
action: none
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: select
target:
entity_id: remote.media_room
icon: mdi:checkbox-blank-circle
hold_action:
action: none
- type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: right
target:
entity_id: remote.media_room
show_name: false
show_icon: true
icon: mdi:arrow-right
hold_action:
action: none
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: menu
target:
entity_id: remote.media_room
hold_action:
action: none
icon: mdi:chevron-double-left
show_state: false
- type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: down
target:
entity_id: remote.media_room
show_name: false
show_icon: true
icon: mdi:arrow-down
hold_action:
action: none
- show_name: false
show_icon: true
type: button
tap_action:
action: call-service
service: remote.send_command
service_data:
command: home
target:
entity_id: remote.media_room
name: Setup
show_state: false
icon: mdi:home
- show_name: false
show_icon: false
type: button
tap_action:
action: none
hold_action:
action: none
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: media_player.media_play_pause
service_data: {}
target:
entity_id: media_player.media_room
icon: mdi:play-pause
hold_action:
action: none
- show_name: false
show_icon: false
type: button
tap_action:
action: none
hold_action:
action: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment