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:mini-media-player
style: |
:host {
--mini-media-player-name-font-weight: 500;
--mini-media-player-artwork-opacity: 1;
--mini-media-player-media-cover-info-color: white;
--mini-media-player-overlay-base-color: #2196f3;
}
entity: media_player.garage
info: scroll
artwork: cover
volume_stateless: false
toggle_power: true
hide:
runtime_remaining: false
runtime: false
info: false
power: true
power_state: false
progress: false
source: false
play_stop: true
volume_level: false
controls: true
volume: true
icon: true
name: false
- type: conditional
conditions:
- entity: media_player.kuche
state_not: 'off'
card:
type: custom:mini-media-player
style: |
:host {
--mini-media-player-name-font-weight: 500;
--mini-media-player-artwork-opacity: 1;
--mini-media-player-media-cover-info-color: white;
--mini-media-player-overlay-base-color: #2196f3;
}
entity: media_player.kuche
info: scroll
artwork: cover
volume_stateless: false
toggle_power: true
hide:
runtime_remaining: false
runtime: false
info: false
power: true
power_state: false
progress: false
source: false
play_stop: true
volume_level: false
controls: true
volume: true
icon: true
name: false
- type: conditional
conditions:
- entity: media_player.tv_samsung_6_series_55
state: 'on'
card:
type: custom:mini-media-player
style: |
:host {
--mini-media-player-name-font-weight: 500;
--mini-media-player-artwork-opacity: 1;
--mini-media-player-media-cover-info-color: white;
--mini-media-player-overlay-base-color: #2196f3;
}
entity: media_player.tv_samsung_6_series_55
info: scroll
artwork: cover
volume_stateless: false
toggle_power: true
hide:
runtime_remaining: false
runtime: false
info: false
power: true
power_state: false
progress: false
source: false
play_stop: true
volume_level: false
controls: true
volume: true
icon: true
name: false
- type: conditional
conditions:
- entity: media_player.laptop
state: playing
card:
type: custom:mini-media-player
style: |
:host {
--mini-media-player-name-font-weight: 500;
--mini-media-player-artwork-opacity: 1;
--mini-media-player-media-cover-info-color: white;
--mini-media-player-overlay-base-color: #2196f3;
}
entity: media_player.laptop
info: scroll
artwork: cover
volume_stateless: false
toggle_power: true
hide:
runtime_remaining: false
runtime: false
info: false
power: true
power_state: false
progress: false
source: false
play_stop: true
volume_level: false
controls: true
volume: true
icon: true
name: false
- square: false
columns: 4
type: grid
cards:
- type: custom:mushroom-template-card
style: |
:host {
--primary-text-color:
{% if is_state('input_select.lms_player', 'garage')%} #2196f3
{% else %} #9e9e9e
{% endif %}
}
secondary: ''
icon: mdi:radio
entity: media_player.garage
primary: Garage
multiline_secondary: true
icon_color: >-
{{ is_state("input_select.lms_player", "garage") | iif("blue",
"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
- type: custom:mushroom-template-card
style: |
:host {
--primary-text-color:
{% if is_state('input_select.lms_player', 'kuche')%} #2196f3
{% else %} #9e9e9e
{% endif %}
}
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("blue",
"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
- type: custom:mushroom-template-card
style: |
:host {
--primary-text-color:
{% if is_state('input_select.lms_player', 'tv_samsung_6_series_55')%} #2196f3
{% else %} #9e9e9e
{% endif %}
}
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("blue", "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
- type: custom:mushroom-template-card
style: |
:host {
--primary-text-color:
{% if is_state('input_select.lms_player', 'laptop')%} #2196f3
{% else %} #9e9e9e
{% endif %}
}
secondary: ''
icon: mdi:laptop
entity: media_player.laptop
primary: Laptop
multiline_secondary: true
icon_color: >-
{{ is_state("input_select.lms_player", "laptop") | iif("blue",
"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
- type: entities
entities:
- type: custom:fold-entity-row
padding: 0
style:
ha-icon:
$: |
ha-svg-icon {
color: #ff5722;
}
head:
type: custom:button-card
name: Romania Radiostation
tap_action:
action: none
styles:
card:
- margin-bottom: 0px
- padding-bottom: 0px
- padding-top: 0px
- box-shadow: none
name:
- justify-self: start
- padding-left: 8px
- font-size: 15px
- font-weight: bold
- color: '#795548'
entities:
- type: custom:mushroom-chips-card
card_mod:
style: |
ha-card {
--chip-border-radius: 12px;
--primary-text-color: grey;
}
chips:
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station", "ProFM")
| iif("blue", "disabled") }}
content: 'Pro FM '
icon: >-
{{ is_state("input_select.chromecast_radio_station", "ProFM")
| iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: ProFM
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station", "KissFM")
| iif("blue", "disabled") }}
content: Kiss FM
icon: >-
{{ is_state("input_select.chromecast_radio_station", "KissFM")
| iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: KissFM
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"EuropaFM") | iif("blue", "disabled") }}
content: Europa FM
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"EuropaFM") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: EuropaFM
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"RadioZu") | iif("blue", "disabled") }}
content: RadioZu
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"RadioZu") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: RadioZu
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station", "DigiFM")
| iif("blue", "disabled") }}
content: Digi FM
icon: >-
{{ is_state("input_select.chromecast_radio_station", "DigiFM")
| iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: DigiFM
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"MagicFM") | iif("blue", "disabled") }}
content: Magic FM
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"MagicFM") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: MagicFM
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"VirginRadio") | iif("blue", "disabled") }}
content: Virgin Radio
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"VirginRadio") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: VirginRadio
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"RadioMedias") | iif("blue", "disabled") }}
content: Radio Medias
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"RadioMedias") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: RadioMedias
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"RadioPetrecere") | iif("blue", "disabled") }}
content: Radio Petrecere
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"RadioPetrecere") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: RadioPetrecere
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"NationalFM") | iif("blue", "disabled") }}
content: National FM
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"NationalFM") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: NationalFM
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"WefunkRadio") | iif("blue", "disabled") }}
content: WeFunk Radio
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"WefunkRadio") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: WefunkRadio
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"FunkyRadio") | iif("blue", "disabled") }}
content: Funky Radio
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"FunkyRadio") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: FunkyRadio
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"RadioFunkyThrills") | iif("blue", "disabled") }}
content: Radio Funky Thrills
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"RadioFunkyThrills") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: RadioFunkyThrills
target:
entity_id: input_select.chromecast_radio_station
alignment: null
- type: entities
entities:
- type: custom:fold-entity-row
padding: 0
style:
ha-icon:
$: |
ha-svg-icon {
color: #ff5722;
}
head:
type: custom:button-card
name: Lokalsender
tap_action:
action: none
styles:
card:
- margin-bottom: 0px
- padding-bottom: 0px
- padding-top: 0px
- box-shadow: none
name:
- justify-self: start
- padding-left: 8px
- font-size: 15px
- font-weight: bold
- color: '#795548'
entities:
- type: custom:mushroom-chips-card
card_mod:
style: |
ha-card {
--chip-border-radius: 12px;
--primary-text-color: grey;
}
chips:
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"Bayern1") | iif("blue", "disabled") }}
content: Bayern1
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"Bayern1") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: Bayern1
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"Bayern3") | iif("blue", "disabled") }}
content: Bayern3
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"Bayern3") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: Bayern3
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station",
"Charivari") | iif("blue", "disabled") }}
content: Charivari
icon: >-
{{ is_state("input_select.chromecast_radio_station",
"Charivari") | iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: Charivari
target:
entity_id: input_select.chromecast_radio_station
- type: template
entity: input_select.chromecast_radio_station
icon_color: >-
{{ is_state("input_select.chromecast_radio_station", "Energy")
| iif("blue", "disabled") }}
content: Energy
icon: >-
{{ is_state("input_select.chromecast_radio_station", "Energy")
| iif("mdi:checkbox-blank-circle",
"mdi:checkbox-blank-circle-outline") }}
tap_action:
action: call-service
service: input_select.select_option
service_data:
option: Energy
target:
entity_id: input_select.chromecast_radio_station
- type: custom:mushroom-chips-card
chips:
- type: action
icon_color: blue
icon: mdi:play
tap_action:
action: call-service
service: script.lms
service_data: {}
target: {}
- type: action
icon_color: deep-orange
icon: mdi:stop
tap_action:
action: call-service
service: script.lms_stop
service_data: {}
target: {}
- type: action
tap_action:
action: call-service
service: input_number.decrement
service_data: {}
target:
entity_id: input_number.lms_volume
icon: mdi:volume-minus
icon_color: grey
- type: action
icon: mdi:volume-plus
tap_action:
action: call-service
service: input_number.increment
service_data: {}
target:
entity_id: input_number.lms_volume
icon_color: grey