I’m not sure if you moved your entity_id:
as well, but your final script should look like this:
weatherlighttest:
alias: Weather Light Test
sequence:
- service: light.turn_on
data:
entity_id: light.office_rgbw
brightness: 255
data_template:
rgb_color: >-
{% if states.sensor.forecastio_daily_high_temperature.state | float < 32 %}[168,108,255]{% elif states.sensor.forecastio_daily_high_temperature.state | float < 55 %}[192,255,239]{% elif states.sensor.forecastio_daily_high_temperature.state | float < 80 %}[229,255,193]{% elif states.sensor.forecastio_daily_high_temperature.state | float < 95 %}[255,231,205]{% elif states.sensor.forecastio_daily_high_temperature.state | float < 105 %}[185,13,0]{% else %}[255,255,255]{% endif %}
If that doesn’t work, then try this:
weatherlighttest:
alias: Weather Light Test
sequence:
- service: light.turn_on
data_template:
entity_id: light.office_rgbw
brightness: 255
rgb_color: >-
{% if states.sensor.forecastio_daily_high_temperature.state | float < 32 %}[168,108,255]{% elif states.sensor.forecastio_daily_high_temperature.state | float < 55 %}[192,255,239]{% elif states.sensor.forecastio_daily_high_temperature.state | float < 80 %}[229,255,193]{% elif states.sensor.forecastio_daily_high_temperature.state | float < 95 %}[255,231,205]{% elif states.sensor.forecastio_daily_high_temperature.state | float < 105 %}[185,13,0]{% else %}[255,255,255]{% endif %}
If that doesn’t work either, then you may have stumbled upon another bug…