Add another entity to code

Hi all,

Not sure if this is the correct area to post. I’m 3 weeks into HS and loving the simplicity of having one application to control my home, but also the complexity of setting every up.
I have a bit of code I found on here or youtube which changes the icon colour on my home page depending if a light is on or off. How would I add a second or third light? Also what code is this so I can find some reading material?

{% if is_state('light.living_room_side_light', 'on') %}
  orange
{% else %} 
blue
{% endif %}

I’m looking to add light.living_room_light
Is there an ‘or’ command or do I need group the lights?

Thanks for any help
Louise

That is templating, which uses Jinja2.

{% if is_state('light.living_room_side_light', 'on') %}
  orange
{% elif is_state('light.living_room_light', 'on') %}
  red
{% else %} 
  blue
{% endif %}
1 Like

Thanks Tinkerer, works perfectly

Added https://jinja.palletsprojects.com/ for some light reading :slight_smile: