Chabge icon on state/toggle change entity list

Is there any way to change the icon on an entity card when a switch is off…

I have HACS installed as I imagine it must be doable via some sort of custom js.