Configurable state_color state especially for covers

I would like to control under which state the state_color should take effect. Currently for my covers when I enable state_color:true in my Lovelace card, it colors my cover icon when it’s open. I would like the inverse effect since open is the default state in my house.

Completely agree! Some thing for binary sensors with device class connectivity. Default is normally connected. I would like to get attention if the device is not connected (which normally means that there is a problem).