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"