I’m sharing mine here… please, if you have something similar share here so people can learn and combine the parts how they’d like
My goal : Combine visual status and basic controls (not full remote control functionality) into a simple to use dashboard card anyone can use (kids, wife, and guests)
The idea is this can easily be expanded to watch for other ‘TV Apps’ (YouTube, Emby, etc) and show/hide those when they are launched/closed.
Below is my v1 YAML. It conditionally shows/hides cards based on status.
v1 functionality…
-
Google Cast + Mini Media Player
-
Basic controls (on/off, volume, etc)
-
Displays the ‘TV App’ selected (Plex, YouTube, etc)
-
Currently Playing Title (show / movie name)
Thx for sharing!
type: custom:vertical-stack-in-card
cards:
- type: conditional
conditions:
- entity: media_player.googletv_livingroom
state_not: "off"
- entity: media_player.googletv_livingroom
state_not: unavailable
- entity: media_player.googletv_livingroom
state_not: unknown
card:
type: markdown
content: >
{{ states('media_player.googletv_livingroom') }} ... {% if
state_attr('media_player.googletv_livingroom', 'app_name') %} {{
state_attr('media_player.googletv_livingroom', 'app_name') }} {% endif
%}
- type: custom:mini-media-player
entity: media_player.googletv_livingroom
name: false
artwork: full-cover
info: scroll
toggle_power: true
hide:
icon: false
power_state: true
source: true
- type: conditional
conditions:
- condition: and
conditions:
- entity: media_player.googletv_livingroom
state_not: "off"
- entity: media_player.googletv_livingroom
attribute: app_name
value: Plex
- entity: media_player.plex_livingroom_plex_for_android_tv_living_room
state_not: unavailable
card:
type: media-control
entity: media_player.plex_livingroom_plex_for_android_tv_living_room