Toggle Button Control Row Plugin

no sorry the card doesn’t accept templates. And I really don’t think it ever will at least on my end.

But there might be some custom plugins that might do it.

Maybe 📝 100% Templatable Lovelace Configurations

Or https://github.com/PiotrMachowski/Home-Assistant-Lovelace-HTML-Jinja2-Template-card

Otherwise, my best advice is to look thru HACS to see if something there might work.

I’ve never tried to use anything like those in my cards so I’m not sure if they would work or not.