I can use {% if is_state_attr('media_player.family_room_recv', 'source', 'Bluray') %}
with card_mod to set the color of icons based upon the selected source of my receiver. But I would like to set the card visibility (hide/show) based off selected source as well. I’m not sure how to access and check the value of media_player.family_room_recv source: Bluray in lovelace YAML
Attributes in visibility conditions not supported.
Create a template sensor & use it.
I ended up creating a helper, and setting the helper value = selected source with an automation when source changes… clunky but works