Part 1
type: custom:stack-in-card
mode: vertical
keep:
box_shadow: true
border_radius: true
margin: true
outer_padding: true
background: true
cards:
- type: vertical-stack
cards:
- type: conditional
conditions:
- entity: media_player.garage
state_not: 'off'
card:
type: custom:mushroom-media-player-card
use_media_info: true
show_volume_level: true
tap_action:
action: more-info
entity: media_player.garage
icon: mdi:garage-alert-variant
card_mod:
style: |
ha-card {
{% if not is_state(config.entity, 'off') %}
background-image: url( '{{ state_attr( config.entity, "entity_picture" ) }}' );
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
background-blend-mode: overlay;
background-color: rgba(var(--rgb-card-background-color),0.8);
{% endif %}
}
- type: conditional
conditions:
- entity: media_player.kuche
state_not: 'off'
card:
type: custom:mushroom-media-player-card
use_media_info: true
show_volume_level: true
tap_action:
action: more-info
entity: media_player.kuche
icon: mdi:silverware-fork-knife
card_mod:
style: |
ha-card {
{% if not is_state(config.entity, 'off') %}
background-image: url( '{{ state_attr( config.entity, "entity_picture" ) }}' );
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
background-blend-mode: overlay;
background-color: rgba(var(--rgb-card-background-color),0.8);
{% endif %}
}
- type: conditional
conditions:
- entity: media_player.tv_samsung_6_series_55
state: 'on'
card:
type: custom:mushroom-media-player-card
entity: media_player.tv_samsung_6_series_55
use_media_info: true
show_volume_level: true
tap_action:
action: more-info
icon: mdi:television-classic
card_mod:
style: |
ha-card {
{% if not is_state(config.entity, 'off') %}
background-image: url( '{{ state_attr( config.entity, "entity_picture" ) }}' );
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
background-blend-mode: overlay;
background-color: rgba(var(--rgb-card-background-color),0.8);
{% endif %}
}
- type: conditional
conditions:
- entity: media_player.laptop
state: playing
- entity: sensor.spotify_source
state_not: Laptop
card:
type: custom:mushroom-media-player-card
entity: media_player.laptop
use_media_info: true
show_volume_level: true
tap_action:
action: more-info
fill_container: false
volume_controls: []
media_controls: []
collapsible_controls: false
name: Laptop
card_mod:
style: |
ha-card {
{% if not is_state(config.entity, 'off') %}
background-image: url( '{{ state_attr( config.entity, "entity_picture" ) }}' );
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
background-blend-mode: overlay;
background-color: rgba(var(--rgb-card-background-color),0.8);
{% endif %}
}
- type: conditional
conditions:
- entity: sensor.spotify_source
state: Garage
card:
type: custom:mushroom-media-player-card
use_media_info: true
show_volume_level: true
tap_action:
action: more-info
icon: mdi:garage-alert-variant
entity: media_player.spotify
media_controls:
- previous
- play_pause_stop
- next
name: Garage
layout: horizontal
card_mod:
style: |
ha-card {
{% if not is_state(config.entity, 'off') %}
background-image: url( '{{ state_attr( config.entity, "entity_picture" ) }}' );
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
background-blend-mode: overlay;
background-color: rgba(var(--rgb-card-background-color),0.8);
{% endif %}
}
- type: conditional
conditions:
- entity: sensor.spotify_source
state: KĂŒche
card:
type: custom:mushroom-media-player-card
use_media_info: true
show_volume_level: true
tap_action:
action: more-info
icon: mdi:silverware-fork-knife
entity: media_player.spotify
media_controls:
- previous
- play_pause_stop
- next
name: KĂŒche
layout: horizontal
card_mod:
style: |
ha-card {
{% if not is_state(config.entity, 'off') %}
background-image: url( '{{ state_attr( config.entity, "entity_picture" ) }}' );
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
background-blend-mode: overlay;
background-color: rgba(var(--rgb-card-background-color),0.8);
{% endif %}
}
- type: conditional
conditions:
- entity: sensor.spotify_source
state: '[TV] Samsung 6 Series (55)'
card:
type: custom:mushroom-media-player-card
use_media_info: true
show_volume_level: true
tap_action:
action: more-info
icon: mdi:television-classic
entity: media_player.spotify
media_controls:
- previous
- play_pause_stop
- next
name: Samsung TV
layout: horizontal
card_mod:
style: |
ha-card {
{% if not is_state(config.entity, 'off') %}
background-image: url( '{{ state_attr( config.entity, "entity_picture" ) }}' );
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
background-blend-mode: overlay;
background-color: rgba(var(--rgb-card-background-color),0.8);
{% endif %}
}
- type: conditional
conditions:
- entity: sensor.spotify_source
state: S20 FE
card:
type: custom:mushroom-media-player-card
use_media_info: true
show_volume_level: true
tap_action:
action: more-info
icon: mdi:cellphone
entity: media_player.spotify
media_controls:
- previous
- play_pause_stop
- next
name: Cata Smartphone
layout: horizontal
card_mod:
style: |
ha-card {
{% if not is_state(config.entity, 'off') %}
background-image: url( '{{ state_attr( config.entity, "entity_picture" ) }}' );
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
background-blend-mode: overlay;
background-color: rgba(var(--rgb-card-background-color),0.8);
{% endif %}
}
- type: conditional
conditions:
- entity: sensor.spotify_source
state: Laptop
card:
type: custom:mushroom-media-player-card
use_media_info: true
show_volume_level: true
tap_action:
action: more-info
icon: mdi:laptop
entity: media_player.spotify
media_controls:
- previous
- play_pause_stop
- next
name: Laptop
layout: horizontal
fill_container: false
volume_controls:
- volume_buttons
card_mod:
style: |
ha-card {
{% if not is_state(config.entity, 'off') %}
background-image: url( '{{ state_attr( config.entity, "entity_picture" ) }}' );
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
background-blend-mode: overlay;
background-color: rgba(var(--rgb-card-background-color),0.8);
{% endif %}
}
- square: false
columns: 4
type: grid
cards:
- type: custom:mushroom-template-card
secondary: ''
icon: mdi:radio
entity: media_player.garage
primary: Garage
multiline_secondary: true
icon_color: >-
{{ is_state("input_select.lms_player", "garage") | iif("orange",
"disabled") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: garage
target:
entity_id: input_select.lms_player
fill_container: true
hold_action:
action: more-info
layout: vertical
card_mod:
style: |
:host {
--primary-text-color:
{% if is_state('input_select.lms_player', 'garage')%} rgb(var(--rgb-indigo))
{% else %} rgb(var(--rgb-disabled))
{% endif %}
}
ha-card {
{% if is_state('input_select.lms_player', 'garage') %}
background: rgb(var(--rgb-indigo), 0.2);
{% endif %}
margin-left: auto;
margin-right: auto;
width: 70px;
border-radius: 30px;
--card-primary-font-size: 13px;
--card-secondary-font-size:
}
- type: custom:mushroom-template-card
secondary: ''
icon: mdi:silverware-fork-knife
entity: media_player.kuche
primary: KĂŒche
multiline_secondary: true
icon_color: >-
{{ is_state("input_select.lms_player", "kuche") | iif("orange",
"disabled") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: kuche
target:
entity_id: input_select.lms_player
fill_container: true
layout: vertical
hold_action:
action: more-info
card_mod:
style: |
:host {
--primary-text-color:
{% if is_state('input_select.lms_player', 'kuche')%} rgb(var(--rgb-indigo))
{% else %} rgb(var(--rgb-disabled))
{% endif %}
}
ha-card {
{% if is_state('input_select.lms_player', 'kuche') %}
background: rgb(var(--rgb-indigo), 0.2);
{% endif %}
margin-left: auto;
margin-right: auto;
width: 70px;
border-radius: 30px;
--card-primary-font-size: 13px;
--card-secondary-font-size:
}
- type: custom:mushroom-template-card
secondary: ''
icon: mdi:television-classic
entity: media_player.tv_samsung_6_series_55_3
multiline_secondary: true
icon_color: >-
{{ is_state("input_select.lms_player", "tv_samsung_6_series_55") |
iif("orange", "disabled") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: tv_samsung_6_series_55
target:
entity_id: input_select.lms_player
fill_container: true
layout: vertical
hold_action:
action: more-info
primary: TV
card_mod:
style: |
:host {
--primary-text-color:
{% if is_state('input_select.lms_player', 'tv_samsung_6_series_55')%} rgb(var(--rgb-indigo))
{% else %} rgb(var(--rgb-disabled))
{% endif %}
}
ha-card {
{% if is_state('input_select.lms_player', 'tv_samsung_6_series_55') %}
background: rgb(var(--rgb-indigo), 0.2);
{% endif %}
margin-left: auto;
margin-right: auto;
width: 70px;
border-radius: 30px;
--card-primary-font-size: 13px;
--card-secondary-font-size:
}
- type: custom:mushroom-template-card
secondary: ''
icon: mdi:laptop
entity: media_player.laptop
primary: Laptop
multiline_secondary: true
icon_color: >-
{{ is_state("input_select.lms_player", "laptop") | iif("orange",
"disabled") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: laptop
target:
entity_id: input_select.lms_player
fill_container: true
layout: vertical
hold_action:
action: more-info
card_mod:
style: |
:host {
--primary-text-color:
{% if is_state('input_select.lms_player', 'laptop')%} rgb(var(--rgb-indigo))
{% else %} rgb(var(--rgb-disabled))
{% endif %}
}
ha-card {
{% if is_state('input_select.lms_player', 'laptop') %}
background: rgb(var(--rgb-indigo), 0.2);
{% endif %}
margin-left: auto;
margin-right: auto;
width: 70px;
border-radius: 30px;
--card-primary-font-size: 13px;
--card-secondary-font-size:
}