Add attribute condition (for visibility and conditional cards) #21550
Replies: 6 comments 3 replies
-
This certainly seems an omission of documented functionality that would be very useful if implemented. As a workaround, I've created a template sensor but that is not particularly (new) user friendly! Edit: Would also like to add 'Badges' to the list as that is what I'm trying to hide/show. |
Beta Was this translation helpful? Give feedback.
-
Ooh, that's why this isn't working? For me for example it's a button to open all blinds. It should only be visible if any one of the blinds isn't completely open (so attribute current_state below 100). |
Beta Was this translation helpful? Give feedback.
-
I also agree with this request. |
Beta Was this translation helpful? Give feedback.
-
This would be massively useful I have a Lovelace view for every room and am reusing the same YAML for each room.
With the implementation of attributes access in conditions I could simple have one template sensor that stores all the required data after startup
|
Beta Was this translation helpful? Give feedback.
-
In general the maintainers have decided that they are slowly moving away from attributes and new UI features related to attributes tend to get denied. Case in point: |
Beta Was this translation helpful? Give feedback.
-
This would be very useful. I am using Chore Helper which generates sensors that can be 'completed' but the completed state is an attribute. So it would be very helpful to have the attribute as a visibility condition. It's all very well to say that developers are moving away from attributes. But for one as far as I can tell they are not and for another all the historical integrations people have set up do and will continue to use attributes. |
Beta Was this translation helpful? Give feedback.
-
please consider adding a condition like
or
from the automation condition:
and
maybe this would be an alternative syntax if the 'state' for the attribute would be confusing:
so we can directly conditionalize based on an entity's attribute and not have to create template entity first as an intermediary.
not sure which syntax would be best, considering the other reserved words in HA, and also comparing to https://www.home-assistant.io/docs/automation/trigger/#triggering-on-attribute-changes
Thanks for considering
Beta Was this translation helpful? Give feedback.
All reactions