Filtering from a sensor that outputs a list

you could use a template sensor Template - Home Assistant
with a template like this:

or you try a custom card: Lovelace: Attributes card / entity row