Hi. Im trying to set up an automation that turns on a heater overnight if the temperature is below 2°C. This sounds simple, but whilst Ive managed to get it to work if the temperature drops during the night, but not if its already below 2 when the night time starts. I’ve tried several different versions, but this is what Ive currently tried. The issue Im having is it doesnt seem to understand <2. Any suggestions?
alias: Cold night
description: “”
trigger:
platform: time_pattern
minutes: /10
platform: state
entity_id:
weather.forecast_home
attribute: temperature
to: <2
condition:
condition: time
after: “19:00:00”
before: “06:00:00”
action:
You could try the generic_thermostat integration, and then create an automation with time-based triggers to set the require setpoint on the thermostat (or even have it based on sunrise/sunset)
Exactly how I implement space heaters around my property. I used to do automations and multiple devices and it got so complex that I instead went this route and haven’t looked back. I do the same for humidifiers too using the generic hygrostat templates.