attribute isnt mentioned in Conditional card - Home Assistant
open FR for this: Add attribute condition (for visibility and conditional cards) · home-assistant/frontend · Discussion #21550 · GitHub
so we can set visibility like:
visibility:
- condition: state
entity: climate.thermostat
attribute: hvac_mode
state: heat
pszypowicz
(Przemysław Szypowicz)
2
Same for ‘sun.sun’ and ‘rising’ attribute.
Today I am using helper template to generate new entity as a workaround.
1 Like
exactly the entity I also use (among others…) for conditions…
check
Very frustrating we can’t do this
1 Like
is creating a template sensor with the attribute value the only way to bypass this?
drunkly
(Drunkly)
6
I don’t know if this is the better way but my workaround was to use card_mod and css styles:
card_mod:
style:
ha-card{
display:{% if state_attr(‘climate.fujitsu’,‘temperature’) == 24 %}block{% else %}none{% endif %};
}
Oh no, I needed this to hide some controls when a fan is on special state. so sad it is not possible…
since this section in the community is officially dead, Ive opened this allow visibility condition on attribute · home-assistant · Discussion #668 · GitHub in the new discussion section in Github
please join if you have additional +1’s or details