Display different views on same card

I have a custom:auto-entities card displaying all lights. Is there a way to change which lights are being shown (“on”/“off”/“all”) by an action on the UI ? I was thinking about something like a 3 positions swith as a header ?
Thank you

You could use conditional cards for that.

Thanks. I will try this, I was hoping to find a way by changing the state condition for lights used in the auto-entities but as long as it works … :wink:

Never tried that, but maybe.
There is an example on the GitHub page for something that might do it.
It is the last one.

I configured the conditional cards last night and it is the perfect solution. Thanks again for your support.