Config.py (ERROR) Platform error: climate - Integration 'bang_bang' not found. 23:04:37

Hi, all
Im trying to do thermostat basicly. I have two NodeMCU board. One has DHT sensor working at bedroom. Other has relay working near the heater. I loaded codes with ESPhome both of them.

But i cant start any thermostat… I had this bang-bang thermostat in config.yaml but had platform error…
I m trying to find something for solutions for days… but had nothing. I m new HomeAss. Could you possible to help me please. Thanks.

Log 2 error messages;
1- Logger: homeassistant.config
Source: config.py:415
First occurred: 23:04:37 (1 occurrences)
Last logged: 23:04:37

Invalid config for [sensor.dht]: [temperature] is an invalid option for [sensor.dht]. Check: sensor.dht->temperature. (See /config/configuration.yaml, line 24). Please check the docs at https://www.home-assistant.io/integrations/dht

2- Logger: homeassistant.config
Source: config.py:819
First occurred: 23:04:37 (2 occurrences)
Last logged: 23:04:37

  • Platform error: climate - Integration ‘bang_bang’ not found.

  • Platform error: switch - Integration ‘gpio’ not found.

Config.yaml; (whis is not running, creating error just);

sensor:
  - platform: dht
    pin: D6
    id: yosicaklik

switch:
  - platform: gpio
    pin: D1
    id: kombi_control

climate:
  - platform: bang_bang
    id: bang_bang_climate
    sensor: yosicaklik
    idle_action:
      - switch.turn_off: kombi_control
    default_target_temperature_low: 22
    default_target_temperature_high: 24
    heat_action:
      - switch.turn_on: kombi_control
  • Running this code on bedroom’s nodemcu; everything is working well.
esphome:
  name: yatak_odasi_hava
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: "xxxx"
  password: "xxxxx"
  # Optional manual IP
  manual_ip:
    static_ip: x.x.x.x
    gateway: x.x.x.x
    subnet: 255.255.255.0
    dns1: 8.8.8.8
    dns2: 8.8.4.4
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "xxxxxxxxxxxx"
    password: "xxxxxxxxxxx"

captive_portal:
sensor:
  - platform: dht
    pin: D6
    temperature:
      name: "Yatak_odasi_sicaklik"
      id: yosicaklik
    humidity:
     name: " Yatak_odasi_nem"
     id: yonem
    update_interval: 30s
    model: DHT22
# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "xxxxx"

ota:
  password: "xxxxx"


  • running this code is other (near the heater). and everything working well.
esphome:

  name: kombi_odasi

  platform: ESP8266

  board: nodemcuv2

wifi:

  ssid: "xxx"

  password: "xxxxxx"

  # Optional manual IP

  manual_ip:

    static_ip: x.x.x.x

    gateway: x.x.x.x

    subnet: 255.255.255.0

    dns1: 8.8.8.8

    dns2: 8.8.4.4

  # Enable fallback hotspot (captive portal) in case wifi connection fails

  ap:

    ssid: "xx"

    password: "xxx"

captive_portal:

switch:
  - platform: gpio
    pin: D1
    name: "kombi_controller"
    id: kombi_control
    inverted: yes
    
# Enable logging

logger:

# Enable Home Assistant API

api:

  password: "xxxxx"

ota:

  password: "xxxxx"

Your post is very unclear, but you seem to be confusing your home assistant and your esphome.

Home assistant does not have a bang_bang integration. Esphome does.

I did some edits to understand clearly. I hope i did.
Summary, i need giving a command a heater. With sensor information of another point. Separate places…

It’s still not exactly clear to me. You seem to have 2 errors. One was explained by @nickrout as HA does not have the integration. Did you try getting only each part working individually?

i have 2 nodemcu. one for temperature measurement… other for controlling heater… 2 device is different point of my house. but they are in the same wireless hub…

I see temperature and switch on lovelace. they are working.

I think i understand. You have two choices.

  1. Use a Climate component in esphome. If you use the heater control esp then you can get the temperature value with the home assistant component. The bang bang, generic thermostat or the pid controller are options.

  2. Use the generic themostat integration in home assistsnt.