ESPHome controlled relay for Boiler as thermostat

Has anyone used a ESP32 controlled relay to control the boiler? Afterall the boiler thermostat is a relay controlled by a thermometer. I was wondering if anyone can share their experience.

There is a device available combining a relay and ESP32 on a single board which looks interesting for a boiler thermostat

I have a d1mini running my heating, via a relay. It runs tasmota not esphome but no real difference in operation. Its been running for about 3 years so far, maybe a bit longer. Works fine and never failed to warm my house. And only a few hundred £ cheaper than an off the shelf thermostat.

Great. Thanks for replying. Good to know I am not the only one who is having this idea.

I am a automation noob. Can you please share with me some tips etc and your configuration for the device so I can do something similar?

1 Like

I just set tasmota with a switch relay and a ds18b20 temperature sensor. Called it heating. Then added this to configuartion.yaml

climate:
  - platform: generic_thermostat
    name: Heating
    heater: switch.heating
    target_sensor: sensor.heating_ds18b20_temperature
    min_temp: 15
    max_temp: 25
    ac_mode: false
    target_temp: 20
    cold_tolerance: 0.3
    hot_tolerance: 0
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_hvac_mode: "off"
    away_temp: 5
    home_temp: 20
    activity_temp: 15
    precision: 0.1

Then use the thermostat card for settings, and climate in automations.

But probably easier to use Esphome these days

As mine is a vital part of my home I have not messed about with it since it was created. May well change it to Esphome next summer.

I Try to use same Thermostat for my Boiler , but to my case i do have an wooden heated oven. To some reason (cant find out) it swtiches to early of the circulation pump. So there is still a lot of energy combustion chamber. So afte a while the oven gets to hot inside, cause circulations is of.
But if i try to use the climate: somehow esphome got a border of 30 degree.
I was thinking use an Dallas 18b20 measure temperature inside the oven if tmeperatur above 90 degree will switch on pump, less 80 switch off.
How to change the
visual_maximum_temperature ?