Control a heater(simple relay) by adjusting temperature through interface, best way?

Hi All,

I’ve got a simple relay which runs a small heater in an enclosure, I would like to be able to say that when the temperature reaches 100F turn off the heater, but there may be times where I’d want to set the heater to 98 or 99 degrees, so I’d like to do up and down buttons similar to a thermostat. I’d like to possibly be able to allow for ‘drift’ like maybe wait 2 minutes before kicking the heater back on.

I imagine I would do the majority of this through an automation, but the actual interface component I’m not too sure where to begin. Could someone point me in the right direction?

You may wish to consider using the Generic Thermostat integration.

You specify a setpoint temperature and it will turn on the heater as required. You can also specify a deadband (using hot_tolerance and cold_tolerance) to permit a small amount of drift from the setpoint before the heater is enabled.

1 Like

The generic thermostat should do all that:

Edit: argh! Ninjaed again.

1 Like

Thanks all, its perfect!

Do I need to install the “Generic Thermostat” integration? I’m struggling to configure an automation that turns a heater on in my pump room if the temps drop below 32°F. I’m using the Sonoff TH4 (16 amp) (with temp sensor) hardware that has been flashed with Tasmota firmware. Mosquito is configured and I can see the state of the switch, toggle the switch, and read the temperature in the dashboard. I’d like to have the system turn on/off 32°F at 34°F, respectively, as well as send an alert to my HassMobile app if the room stays below 32°F for 10 minutes or more. Looking under the Dev Tool-Services pulldown, there’s nothing remotely close to temp or thermostat entries. It seems like this integration should be a well worn path but I can’t seem to find anything in the forums or online. Being new to this, I was hoping to use a blueprint, template, or documented example to get it right. Any help here would be greatly appreciated.

I’m running Home Assistant Supervised version: 2020.12.0 (hassio: true, docker: true) on Debian GNU/Linux 10 (buster) with installed addons: File editor (5.2.0), Mosquitto broker (5.1), Visual Studio Code (2.9.1), Samba share (9.3.0), TasmoAdmin (0.13.1), Let’s Encrypt (4.11.0)