How to show different icons on same card based on state

You have to install the custom:button-card before you can use it. The simplest way is using HACS, here is the tutorial how to:

(Sooner or later you will need HACS so it’s a good time to begin now)
Once installed you can search in HACS for button card and install it right with a few clicks.

You can also install it manualy, here is described how to:

1 Like