Thermostat for Heating/Cooling equipment

I have a generator installed in an enclosure. It includes an electric heater and a fan each powered through the smart plugs, and a temperature sensor.
What would be the best thermostat solution to satisfy the following requirements:

  • When temperature drops below 8°C, turn on a heater. Make sure that a fan is off
  • When temperature goes above 30°C, turn on a fan. Make sure a heater is off
  • When temperature is between 8°C and 30°C (within one-two °C), turn off both a heater and a fan
  • It supports PID/hysteresis settings and switching delays traditional for thermostats
  • Mode: auto heat/cool

Thanks!

Just use the Climate

this is mine to control my gas heater

an yes have logic in place HA only control the gas heater if TV on and lounge lights are on.

- platform: generic_thermostat
  name: "Gas Heater"
  heater: switch.gas_heater # any switch that will be trun on/off
  target_sensor: sensor.bt_lounge_temperature  # any temperature
  min_temp: 15
  max_temp: 30
  ac_mode: False
  target_temp: 21.9
  initial_hvac_mode: "off"
  cold_tolerance: 0.2
  hot_tolerance: 0.2
  away_temp: 16

image

Thermostat Card

Thanks. It’s a heater part only.
I can add another climate entity to control the cooler (fan in my case) using ac_mode:false, but it would be great to have one thermostat to control all the scenarios together.

I am looking for something like that:
image

It seems that native HA generic_thermostat platform doesn’t support it, and some custom (HACS?) solution is needed.

You can have two generic thermostats and as long as they are not set to compete with each other then it shouldn’t be an issue.
There are custom integrations like dual smart thermostat in HACS that does it all in one.
But for your case it seems you won’t be changing the temperature, so two generic thermostats will probably be fine.
You just need to make one ac_mode: true

1 Like

Thanks, that’s what I have now. It’s not very convenient to have two independent thermostat cards, but I’d consider it as a workaround. I’ll check the dual smart thermostat, thanks again!

How to you use this, being a building block…quite newbie into HA…tried to use this integration but it says is a building block on other ones…any suggesiton?