Home Assistant and a DHT22

Dear all
This has been driving me nuts and I’ve searched everywhere without any luck.

I’ve installed the HA OS on a Raspberry Pi 3+ using the installer on the HA website and I can access HA and it looks great.

I want to create a Server Room Temperature and Humidity monitor using a DHT22.

I’ve wired the DHT22 directly onto the Pi 3+ and it works using basic code found on different websites.

I wanted to find a platform that could send me emails if the temperature/ humidity is too low/high and I thought HA would be ideal.

My main sticking point is the installation of the libgpiod2 library. I can’t find anywhere to run the sudo apt install libgpiod2 command mentioned here on the HA website DHT Sensor - Home Assistant

I can access the configuration.yaml file to make the changes listed on this official HA page but not install the library.

Is any of this possible using the method I have used so far or am I wasting my time?

Can a Raspberry Pi with a DHT22 directly attached send me email alerts using Home Assistant?

If anyone has any suggestions that would great, or any advice on using a different platform or anything at all!

Thank you :pray:

hay bro put on a wemos D1 min

2 Likes

Yeah, wemos is what I use too.

1 Like

Great, I’ll invest in one now. Does this then use MQTT to do what I need?

Is sending notifications on temp changes easy to setup?

Why does the HA documentation even mention have to install an impossible library!

Thanks for your replies

I use 9 Wemos D1 mini, all of them with esphome. Very easy and very good integration in HA.
Notifications on temp changes? => like with every other sensor value, you can use a little automation.
I have much better results with SHT31 or BME280 sensors than with DHT22.

2 Likes

That’s awesome, thank you all very much :slight_smile:

One of mine is in the hot water cupboard with the NO hot water NOW (have GAS hot water) but has heater in there

when door open hall light turn on heater off and when closed light off after 3sec and heater but on but only if the heater was on before opening

a DHT22 which has climate