If value entity 0 change to

Hello,

I have imported various values ​​from my Zehnder Touch but I would like to bring them back to the dashboard with a description.
I always get an error when I try to set the editor for:
Value = 0 → set OFF text and icon red
Value = 1 → SET ON text and icon green

can you help me?
thanks Guido