Cheap DIY Temperature & Humidity Sensor that works with ESPHome & Home Assistant

preview_player
Показать описание
Nowadays, DIY wireless smart #Temperature & Humidity #sensor that can be added in #HomeAssistant can be very easy and cheap. Especially, if you have a complete guide like this one that will show you all the steps. I will try my best to show you everything: what parts are needed, how much they cost, from where to buy them, how to connect them, how to configure them, how to install ESPHome and finally how to add your smart DIY Temperature & Humidity sensor to Home Assistant. On top if you have access to a 3D printer I will also show some enclosures that can make the sensor looks better. So, buckle your belts as we are starting with the needed parts for this DIY Temperature & Humidity sensor.

► AFFILIATE LINKS

► CRYPTO AFFILIATE LINKS

► MY GUIDE

► SUPPORT MY WORK
Bitcoin – 1GnUtPEXaeCUVWdJxCfDaKkvcwf247akva

► TIME TABLE
00:00 Intro
00:15 What will you see in this video?
00:44 What parts are needed?
01:50 How does it all cost?
02:26 How to connect D1 mini and DHT22 sensor?
03:14 How to install ESPHome add-on?
05:31 Edit ESPHome configuration for the DHT22 sensor attached to D1 mini
06:19 How to install ESPHome on the D1 Mini?
08:37 Challenge for you!
09:02 How to add D1 mini and DHT22Temperature & Humidity sensor to Home Assistant?
10:37 Possible 3D Printed enclosures

► IF YOU DON’T HAVE HOME ASSISTANT CHECK THIS GUIDE

► ESPHOME CONFIG
sensor:
- platform: dht
pin: D2
temperature:
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
update_interval: 20s

► LINKS TO THE 3D PRINTED MODELS:

✅ Don't Forget to like 👍 comment ✍ and subscribe to my channel!

► DISCLAIMER
Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you!
Рекомендации по теме
Комментарии
Автор

You can't hide your acent speaking, I've noted right away you are from geniusland! Thanks bro

acmateriales
Автор

Great tutorial for people still scared of ESPHome and boards.
FYI, you couldn't do an OTA install because your board wasn't on your Wi-Fi yet. After the first flash you can do all updates OTA.

diederikmaes
Автор

I use to make my own sensors., adding light sensors, motion and the temp and humidty all in the one device. Some even had LED's I could use as night lights. I loved it in many ways, but these days a lot of ZigBee sensors, like the little Xiaomi ones, are just as cheap and also local (no cloud needed) so I stopped doing it. Not to mention the fact the ZigBee ones can be battery and last a while between changes.
That said, really great to see a new video on how to do all these sort of sensors. Most of the videos on YouTube are not very recent

EsotericArctos
Автор

Thanks for the video. I did have some initial difficulties and learned 2 important things:
1) if you are using a raspberry pi with Home automation already, and are using Zigbee, you may need to disconnect the zigbee dongle while first configuring the ESP. The SB ports on my Pi were very noisy. Once configured and running on wifi, no problem.
2) I needed to add a 4.7K pull up resistor (as suggested by some others if I was having difficulties. That helped the reliability of the DHT a lot.

cbristow
Автор

Hi KP, now i build up this sensr and all is working verry well and I enjoy your videos by homeassistant as nthing else. Thanks for your good and perfect help, Ys markus

markusdick
Автор

Very nice video. I'm just now learning about ESP32. What if I want to power the esp32 board with a battery instead of USB connection? I want to place one in my greenhouse to monitor the temperature where my plants are growing. Later, I want to turn on a heater if it gets too cold...

BarryWatson
Автор

Thank you very much for this video and information. I used your guide and all 3 sensors worked perfectly.

randrewright
Автор

Thanks for this, I had a great fun setting it up. Mine was giving me very wrong readings. I had to add this line to the ESPHome config and reflash it to fix the issue: "model: AM2302"

tamias
Автор

I couldn't get my temperature readings to go off. I realized you needed to "install" the changes, if you edit the yaml afterwards. Did an update or install, and got the temperature/humidity readings right away.

nilleftw
Автор

This is great! Just put three together super quick. Thanks for the walk through!

coffeemeistr
Автор

Very nice! I know this video is 3 years old but damn it helped me! Thank you! Subscribed!!

mcana
Автор

DHT22 is good for temperature readings, the humidity though started to fail on me after a year, reading 99% almost all the time. Probably because i smoke in the room, gonna try some methods to revive it.
Nice video as always, Peyanski, thank you very much!

McArty
Автор

😀#thowned Thanks, great work! I had to make to make a couple of small changes to the esphome config edits that you showed in the video to get accurate readings from the DHT22. I include the edited version below in case anybody else is having the same

sensor:
platform: dht
model: DHT22
pin: D2
temperature:
name: "My bedroom temperature"
humidity:
name: "My bedroom humidity"
update_interval: 30s

richardnaish
Автор

Might be a dumb question, but I'm learning so maybe others have it as well...I've set up a few ESPresense esp32 devices and those have been fun to play with and add automations for. I've gotten this now thanks to your video (thanks, as usual)...can 1 single esp32 board (or any of them) manage ESPresense and Temperature and Humidiity, or not possible?
Just curious, thanks as always for the great videos!

pcampane
Автор

Just got into Home Assistant, have been using your videos for guides! Thanks for the help! 2 questions. First, the dht11 appear to be slightly cheaper (I'm prefering amazon for now so I don't have to wait so long for shipping). Will these work/is there a draw back to these? Question 2. Instead of powering these with micro usb, can they be spliced into say an led strip that's running off 5volts? Thanks again for all the help!

davidmack
Автор

Hi thanks for the video, very usefull. Sometimes you need to add this line: "model: DHT22" too, otherwise you will get strange readings (at least for wemos D1 pro).

Kisbalta
Автор

Great video KP. love the simplicity. I have them in every room of my house, also In the attic, outside under a covered porch, and in the garage too. They work great. I keep the sensor away from the board because the module gets a bit warm and I wanted open-air temp and humidity. Also, don't forget to back up and save each ESPhome device config just in case...

JesseG
Автор

Thanks for the tutorial, I really like it! Is Home Assistant just displaying actual data, or is it possible to show/store historical data like from the day before?

saschapihan
Автор

Great video Kiril! Last week my wife asked if I could make a temperature sensor to put in my daughter's school bag to track how cold the classroom at school was getting. Sure I said... thinking about how best to power a pi or an esp. Gee it grew into a major exercise! If I go esp I need a sd memory module and a clock module on top of figuring out power... This might take me until the summer! I will keep you informed :)

davidwentireland
Автор

Could not connnect to board through ESP Home with any method. I always run into problems lol. Can use Arduino IDE software with no issues tho. Any way to integrate my device into Home Assistant after setting up with IDE?

jasonstation