Guys, is there a simple way to make conditional area using wildcards? I would like to create a conditional card that shows if any of my 50+ battery powered devices are less than 20% or an other example if any of my 20+ contact sensors are open. I understand that i can do one "section" for each device, but that seems hopeless to maintain over time. An option using wildcard entity name or entity type or something? i do not see anything like this in documentation but i assume some of you clever people have solved this? thanks! Ideally only the device that needs attention is showing up 🙂
#Conditional using wildcards/list or something?
1 messages · Page 1 of 1 (latest)
for the contact sensors you can make a binary sensor group helper
for the batteries you could install "Battery Notes" from HACS and this would give you a "battery low" sensor for each battery which you could then put into a binary sensor group helper
Ok thanks. will the helper work? or will it show me all contact sensors even if only one is "open"?
it depends how you have it set up, i initally read that you wanted to show a card if any sensor was open. but now i realise that may not have been what you meant
you may want to look at "auto-entities" on hacs i think that allows you to put entities on a card with filter of when to show them
another method i think i saw someone do was a card that showed entities with a label then using "spook" to set the lablels
not sure which would work best but a few ideas anyway
thanks! ill look into it, cant be the first who like to see only "stuff out of order", i can do one per entity but that would meen 70+ conditional cards and will be a mess 😄
I don’t use it myself but I think about the HACS auto-entities. Is that a possible solution?