Тёмный

Tutorial - Multi-sensor setups for ESP32 & Home Assistant 

Byte My Bits
Подписаться 126 тыс.
Просмотров 59 тыс.
50% 1

How to use an ESP32 to connect temperature, humidity, air pressure and gas resistance sensors to Home Assistant!
Code:
DHT11: pastebin.com/2Ymf0txK
SHTC3: pastebin.com/NgJHRV9j
BME280: pastebin.com/NLebw35R
BME680: pastebin.com/nFqwxTyM
Sensors:
DHT11: amzn.to/3suK53Z
SHTC3: amzn.to/3slqZxq
BME280: amzn.to/47vzmp2
BME680: amzn.to/47wx9tw
(As an Amazon Associate, I earn from qualifying purchases)
🔥These links support my madness🔥
💲 NordVPN: www.bmbsucks.com
💲 Members-Only Punishment: bit.ly/bmbmembers
💯These are my other Socials💯
🔹Twitter: bit.ly/BMBTw
🔹Instagram: bit.ly/bmbinstagram
🔹Tik-Tok: bit.ly/bmbtock
🔹Discord: bit.ly/BMBDISCORD
✉️P.O. Box for Mail✉️
Byte My Bits
P.O. Box 77
Haysville, KS 67060

Наука

Опубликовано:

 

8 авг 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@tomh.3513
@tomh.3513 3 месяца назад
I started it out knowing not much about the esp family 8266, 32 not long ago. In less than 2 months I have gotten it!!!!! Sure it is confusing at the beginning but once figured out it is fascinating and quite easy. The coding complexity had been taken care by esp home and home assistant side. Without those there is NO way any of this is possible. It is very fun, rewarding and useful to learn this IOT thing and thanks to the Chinese these super cheap ESP"S make IOT a reality. I had background in electronics and computer and repair electromechanical so learning new things is a breeze (well not quite at the beginning). Just to show anyone the power of this IOT thing these are what I had made so far and planning next. I am in solar power and storage big time too: These type of projects are useful to many people NOT just me. 1/ well pump on/off switch with self off timer 2 remote shed power on/off switch with humidity/temp. 3/ bms monitor and control on/off power, charging, discharging, battery cells voltage, etc... Next build are: 1/ garage door controller 2/ soil moisture and garden water timer 3/ multiple cell voltages monitor for lithium battery I built for car 4/ gas sensor for alcohol breath level dectection 5/ gas sensor for co2, methane, smoke, etc... 6/ bluetooth proxy 7/ solar panel cells monitor 8/ bluetooth bms monitor 9/ I am sure there are more when i think of some!!!!!! esp32 costs just a bit more but way more powerful, has bluetooth, better security and many more pins to play with so I am migrating all of my projects toward it. Surprisingly all of these projects can be done extremely cheaply with available modules all over from Aliexpress, Ebay, Amazon. I do not build nonsense project. All my built must be useful and I use the heck out of them. What i like best is I can control and monitor all of these projects remotely anywhere in the world. Read that again if that is important to you. An ability to control and monitor anywhere in the world as if i were at home is amazing and valuable to me. Now 99% of the population won't do this because they can't or won't pass the learning curve as it does required learning and thinking and putting effort to pass the initial stage but man when you can pass that the world of IOT is fascinating fun and exciting. Well worth the effort to learn most definitely. Thanks to many people such as this Utuber to teach and show . Thumb up for you
@geoffreycoan
@geoffreycoan 6 месяцев назад
Very useful, I’m planning on making some ESP32 T&H sensors
@musicamessage2915
@musicamessage2915 11 месяцев назад
I have been pleased with the power watchdog 30 hardwired version. I also like the android app. In addition, if you like home assistant there is a open source integration. Not endorsed by Hughes. But it is a nice addition to automate your IOT on wheels.
@Darkk6969
@Darkk6969 11 месяцев назад
Nice...didn't know about SHTC3 which is an upgraded version of DHT22 which is what I have so will have to get some. Debating if I should move my HA from ProxMox over to one of my Odroid C2 boards so it's dedicated and easy access to the USB connection to the ESP devices. I know it can be done on ProxMox but can be tricky at times.
@bigbigspoon
@bigbigspoon 11 месяцев назад
I just want the fan to turn on when someone farts
@faizantabassum311
@faizantabassum311 13 дней назад
All you need is an mq135 for the fart detection and a relay to turn on the fan, then just right some basic code with an id statement, if(fartDetected) turn on the fan 😂
@MikeHarris1984
@MikeHarris1984 11 месяцев назад
Esphome is awesome. If you set your product and version, it will set the vendor info in HA. So if you make your own PCB with all these sensors on a single board, then make a custom flash firmware for esphome, then it can get all the info and show the vendor bnb inc. Lol. But you can make a PCBthst you just solder these modules on,or you build your own circuitry and solder the sensors into your custom.
@mdsayemfaiyaz6425
@mdsayemfaiyaz6425 10 месяцев назад
Hey mate. That was an amazing video. want to use temp sensor in one Esp32 board and when temp go bewond a limit, it will send a data to another esp 32 board which is connect to same wifi to bling a LED. Which ESP32 models should i use? cheers
@jaspercas
@jaspercas 8 месяцев назад
Thanks for this, I'm used to programming arduino,java and c but YAML from esphome and home assistant is confusing to me😅
@MrSuperSnuiter
@MrSuperSnuiter 11 месяцев назад
Please continue to make tutorials.
@enriqueenrique-hd7zj
@enriqueenrique-hd7zj 6 месяцев назад
Dear friend, thanks for your videos. I have a Sai/ups inside a cabinet with two fans. I have always used fans with constant power and without pwm only 12v. After seeing your previous project I have implemented the use of pwm with noctua + esp32 + home assistant + aqara temperature sensor fans. I use a power supply 12v for the fans and another power supply 5v for the esp32. I had to join both "gnd" for the pwm to work correctly. I have observed a small error. If while the fans are spinning I unplug the ESP32, the fans are set to maximum speed. If I plug the esp32 back in, the esp32 does not start, it goes into protection mode (perhaps because it receives a pwm signal from the fans and cannot start, maybe usin only a power supply de problem is solved). I use an Aqara temperature sensor while I don't receive the new temperature sensors for the ESP32. The update frequency of the aqara is 5 minutes, that's why I don't have a stable temperature. I share here my home assistant automation that autoregulates the speed of the fans around 25 degrees, it is not works very well done because for it to work at 25 degrees I have to set a target_temp of 23.5° but the automation works. Let's see if someone could improve this automation. alias: fan temperature with pwm trigger: - platform: time_pattern minutes: /1 action: - service: fan.set_percentage data_template: entity_id: fan_control_esp32_pwm_test percentage: >- {% set temperature = states('sensor.sai_temperature') | float %} {% set base_speed = 10 %} {% set max_speed = 55 %} {% set target_temp = 23.5 %} {% set diff = temperature - target_temp %} {% set speed_increase = ((diff / 5) * (max_speed - base_speed)) | round(0) %} {% set new_speed = (base_speed + speed_increase) if diff > 0 else base_speed %} {{ new_speed | int }} Thanks , best regards.
@Kelekona_808
@Kelekona_808 11 месяцев назад
Wow and honest evergreen video. Trying to use this for work Jason?
@Xajono
@Xajono 3 месяца назад
Yeah
@kiq4767
@kiq4767 Месяц назад
huh?
@moizahmad1015
@moizahmad1015 6 месяцев назад
Can we use two sensors with SCL and SDA with a single esp, because it does not work like that
@user-ss2og1mj6g
@user-ss2og1mj6g 7 месяцев назад
Hi, I'm try to find a way to connect 5 bme280 on the same esp32 for Home Assistant (so with i2c protocol)... Do you know any way to do that?
@apoc519
@apoc519 6 месяцев назад
How did you know to connect it to pins 22 and 33?
@oithetresen609
@oithetresen609 6 месяцев назад
I currently have a homee run smart home which I am very unhappy with, because my remotes keep losing connection and there aren't any other remotes I could use. I already ordered a new raspi and a zigbee stick and am going to make esp32 run remotes with as many buttons as I can manage to connect.
@suntzu6122
@suntzu6122 8 месяцев назад
How many sensors can 1 esp32 monitor?
@lemurtheory9350
@lemurtheory9350 7 месяцев назад
Does someone have a project yet with every sensor that their is to make like an all in one deck for detecting things? I'm talking this, ultra sonic, depth, heat, radio, light, GPS, IR, ultraviolet, anything else I'm not thinking of (blaster and camera version when applicable) with a 5 or 7 inch display with different visual ways to see the info. Id pay someone for something like that.
@rotated9516
@rotated9516 5 месяцев назад
can anyone please help me if I am doing this with the same temperature sensor in the video but instead with a XIAO ESP32 S3?
@kallekarlsson2181
@kallekarlsson2181 9 месяцев назад
Great video! How do you solve the "Duplicate Key"? I cant write "sensor" or "-Platform" twice in the yaml, then it says duplicate Key " sensor" on the last line. Any ideas?
@freddeza
@freddeza Месяц назад
I'm having the same problem. It's not as simple a copying codes if you have multiple sensrs because it won't allow twice. Maybe someone can help.
@markstanchin1692
@markstanchin1692 11 месяцев назад
Hi, do you have a link where you automated your kitchen over the stove fan/light hood. That’s my next project.
@liuesstuo9413
@liuesstuo9413 11 месяцев назад
🎉🎉🎉🎉
@MarkGhali
@MarkGhali 11 месяцев назад
aliexpress these sensors are a lot cheaper if you can wait a month for shipping
@vvorldnewsmedia
@vvorldnewsmedia 11 месяцев назад
bro where is the code?
@elmonte7834
@elmonte7834 11 месяцев назад
BTW, I did try your fan tutorial. ESP32 fan switch did not turn off the fan. When switch was off, fan was at ~700rpm, with switch on at max, fan was at 1000rpm. How did you manage to get fan switch to turn off fan when others needed to include relay?
@TechySpeaking
@TechySpeaking 11 месяцев назад
First
@scubieman
@scubieman 11 месяцев назад
First. nate sucks
Далее
меня не было 9 дней
12:48
Просмотров 2,3 млн
I Made My Smart Home Presence Sensor Even Better!
11:09
Try these 16 Brilliant ESP32 projects!!!
11:18
Просмотров 552 тыс.
BME680 with ESPHome | One sensor, lots of data!
6:39
An Improved Multi-sensor
29:40
Просмотров 29 тыс.
Meet Scrypted - Stream ANY Camera to ANY Home Hub
8:47
Самый быстрый пылесос!
0:30
Просмотров 17 тыс.