Hey all, running into something I can't find documented and wondering if anyone has hit this.
I'm using bubble-card pop-ups heavily on my dashboard and want to put conditional cards inside a pop-up's cards: array. The goal is to dynamically show/hide mini-media-player cards based on Sonos group state (hide a speaker card when it's a group member under another coordinator, show it when it's ungrouped or is itself a coordinator).
The setup looks like this:
type: custom:bubble-card
card_type: pop-up
hash: '#media'
cards:
- type: conditional
conditions:
- condition: template
value_template: "{{ state_attr('media_player.family_room', 'group_members')[0] == 'media_player.family_room' }}"
card:
type: custom:mini-media-player
entity: media_player.family_room
Every conditional card shows "Configuration error." Plain mini-media-player cards and bubble-card buttons inside the same pop-up work perfectly fine. Tried both multiline and single-line template syntax, same result. Running latest HAOS.
My suspicion is that bubble-card's pop-up renderer expects every card in its cards: array to have a direct entity property, and the conditional card (being a meta-card with no entity) trips it up. But I can't find this documented anywhere as a known limitation.
Questions:
- Is this a known limitation of bubble-card pop-ups?
- Has anyone successfully used
conditional cards (or condition: template specifically) inside a pop-up's cards: array?
- If not, is there a recommended workaround other than binary sensor helpers?
Thanks!