How can I change the icon status on a device with no feedback?

In the example below, I’m using a Tuya switch for the ‘Marine Tank’ which doesn’t provide feedback. I know how to change the icon from a lightning bolt to a bulb, but I also want to change it from unlit to lit when the status changes from off to on, like the ‘Tropical Tank’ above it. How could I do this?

Screenshot from 2020-12-06 10-25-59

I don’t understand, you say:

and then:

I thought it doesn’t provide any feedback?

You can use.
state_color: true

Thanks for the replies. I have found the answer myself whilst adding another device. There’s an option in the Lovelace card to ‘Color icons based on state’, which I suspect is the same as @pepe59’s answer.

Screenshot from 2020-12-06 12-04-44