connected it to 5V, GPIO17 and GND and, following this guide Removed integration - Home Assistant, set it up in the configuration.yaml like that:
sensor:
- platform: dht
sensor: DHT11 #also tried DHT22 and AM2302
pin: 17 # also tried 11, because GPIO17 is pin 11
monitored_conditions:
- temperature
- humidity
It does not work… the sensor value is always “unknown”
I have also tried to connect it to a 3,3V pin, no success…
What am I doing wrong?
Additional info:
Since I’m going to add a CO2 sensor too, I followed this guide Removed integration - Home Assistant , to enable running it directly on the pi. Other than that, it’s pretty much a fresh install of Home Assistant on a Pi 3 B+
In the System Core logs the only errors about that, are these lines:
2020-08-21 09:45:27 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raumklima_temperature is taking over 10 seconds
Updating dht sensor took longer than the scheduled update interval 0:00:30
Interestingly - and luckily, switching relays with the GPIOs works flawlessly.
I find it quite frustrating that the GPIO sensors don’t seem to work the way they should - this would be such a great and easy way to monitor things like the temperature, humidity, or the door state in/of the server cabinet, without wasting expensive wireless sensors