Created
May 15, 2023 12:16
-
-
Save GitHubGoody/ba58424fed82754c11bea277fa6daab4 to your computer and use it in GitHub Desktop.
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
# Theater | |
- title: Theater | |
# subview: True | |
path: Theater | |
icon: mdi:theater | |
theme: Backend-selected | |
type: custom:horizontal-layout | |
layout: !include ../layout.yaml | |
cards: | |
- type: custom:stack-in-card | |
mode: vertical | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:audio-video | |
entity: media_player.anthem_receiver | |
icon_color: >- | |
{% if states('media_player.anthem_receiver') == 'off' or | |
states('media_player.anthem_receiver') == 'standby' %} | |
disabled {% else %} green {% endif %} | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: media_player.turn_on | |
data: {} | |
target: | |
entity_id: media_player.anthem_receiver | |
hold_action: | |
action: call-service | |
service: media_player.turn_off | |
data: {} | |
target: | |
entity_id: media_player.anthem_receiver | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:projector | |
entity: switch.projector | |
icon_color: >- | |
{% if states('switch.projector') == 'off' or | |
states('switch.projector') == 'standby' %} | |
disabled {% else %} green {% endif %} | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: switch.turn_on | |
data: {} | |
target: | |
entity_id: switch.projector | |
hold_action: | |
action: call-service | |
service: switch.turn_off | |
data: {} | |
target: | |
entity_id: switch.projector | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: phu:apple-tv-box | |
entity: media_player.apple_tv_theater | |
icon_color: >- | |
{% if states('media_player.apple_tv_theater') == 'off' or | |
states('media_player.apple_tv_theater') == 'standby' %} | |
disabled {% else %} green {% endif %} | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: media_player.turn_on | |
data: {} | |
target: | |
entity_id: media_player.apple_tv_theater | |
hold_action: | |
action: call-service | |
service: media_player.turn_off | |
data: {} | |
target: | |
entity_id: media_player.apple_tv_theater | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: phu:xbox-alt | |
entity: media_player.xbox_series_x | |
icon_color: >- | |
{% if states('media_player.xbox_series_x') == 'off' or | |
states('media_player.xbox_series_x') == 'standby' %} | |
disabled {% else %} green {% endif %} | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: media_player.turn_on | |
data: {} | |
target: | |
entity_id: media_player.xbox_series_x | |
hold_action: | |
action: call-service | |
service: media_player.turn_off | |
data: {} | |
target: | |
entity_id: media_player.xbox_series_x | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: si:nintendoswitch | |
entity: device_tracker.nintendo_switch | |
icon_color: >- | |
{% if states('device_tracker.nintendo_switch') == 'home' and | |
states('sensor.theater_source') == 'Switch' %} | |
green | |
{% elif states('device_tracker.nintendo_switch') == 'home' and | |
states('sensor.theater_source') != 'Switch' %} | |
blue | |
{% else %} | |
disabled | |
{% endif %} | |
layout: vertical | |
fill_container: true | |
- type: conditional | |
conditions: | |
- entity: media_player.anthem_receiver | |
state_not: "off" | |
card: | |
type: vertical-stack | |
cards: | |
- type: grid | |
square: false | |
columns: 5 | |
cards: | |
# type: custom:mini-media-player | |
# card_mod: | |
# style: | | |
# .mmp-player | |
# .mmp-player__core.flex | |
# .entity__info | |
# .entity__info__name { | |
# color: white; | |
# } | |
# .mmp-player | |
# .mmp-player__core.flex | |
# .entity__info | |
# .entity__info__media { | |
# color: yellow; | |
# } | |
# .mmp-player | |
# .mmp-player__core.flex | |
# mmp-powerstrip$ | |
# mmp-source-menu$ | |
# mmp-dropdown$: | |
# .mmp-dropdown { | |
# color: white; | |
# } | |
# entity: media_player.anthem_receiver | |
# name: Receiver | |
# group: true | |
# hide: | |
# power: true | |
# icon: true | |
# play_pause: true | |
# artwork: none | |
# source: icon | |
# volume_stateless: false | |
# info: short | |
# volume_step: '1' | |
# min_volume: '0' | |
# max_volume: '70' | |
# background: /local/images/remotes/AnthemMRX11408K_Small.png | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: '' | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
- type: custom:mushroom-template-card | |
icon: si:oculus | |
layout: vertical | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.anthem_receiver | |
data: | |
source: Oculus Group | |
icon_color: >- | |
{{ | |
iif(is_state_attr('media_player.anthem_receiver','source','Oculus Group'), | |
'purple', 'disabled') }} | |
- type: custom:mushroom-template-card | |
icon: phu:apple-tv | |
layout: vertical | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.anthem_receiver | |
data: | |
source: Apple TV Primary | |
double_tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.anthem_receiver | |
data: | |
source: Apple TV Group | |
hold_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.anthem_receiver | |
data: | |
source: Apple TV Night | |
icon_color: |- | |
{% if is_state_attr('media_player.anthem_receiver','source','Apple TV Primary') %} | |
blue | |
{% elif is_state_attr('media_player.anthem_receiver','source','Apple TV Group') %} | |
purple | |
{% elif is_state_attr('media_player.anthem_receiver','source','Apple TV Night') %} | |
black | |
{% else %} | |
disabled | |
{% endif %} | |
- type: custom:mushroom-template-card | |
icon: mdi:microsoft-xbox | |
layout: vertical | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.anthem_receiver | |
data: | |
source: Xbox Primary | |
double_tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.anthem_receiver | |
data: | |
source: Xbox Group | |
icon_color: |- | |
{% if is_state_attr('media_player.anthem_receiver','source','Xbox Primary') %} | |
blue | |
{% elif is_state_attr('media_player.anthem_receiver','source','Xbox Group') %} | |
purple | |
{% else %} | |
disabled | |
{% endif %} | |
- type: custom:mushroom-template-card | |
icon: mdi:nintendo-switch | |
layout: vertical | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.anthem_receiver | |
data: | |
source: Switch Primary | |
double_tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.anthem_receiver | |
data: | |
source: Switch Group | |
icon_color: |- | |
{% if is_state_attr('media_player.anthem_receiver','source','Switch Primary') %} | |
blue | |
{% elif is_state_attr('media_player.anthem_receiver','source','Switch Group') %} | |
purple | |
{% else %} | |
disabled | |
{% endif %} | |
# Apple TV Controls and Media Player | |
- type: conditional | |
conditions: | |
- entity: sensor.theater_source | |
state: "Apple TV" | |
- entity: media_player.apple_tv_theater | |
state_not: "off" | |
- entity: media_player.apple_tv_theater | |
state_not: "standby" | |
card: | |
type: vertical-stack | |
cards: | |
- type: grid | |
square: false | |
columns: 5 | |
cards: | |
- type: custom:mushroom-template-card | |
icon: phu:apple-tv | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.apple_tv_theater | |
data: | |
source: TV | |
icon_color: 'null' | |
layout: vertical | |
- type: custom:mushroom-template-card | |
icon: phu:netflix | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.apple_tv_theater | |
data: | |
source: Netflix | |
icon_color: red | |
layout: vertical | |
- type: custom:mushroom-template-card | |
icon: phu:paramount | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.apple_tv_theater | |
data: | |
source: Paramount+ | |
icon_color: blue | |
layout: vertical | |
- type: custom:mushroom-template-card | |
icon: phu:youtube | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.apple_tv_theater | |
data: | |
source: YouTube | |
icon_color: red | |
layout: vertical | |
- type: custom:mushroom-template-card | |
icon: phu:prime-video | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.apple_tv_theater | |
data: | |
source: Prime Video | |
icon_color: cyan | |
layout: vertical | |
- type: grid | |
square: true | |
columns: 5 | |
cards: | |
- type: custom:mushroom-template-card | |
icon: phu:disney-plus | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.apple_tv_theater | |
data: | |
source: Disney+ | |
icon_color: blue | |
layout: vertical | |
- type: custom:mushroom-template-card | |
icon: mdi:hulu | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.apple_tv_theater | |
data: | |
source: Hulu | |
icon_color: green | |
layout: vertical | |
- type: custom:mushroom-template-card | |
icon: phu:hbo-max | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.apple_tv_theater | |
data: | |
source: HBO Max | |
icon_color: purple | |
layout: vertical | |
- type: custom:mushroom-template-card | |
icon: mdi:spotify | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.apple_tv_theater | |
data: | |
source: Spotify | |
icon_color: green | |
layout: vertical | |
- type: custom:mushroom-template-card | |
icon: phu:imac | |
tap_action: | |
action: call-service | |
service: media_player.select_source | |
target: | |
entity_id: media_player.apple_tv_theater | |
data: | |
source: Computers | |
icon_color: orange | |
layout: vertical | |
- type: grid | |
columns: 5 | |
square: true | |
cards: | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:television | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: home | |
target: | |
entity_id: remote.apple_tv_theater | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: '' | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:arrow-up-bold | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: up | |
target: | |
entity_id: remote.apple_tv_theater | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: up | |
target: | |
entity_id: remote.apple_tv_theater | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: '' | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:volume-plus | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.volume_change_incremental | |
data: | |
media_player: media_player.anthem_receiver | |
increment: 0.01 | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
- type: grid | |
columns: 5 | |
square: true | |
cards: | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:account-multiple | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: home_hold | |
target: | |
entity_id: remote.apple_tv_theater | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:arrow-left-bold | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: left | |
target: | |
entity_id: remote.apple_tv_theater | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: left | |
target: | |
entity_id: remote.apple_tv_theater | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:circle | |
icon_color: '' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: select | |
target: | |
entity_id: remote.apple_tv_theater | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: select | |
target: | |
entity_id: remote.apple_tv_theater | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:arrow-right-bold | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: right | |
target: | |
entity_id: remote.apple_tv_theater | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: right | |
target: | |
entity_id: remote.apple_tv_theater | |
# - type: custom:mushroom-template-card | |
# primary: '' | |
# secondary: '' | |
# icon: >- | |
# {{ | |
# iif(is_state_attr('media_player.anthem_receiver','is_volume_muted',true), | |
# 'mdi:volume-off', 'mdi:volume-high') }} | |
# icon_color: >- | |
# {{ | |
# iif(is_state_attr('media_player.anthem_receiver','is_volume_muted',true), | |
# 'red', 'null') }} | |
# layout: vertical | |
# fill_container: true | |
# tap_action: | |
# action: call-service | |
# service: script.mute_toggle | |
# data: | |
# media_player: media_player.anthem_receiver | |
# target: {} | |
# hold_action: | |
# action: none | |
# double_tap_action: | |
# action: none | |
- type: custom:mushroom-template-card | |
icon: >- | |
{{ | |
iif(is_state_attr('media_player.anthem_receiver','is_volume_muted',true), | |
'mdi:volume-off', '') }} | |
icon_color: >- | |
{{ | |
iif(is_state_attr('media_player.anthem_receiver','is_volume_muted',true), | |
'red', 'null') }} | |
primary: >- | |
{{ | |
iif(is_state_attr('media_player.anthem_receiver','is_volume_muted',true), | |
'', (state_attr('media_player.anthem_receiver','volume_level')*100)|round(2) ) }} | |
secondary: '' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.mute_toggle | |
data: | |
media_player: media_player.anthem_receiver | |
target: {} | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
- type: grid | |
columns: 5 | |
square: true | |
cards: | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:arrow-u-left-top | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: menu | |
target: | |
entity_id: remote.apple_tv_theater | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: top_menu | |
target: | |
entity_id: remote.apple_tv_theater | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: 'null' | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:arrow-down-bold | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: down | |
target: | |
entity_id: remote.apple_tv_theater | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: down | |
target: | |
entity_id: remote.apple_tv_theater | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: '' | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:volume-minus | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.volume_change_incremental | |
data: | |
media_player: media_player.anthem_receiver | |
increment: -0.01 | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
- type: grid | |
columns: 6 | |
square: true | |
cards: | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:rewind-60 | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: -60 | |
hold_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: -60 | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:rewind-30 | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: -30 | |
hold_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: -30 | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:rewind-10 | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: -10 | |
hold_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: -10 | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:fast-forward-10 | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: 10 | |
hold_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: 10 | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:fast-forward-30 | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: 30 | |
hold_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: 30 | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:fast-forward-60 | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: 60 | |
hold_action: | |
action: call-service | |
service: script.seek_interval | |
data: | |
media_player: media_player.apple_tv_theater | |
interval: 60 | |
- type: custom:mushroom-media-player-card | |
entity: media_player.anthem_receiver | |
primary_info: none | |
secondary_info: none | |
icon_type: none | |
volume_controls: | |
- volume_mute | |
- volume_set | |
# - type: custom:slider-button-card | |
# entity: media_player.anthem_receiver | |
# slider: | |
# direction: left-right | |
# background: solid | |
# show_track: false | |
# use_percentage_bg_opacity: true | |
# show_name: false | |
# show_state: true | |
# compact: true | |
# icon: | |
# show: false | |
# action_button: | |
# mode: custom | |
# icon: 'null' | |
# show: true | |
# show_spinner: true | |
# tap_action: | |
# action: call-service | |
# service: script.mute_toggle | |
# service_data: | |
# media_player: media_player.anthem_receiver | |
- type: custom:mushroom-media-player-card | |
entity: media_player.apple_tv_theater | |
name: Apple TV | |
layout: vertical | |
fill_container: true | |
icon_type: entity-picture | |
use_media_info: true | |
media_controls: | |
- previous | |
- play_pause_stop | |
- next | |
#Xbox Series X Controls and Media Player | |
- type: conditional | |
conditions: | |
- entity: sensor.theater_source | |
state: "Xbox" | |
- entity: media_player.xbox_series_x | |
state_not: "off" | |
- entity: media_player.xbox_series_x | |
state_not: "standby" | |
card: | |
type: vertical-stack | |
cards: | |
- type: grid | |
columns: 5 | |
square: true | |
cards: | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:view-dashboard-variant | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: media_player.play_media | |
data: | |
entity_id: media_player.xbox_series_x | |
media_content_type: "" | |
media_content_id: "Home" | |
target: | |
entity_id: remote.xbox_series_x | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:alpha-y-circle | |
icon_color: yellow | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: Y | |
target: | |
entity_id: remote.xbox_series_x | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: Y | |
target: | |
entity_id: remote.xbox_series_x | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:arrow-up-bold | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: Up | |
target: | |
entity_id: remote.xbox_series_x | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: Up | |
target: | |
entity_id: remote.xbox_series_x | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:alpha-b-circle | |
icon_color: red | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: B | |
target: | |
entity_id: remote.xbox_series_x | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: B | |
target: | |
entity_id: remote.xbox_series_x | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:volume-plus | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.volume_change_incremental | |
data: | |
media_player: media_player.anthem_receiver | |
increment: 0.01 | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
- type: grid | |
columns: 5 | |
square: true | |
cards: | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: '' | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:arrow-left-bold | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: Left | |
target: | |
entity_id: remote.xbox_series_x | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: Left | |
target: | |
entity_id: remote.xbox_series_x | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:circle | |
icon_color: '' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: A | |
target: | |
entity_id: remote.xbox_series_x | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: A | |
target: | |
entity_id: remote.xbox_series_x | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:arrow-right-bold | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: Right | |
target: | |
entity_id: remote.xbox_series_x | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: Right | |
target: | |
entity_id: remote.xbox_series_x | |
- type: custom:mushroom-template-card | |
icon: >- | |
{{ | |
iif(is_state_attr('media_player.anthem_receiver','is_volume_muted',true), | |
'mdi:volume-off', '') }} | |
icon_color: >- | |
{{ | |
iif(is_state_attr('media_player.anthem_receiver','is_volume_muted',true), | |
'red', 'null') }} | |
primary: >- | |
{{ | |
iif(is_state_attr('media_player.anthem_receiver','is_volume_muted',true), | |
'', (state_attr('media_player.anthem_receiver','volume_level')*100)|round(2) ) }} | |
secondary: '' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.mute_toggle | |
data: | |
media_player: media_player.anthem_receiver | |
target: {} | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
- type: grid | |
columns: 5 | |
square: true | |
cards: | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: '' | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:alpha-x-circle | |
icon_color: blue | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: X | |
target: | |
entity_id: remote.xbox_series_x | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: X | |
target: | |
entity_id: remote.xbox_series_x | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:arrow-down-bold | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: Down | |
target: | |
entity_id: remote.xbox_series_x | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: Down | |
target: | |
entity_id: remote.xbox_series_x | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:alpha-a-circle | |
icon_color: green | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: A | |
target: | |
entity_id: remote.xbox_series_x | |
hold_action: | |
action: call-service | |
service: remote.send_command | |
data: | |
command: A | |
target: | |
entity_id: remote.xbox_series_x | |
- type: custom:mushroom-template-card | |
primary: '' | |
secondary: '' | |
icon: mdi:volume-minus | |
icon_color: 'null' | |
layout: vertical | |
fill_container: true | |
tap_action: | |
action: call-service | |
service: script.volume_change_incremental | |
data: | |
media_player: media_player.anthem_receiver | |
increment: -0.01 | |
hold_action: | |
action: none | |
double_tap_action: | |
action: none | |
- type: custom:mushroom-media-player-card | |
entity: media_player.anthem_receiver | |
primary_info: none | |
secondary_info: none | |
icon_type: none | |
volume_controls: | |
- volume_mute | |
- volume_set | |
# - type: custom:slider-button-card | |
# entity: media_player.anthem_receiver | |
# slider: | |
# direction: left-right | |
# background: solid | |
# show_track: false | |
# use_percentage_bg_opacity: true | |
# show_name: false | |
# show_state: true | |
# compact: true | |
# icon: | |
# show: false | |
# action_button: | |
# mode: custom | |
# icon: 'null' | |
# show: true | |
# show_spinner: true | |
# tap_action: | |
# action: call-service | |
# service: script.mute_toggle | |
# service_data: | |
# media_player: media_player.anthem_receiver | |
- type: custom:mushroom-media-player-card | |
entity: media_player.xbox_series_x | |
name: Xbox Series X | |
layout: vertical | |
fill_container: true | |
icon_type: entity-picture | |
use_media_info: true | |
media_controls: | |
- previous | |
- play_pause_stop | |
- next | |
- type: custom:mushroom-entity-card | |
entity: sensor.player1_status | |
fill_container: true | |
primary_info: state | |
secondary_info: last-updated | |
icon_type: entity-picture | |
- type: custom:mushroom-entity-card | |
entity: sensor.player2_status | |
fill_container: true | |
primary_info: state | |
secondary_info: last-updated | |
icon_type: entity-picture | |
- type: custom:mushroom-entity-card | |
entity: sensor.player3_status | |
fill_container: true | |
primary_info: state | |
secondary_info: last-updated | |
icon_type: entity-picture | |
- type: custom:mushroom-entity-card | |
entity: sensor.player4_status | |
fill_container: true | |
primary_info: state | |
secondary_info: last-updated | |
icon_type: entity-picture | |
- type: vertical-stack | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: custom:mushroom-light-card | |
entity: light.theater_downlights | |
name: Theater | |
primary_info: name | |
secondary_info: state | |
show_brightness_control: true | |
- type: custom:mushroom-light-card | |
entity: light.makerspace | |
name: MakerSpace | |
primary_info: name | |
secondary_info: state | |
use_light_color: true | |
show_brightness_control: true | |
tap_action: | |
action: toggle | |
hold_action: | |
action: fire-dom-event | |
browser_mod: | |
service: browser_mod.popup | |
data: | |
title: MakerSpace | |
size: wide | |
content: | |
type: custom:stack-in-card | |
mode: vertical | |
cards: | |
- type: custom:mushroom-light-card | |
entity: light.makerspace | |
primary_info: state | |
secondary_info: last-changed | |
show_brightness_control: true | |
use_light_color: true | |
show_color_temp_control: true | |
show_color_control: true | |
- type: horizontal-stack | |
cards: | |
- type: custom:mushroom-light-card | |
entity: light.makerspace_chandelier | |
name: Chandelier | |
primary_info: name | |
secondary_info: state | |
show_brightness_control: true | |
- type: custom:mushroom-light-card | |
entity: light.glide_hexa_pro | |
name: Glide Hexa Pro | |
primary_info: name | |
secondary_info: state | |
show_brightness_control: true | |
use_light_color: true | |
show_color_temp_control: true | |
show_color_control: true | |
# HVAC | |
- type: custom:stack-in-card | |
mode: vertical | |
cards: !include ../hvac/upstairs/03_hvac_theater.yaml | |
# Cameras | |
- type: picture-entity | |
entity: camera.g4_doorbell_pro_high | |
camera_image: camera.g4_doorbell_pro_high | |
camera_view: auto | |
show_state: false | |
show_name: false | |
name: Front Door | |
- type: picture-entity | |
entity: camera.g4_doorbell_pro_package_camera | |
camera_image: camera.g4_doorbell_pro_package_camera | |
camera_view: auto | |
show_state: false | |
show_name: false | |
name: Package | |
- title: Echo Dot Theater | |
type: custom:mini-media-player | |
entity: media_player.echo_theater | |
hide: | |
power: true | |
icon: true | |
source: true | |
artwork: full-cover | |
info: scroll | |
icon: mdi:spotify | |
tts: | |
platform: alexa | |
entity_id: media_player.echo_theater | |
source: icon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment