ESPHome Bang-Bang Controller Integration in Home Assistant

Hello everyone, I wanted to share my experience with integrating an ESPHome Bang-Bang controller into Home Assistant as a climate control system. I’ve been using this setup to maintain the temperature in an outbuilding using a gas fireplace as the heat source, and it’s been working quite well so far. However, I’m running into an issue with configuring Home Assistant to recognize the ESPHome device as a climate platform.

Here’s the relevant portion of my ESPHome configuration:
yaml
sensor:

  • platform: dht
    pin: 14
    temperature:
    id: bunker_temperature
    name: Bunker Temperature
    humidity:
    id: bunker_humidity
    name: Bunker Humidity
    update_interval: 60s
    model: SI7021

switch:

  • platform: gpio
    pin: 12
    id: bunker_furnace
    name: “bunker_furnace”

climate:

  • platform: bang_bang
    id: bunker_thermostat
    name: “Bunker Thermostat”
    sensor: bunker_temperature
    default_target_temperature_low: 19°C
    default_target_temperature_high: 21°C
    away_config:
    default_target_temperature_low: 8°C
    default_target_temperature_high: 12°C
    heat_action:
    • switch.turn_on: bunker_furnace
      idle_action:
    • switch.turn_off: bunker_furnace

Currently, only the sensors and switch are detected in Home Assistant, but I’m not sure how to get the climate platform recognized. I’d love to be able to set the outbuilding to ‘away’ mode overnight, similar to how my Venstar Colortouch thermostat works. Any guidance on what to add to HA’s configuration.yaml would be greatly appreciated!

I’m really excited about the potential of this setup, and I hope to get this working smoothly. Let me know if you’ve tackled something similar or have any tips to share. Thanks in advance for your help!