New Button Card - Change Icon Based on State?

I’ve been trying to use the new button card - the one that has been around forever custom:button-card has problems on olde3r browsers and won’t load for some reason.

Anyways, this new button card that comes with Home Assistant - is there any way to change the icon based on the state of the entity? I have a garage door that I would like to change it to the open garage door icon when it’s open and the closed icon when it’s closed. Anyone have any info on this? Thanks in advance!

New button card???

There is a button card, but I do t think it’s new. Do you mean this or something else?

Well, maybe it’s not new, but it’s new to me. Before there wasn’t a good button card and you had to use the custom button card from HACS. That one doesn’t load on older browsers (old iPad Gen 4) so it has been a problem for me for a long time. I saw that HA has a standard button card now (not sure when they added it) and I want to change the icon for it based on the state of the entity. How would I go about doing that?

I don’t think you can template the button card, hence custom:button-card’s popularity; I use it in every view I have (works fine in my iPad Air).

For some reason, it doesn’t work on older iPads. It says custom:button-card not found. It’s like there is a path issue or something. I’ve tried to figure this out for a really long time so I’m looking for something else now. I wish I could just make it work but it doesn’t. It works fine on newer machines so I’m not sure why this is happening.

I have a garage door that I would like to change it to the open garage door icon when it’s open and the closed icon when it’s closed.

A binary_sensor with device_class garage_door, or a cover with device_class: garage already do exactly this. Any reason you think you need to customize it?

I didn’t know. Do I have to set my device to have that class manually? Then it would operate as I was suggesting?