ESP8266-01 + DHT 11

esphome:
name: dht11
platform: ESP8266
board: esp01_1m

wifi:
ssid: “xx”
password: “xx”
fast_connect: true
power_save_mode: HIGH

manual_ip:
# Set this to the IP of the ESP
static_ip: 192.168.1.217
# Set this to the IP address of the router. Often ends with .1
gateway: 192.168.1.1
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.255.255.0

# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: “Dht11 Fallback Hotspot”
password: “q1tQKAQ4MrHK”

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

sensor:
– platform: dht
pin: 2
temperature:
name: “Mobilsensor 2 Temperatur”
filters:
– lambda: return x – 1.3;
humidity:
name: “Mobilsensor 2 Luftfugtighed”
update_interval: 60s

Softwaren en ESPHOME