Hello, i try to get my icon change color and get it done with the following code, but that limits me to just the if clause and the else as variants.
‘’’
{{ ‘light-blue’ if states(‘climate.ac_livingroom’) == ‘cool’ else ‘dark-grey’ }}‘’‘’
How can i ask for more states and assign colors?
I tried elif, eseif and or but either my syntax wasnt right or it needs to be totally different.
Can someone point me into the right direction?
It is for the icon color field in a mushroom card
Thx alot for your answer
So i was missing the {} and %, but why is it sometimes with them and sometimes without?
Cause my posted code up there works and it does not have the {%%}