I am trying to reduce the number of automations I have and also learn how to use templates. My question is, how do I do this:
{% if is_state("weather.my_ecobee", "cloudy") -%}
trigger.script.cloudy <==I know this isn't correct, I just don't know how to format it
{% elif is_state("weather.my_ecobee", "snowy") -%}
trigger.script.snowy
{% elif is_state("weather.my_ecobee", "rainy") -%}
trigger.script.rainy
{%- endif %}