Invert status icon lovelace

Hi,
I have an expandable sun screen at the rear window, somfy and working perfect!
In the dashboard I have an icon which changes colour when on. However when the screen is up (all the way in) which Ibexpectbto be OFF it shows as “on” (bright yellow) and when it is down (which I expect to be ON) it shows off/grey. Searching did not lead me to a clue to how to invert only the icon state. Do smart people have a suggestion in this?
Below is the “false on” state:

The easiest way - use card-mod to set colors manually.

Will play with that, thanks!
(I expect some learning curve when playing with css :wink:)