>- {%- set getting_hot = [ " to cool down a bit.", ". It's getting hot!", ", or you're probably gonna boil!", ", or you're gonna simmer!" ] -%} {%- set getting_cold = [ " to warm up a bit.", ". It's getting chilly!", ", or you're probably gonna freeze!", ", or you're gonna ice up!" ] -%} {%- if (states('sensor.dark_sky_temperature') | int) < (states('sensor.bedroom_weather_temperature') | int) -%} {%- if is_state('binary_sensor.bedroom_right_window', 'off') and (states('sensor.bedroom_weather_temperature') | int) > 22 -%} You should probably open the master bedroom window{{ getting_hot | random }} {%- endif -%} {%- if is_state('binary_sensor.bedroom_right_window', 'on') and (states('sensor.bedroom_weather_temperature') | int) < 18 -%} You should probably close the master bedroom window{{ getting_cold | random }} {%- endif -%} {%- endif -%}