I have a D1mini with a DHT11 hooked up to it and I want to use the humidity sensor to toggle a humidifier so it stays in a certain range like a very crude PID loop. I can configure the sensor just fine but my Home Assistant will only pick up the data from the initial connection and nothing after. If i restart the integration it pulls a new data set but then will not update on the same interval that my D1 mini does. For example, my current configuration is set for 10 seconds to test stuff but my Home Assistant will not update until I restart the D1 mini or the integration. Im not sure how else to describe the problem or anything else since im new to Home Assistant and the ESP boards.
Any help would be greatly appreciated but my configuration is as follows
Home Assistant - Running on Raspberry Pi by itself
Wifi - Raspberry Pi running Raspap as a personal network, Home assistant is connected to both the Raspap and ethernet
D1
esphome:
name: sensor
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "cNtR4iCduCxz1SVPFrmzZg6aqruh51A9IqTUXnjReUs="
ota:
password: "acebc966badc3609fe8c27de4dbda868"
# Example configuration entry
wifi:
ssid: Athena-secure
password: 1008104Samb!
power_save_mode: none
fast_connect: on
# Optional manual IP
#manual_ip:
#static_ip: 10.77.0.159
#gateway: 131.230.53.68
#subnet: 255.255.255.0
#dns1: 131.230.53.68
captive_portal:
sensor:
- platform: dht
pin: D2
temperature:
name: "Temperature"
humidity:
name: "Humidity"
update_interval: 10s
model: DHT11