Is it still true that you cannot have a conditional card that references a entity’s attribute? Below is what I was attempting to do in the UI on a card.
I cannot find much of anything within the past year on this subject…
You may want to take a look at the template state-switch by Thomasloven available in HACS Frontend to conditionally show card(s) using attribute states.
Yes, use your value_template to define a state and each state displays a different card.
Using the template directly in the entity parameter, for example:
type: custom:state-switch
entity: "{% if is_state_attr('cover.bedroom_blind_right', 'current_position', 0) %} open {% else %} close {% endif %}"
states:
open:
type: horizontal-stack
title: Common Actions
cards:
....
close:
type: ....