Open kbrown01 opened 1 year ago
I hope this can be added soon (given there is an open PR for it) 😄 For me it would be very useful.
Just chipping in to say this would complete my mushroom load-out, hope it gets covered soon!
Just FYI, I did mine like this using a layout card with mushroom media player and mushroom select.
- type: custom:auto-entities
card:
type: grid
columns: 1
show_header_toggle: false
state_color: true
square: false
title: Music Zones
card_param: cards
filter:
template: >
{% for MEDIAPLAYER in states.media_player |
selectattr("entity_id","in",integration_entities("xantech")) -%}
{% set SELECTZONE = "input_select.dax_source_" + (MEDIAPLAYER.entity_id).split("xantech8_")[1]
-%}
{% if MEDIAPLAYER.entity_id != "media_player.xantech8_xantech_house_audio"
-%}
{{
{
'type': 'custom:layout-card',
'layout_type': 'custom:grid-layout',
'layout': {
'max_cols': 3,
'grid-template-columns': 'auto 150px'
},
'cards': [
{
'type': 'custom:mushroom-media-player-card',
"tap_action": {
"action": "call-service",
"service": "media_player.toggle",
"target": {"entity_id": MEDIAPLAYER.entity_id}
},
'entity': MEDIAPLAYER.entity_id,
'layout': 'horizontal',
'fill-container': true,
'show_volume_level': true,
'collapsible_controls': false,
'use_media_info': true,
'volume_controls': ['volume_set']
},
{
"type": "custom:mushroom-select-card",
"entity": SELECTZONE,
"name": "Set Zone Sources",
"layout": "horizontal",
"icon_type": "none",
"primary_info": "none",
"secondary_info": "none",
}
]}
}},
{%- endif %}
{%- endfor %}
Works quite well.
Requirements
Is your feature request related to a problem?
Mini Media player does it right, Mushrrom lacks one key component ... selecting the source
Describe the solution you'd like
Now we have a mushroom select card (great!) how about adding similar functionality to the mushroom media card?
Describe alternatives you've considered
No response
Additional context
No response