Tutorial - Multi-sensor setups for ESP32 & Home Assistant

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ส.ค. 2023
  • 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 30

  • @tomh.3513
    @tomh.3513 หลายเดือนก่อน +1

    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 5 หลายเดือนก่อน

    Very useful, I’m planning on making some ESP32 T&H sensors

  • @bigbigspoon
    @bigbigspoon 9 หลายเดือนก่อน +24

    I just want the fan to turn on when someone farts

  • @musicamessage2915
    @musicamessage2915 9 หลายเดือนก่อน

    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 9 หลายเดือนก่อน +1

    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.

  • @mdsayemfaiyaz6425
    @mdsayemfaiyaz6425 9 หลายเดือนก่อน

    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

  • @MikeHarris1984
    @MikeHarris1984 9 หลายเดือนก่อน +1

    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.

  • @Kelekona_808
    @Kelekona_808 9 หลายเดือนก่อน +1

    Wow and honest evergreen video. Trying to use this for work Jason?

    • @Xajono
      @Xajono หลายเดือนก่อน

      Yeah

  • @user-ss2og1mj6g
    @user-ss2og1mj6g 5 หลายเดือนก่อน

    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?

  • @enriqueenrique-hd7zj
    @enriqueenrique-hd7zj 5 หลายเดือนก่อน

    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.

  • @moizahmad1015
    @moizahmad1015 4 หลายเดือนก่อน

    Can we use two sensors with SCL and SDA with a single esp, because it does not work like that

  • @MrSuperSnuiter
    @MrSuperSnuiter 9 หลายเดือนก่อน

    Please continue to make tutorials.

  • @markstanchin1692
    @markstanchin1692 9 หลายเดือนก่อน +2

    Hi, do you have a link where you automated your kitchen over the stove fan/light hood. That’s my next project.

  • @oithetresen609
    @oithetresen609 4 หลายเดือนก่อน

    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.

  • @elmonte7834
    @elmonte7834 9 หลายเดือนก่อน +2

    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?

  • @apoc519
    @apoc519 4 หลายเดือนก่อน

    How did you know to connect it to pins 22 and 33?

  • @jaspercas
    @jaspercas 6 หลายเดือนก่อน

    Thanks for this, I'm used to programming arduino,java and c but YAML from esphome and home assistant is confusing to me😅

  • @kallekarlsson2181
    @kallekarlsson2181 7 หลายเดือนก่อน

    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 6 วันที่ผ่านมา +1

      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.

  • @lemurtheory9350
    @lemurtheory9350 6 หลายเดือนก่อน +1

    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.

  • @suntzu6122
    @suntzu6122 7 หลายเดือนก่อน

    How many sensors can 1 esp32 monitor?

  • @rotated9516
    @rotated9516 3 หลายเดือนก่อน

    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?

  • @liuesstuo9413
    @liuesstuo9413 9 หลายเดือนก่อน

    🎉🎉🎉🎉

  • @vvorldnewsmedia
    @vvorldnewsmedia 9 หลายเดือนก่อน

    bro where is the code?

  • @MarkGhali
    @MarkGhali 9 หลายเดือนก่อน

    aliexpress these sensors are a lot cheaper if you can wait a month for shipping

  • @TechySpeaking
    @TechySpeaking 9 หลายเดือนก่อน +2

    First

  • @scubieman
    @scubieman 9 หลายเดือนก่อน

    First. nate sucks