DIY Smoke Sensor for Home Assistant with D1 Mini, MQ-2 & ESPHome

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024

Комментарии • 97

  • @businesstalk
    @businesstalk Месяц назад +1

    Your DIY videos are awesome!! Thanks!

  • @videosPGA
    @videosPGA 2 года назад +2

    Thanks for the excellent explanation. I would like to put a buzzer that is activated when the lower limit is exceeded, could you tell me how to do it? Thank you

  • @TimHodgesofEdinburgh
    @TimHodgesofEdinburgh 2 года назад +1

    Thank you. Been meaning to add a smoke alarm in the loft where I keep the Home Assistant Pi. This will do the job perfectly.

    • @KPeyanski
      @KPeyanski  2 года назад

      Enjoy!

    • @TimHodgesofEdinburgh
      @TimHodgesofEdinburgh 2 года назад +1

      @@KPeyanski finished it. Only snag was when I tried to do the firmware install onto the esp8266 whilst connected to the home assistant pi. ESPhome couldn't see the Pi port that the d1 was plugged into. After a bit more research I did a manual install using the windows firmware installer. It then connected over WiFi straight away and automations easily setup. Thanks

    • @okanerdem
      @okanerdem 2 года назад

      @@TimHodgesofEdinburgh How did you do this?

  • @robertaccess
    @robertaccess 2 года назад +1

    OMG, very very glad to see you posting... Hope you are welll....

    • @KPeyanski
      @KPeyanski  2 года назад

      Yes, I'm fine thank you :) and many thanks for the comment. Take care!

  • @ronm6585
    @ronm6585 2 года назад +1

    Good job my man. I haven't set one up yet but I am planning to. Thanks.

    • @KPeyanski
      @KPeyanski  2 года назад +1

      Thanks, that means I've released this video just in time for you ;)

    • @ronm6585
      @ronm6585 2 года назад

      @@KPeyanski Lol. Yes indeed. Thanks.

  • @andreaschen1377
    @andreaschen1377 2 года назад +4

    Thank you for your instructions. I'm wondering if this application applies to ESP32 boards b/c there is a difference for the ADC pin voltage tolerance. The MQ sensors are driven by 5V so under high PPM the sensor output can go well beyond 3.3V, the absolute maximum for ESP32 GPIOs. This posts a threat to fry ESP32 boards if my understanding is correct. The solution is discarding the MQ sensor board and wiring from the 6pin module, dividing the onboard RL (1k Ohm, code 102) into two resistors e.g. 330 Ohm and 470 Ohm (to GND), then applying ADC around the 470 Ohm resistor we get a perfectly safe 0V-2.94V input range to ESP32 GPIOs. Kindly share your thoughts.

    • @davidhopkins
      @davidhopkins 3 дня назад

      Great question! Not answered after 2 years??!!Poster has answered most comments. Do you need to toss the mq board? Cant we wire the sensor though a level shifter? This is the frustration with these esp boards. So many sensors are designed for 5v.

  • @andresteyn1884
    @andresteyn1884 2 года назад

    Thank you. I tried your smoke sensor and it works perfectly.

    • @KPeyanski
      @KPeyanski  2 года назад +1

      Great to hear! Check my other sensor videos as well

  • @cvasantrao
    @cvasantrao 10 месяцев назад

    Nice and useful video. Could do it successfully . One query. Is it possible to calculate the ppm? Thanks for the great video.

  • @louisviciedo
    @louisviciedo Год назад +1

    Great video Kiril! Very clear instructions. I was able to set up 5 smoke sensors successfully, however how can we disable the red LED light?

    • @KPeyanski
      @KPeyanski  Год назад

      Glad you like the video and no idea abut the LED. Enjoy your sensors!

    • @mihaiionita3919
      @mihaiionita3919 11 месяцев назад

      Remove it with a set of pliers from the board.

  • @asopok
    @asopok Год назад

    Great video. How do I add a buzzer to it so that the buzzer sounds when smoke or gas is detected

  • @rogeriocamargo1984
    @rogeriocamargo1984 2 года назад +1

    Very good! I did and it works fine!

  • @tristanssmartesheim
    @tristanssmartesheim 2 года назад +1

    Good idea. The issue is the Power supply, and that sou have to put it on the ceiling.

    • @KPeyanski
      @KPeyanski  2 года назад

      Yes, that could be an issue if your place is already finished and pretty. Some cables going to the ceiling will not be a pretty sight.

  • @reffo77
    @reffo77 Год назад

    Hi, I have a question .. on my Esp32 Wroom - I do not have marked A0 Pin -. where should I connect ? thanks for help great video
    btw

    • @KPeyanski
      @KPeyanski  Год назад

      Is there an analog pin?

    • @reffo77
      @reffo77 Год назад

      @@KPeyanski I suppose so .. seems from 32-39 are both a and d

  • @Pietrogramma
    @Pietrogramma Год назад

    Complimenti per il video, come sempre perfetto. Come ti hanno già chiesto altri, sarebbe perfetto aggiungere un cicalino ed un led rosso che si accendono superando un determinato valore; considerato, però, che non hai risptto suppongo non si possa fare, vero? Ciao e complimenti

  • @waelzayed
    @waelzayed Год назад

    Great job, well done. Thanks for the idea

  • @vegaswayne247
    @vegaswayne247 2 года назад +1

    I got a 6 pack of these from Amazon. I need to figure out where to use all of them. I noticed that my percent level went from 55% when I first hooked it up to a fairly stable 25% after a day. I think I will use them where natural gas is used, such as the furnace in my attic and the water heater in the garage.

    • @KPeyanski
      @KPeyanski  2 года назад

      That sound like a plan to me. Enjoy!

    • @alvinnoboa8694
      @alvinnoboa8694 Год назад

      Almost sure that in daylight time the reading will be higher than at night just bz of human activity

  • @techdad6135
    @techdad6135 2 года назад +1

    Thank you for this how-to! Definitely will be a future project for me. I was wondering if you could do a video for a bed occupancy sensor using a force sensitive resistor? tom_i did a good write up on the home assistant community forums but I have not found a good home assistant /esphome video for this project. Just a suggestion for a possible future video. Take care and keep up the good work. Love the videos.

    • @KPeyanski
      @KPeyanski  2 года назад +1

      Many thanks for the good and positive comment and many thanks for the idea 💡 I will check it out. Good luck with your future project!

  • @jitendrasonavane82
    @jitendrasonavane82 2 года назад +1

    Waiting for such videos since couple months. Many Thanks for sharing. Just need to confirm can we use above code for sensor MQ135 or not.

    • @KPeyanski
      @KPeyanski  2 года назад

      I think it will work, but I guess you have to try. Don’t forget to share the results afterwards.

    • @jitendrasonavane82
      @jitendrasonavane82 2 года назад

      Yes Sir, it is working perfectly for sensor MQ135. Again thanks for acknowledging my question.

  • @botialoach1
    @botialoach1 2 года назад

    You video are always very informative keep them coming, I have a question have set up everything, the only problem is that I get a sensor reading of 4.199% and and not 52% why?

    • @KPeyanski
      @KPeyanski  2 года назад

      That should be OK. Test yours with some smoke and if it reacts then you are good to go. Maybe you are living in the Alps and your Air is very clear :) Mine sensor started from the 40-50% and after a day they are going to 10-15%

  • @AndyBerman
    @AndyBerman 2 года назад

    Great video! I’m already using AO on my D1 Mini. What would need to change to use the digital out of MQ2 instead of the analog out? Thanks.

    • @KPeyanski
      @KPeyanski  2 года назад

      I’m not sure about that. This should be researched. Maybe someone else can answer you right away.

    • @marioremyalmeida
      @marioremyalmeida 2 года назад +1

      MQ-2 sensor has a digital out pin, you can adjust the sens via the onboard resistor

  • @NewAgeTechnologies
    @NewAgeTechnologies 2 года назад

    Thanks for your useful video. Could you pls let me know how to install d1mini by manual download?

  • @aaronsharp3858
    @aaronsharp3858 Год назад

    I'm all for smart home tech have it everywhere but do not base your safety off prototype devices
    This is great as an addition too main smoke alarms

  • @cristian.s94
    @cristian.s94 Год назад

    Is there any zigbee alternative to the D1 Mini? Thanks.

  • @kelangthangvn
    @kelangthangvn Год назад

    thanh you for how to!, the only problem is that I get a sensor reading of 100% and and not change why..?

  • @T1ZECLOm
    @T1ZECLOm Год назад

    Спасибо брат за помощь

  • @d-popov
    @d-popov Год назад

    Супер! Поздравления за хубавия материал.

    • @KPeyanski
      @KPeyanski  Год назад

      Благодаря за хубавите думи! Радвам се, че ти харесва!

  • @jordimartin2001
    @jordimartin2001 2 года назад

    I am following your online articule but using an esp32. I connected the A0 to pin GPIO36. In home assistant, I am getting a static reading of 102.60. Any ideas?

  • @okanerdem
    @okanerdem 2 года назад

    If we are using HA on the VM, how can we connect to configure ? Is it possible to connect by wifi for first config or we need to use a raspberry pi for this?

  •  22 дня назад

    I want to add MQ02 and buzzer to esp8266 and trigger the buzzer when esp8266 gas value exceeds 20%. But I was not successful. :(

  • @romanklein6081
    @romanklein6081 2 года назад

    I will make it for kitchen. Hope it will not make false alarms if we are cooking on pan ;)

    • @KPeyanski
      @KPeyanski  2 года назад +1

      Great, you have options to set the sensitivity of the sensor as well as to fine tune the automation, so I think you will not have problems

  • @boopeshkumarprabhakaran
    @boopeshkumarprabhakaran 2 года назад

    Can i use mq6 lpg sensor to check gas leaks? And integrate that with esphome? Does it work the same way yu used mq2 sensor?

    • @KPeyanski
      @KPeyanski  2 года назад

      probably yes, but I guess you have to try!

  • @waelzayed
    @waelzayed Год назад

    The 1st Smoke detector got detected & installed with no issue, but when I try to add another smoke detector, it couldn't be detected by the USB port. Any idea why? Any change in the procedure for the second board?

    • @KPeyanski
      @KPeyanski  Год назад

      You have to change the name of the second device in the yaml code. That is all

  • @MustangBoss1973
    @MustangBoss1973 2 года назад

    Yes, As i'm not messing with a of the shelf smoke alarm as an insurance company (worm) would use it as an excuse to not payout.
    But by using this its totally separate and the insurance company can continue about the day with head up ****

    • @KPeyanski
      @KPeyanski  2 года назад +1

      Yes, insurance companies usually doesn't like to pay when that is possible they just want to sell :)

  • @schoubrian
    @schoubrian 2 года назад +1

    Maybe for my garage or outhouses.

    • @KPeyanski
      @KPeyanski  2 года назад

      Yes, great idea 👍 Wish you success and don't forget to share the results here afterwards :)

  • @Chikatosama
    @Chikatosama Год назад

    Yes😊

    • @KPeyanski
      @KPeyanski  Год назад

      Great! Thanks for sharing 🙏

  • @samiraslan9735
    @samiraslan9735 7 месяцев назад +1

    A bit late maybe but
    #SmokeSensorOwned

    • @KPeyanski
      @KPeyanski  7 месяцев назад

      No you are just in time. Nobody is late here for this great DIY Smoke Sensor. Enjoy it and don't forget to check my other DIY Smart Sensor videos as well

  • @fotiskanellopoulos
    @fotiskanellopoulos 2 года назад

    This video AND the temp/humidity could be one right ? Have you tried to make one sensor with temp/humidity/smoke ?

    • @KPeyanski
      @KPeyanski  2 года назад +1

      Yes, it is possible but I didn’t try this yet

  • @titas_saha
    @titas_saha 5 месяцев назад

    Can it detect cigarette smoke also?

    • @KPeyanski
      @KPeyanski  5 месяцев назад +1

      not quite sure here, but I think it should detect it

    • @titas_saha
      @titas_saha Месяц назад

      @@KPeyanski Thank you for the reply.

  • @stooge351
    @stooge351 2 месяца назад

    #SmokeSensorOwner - i'm also late to the party, i've actuay had an MQ-2 smoke sensor for ages, but never implemented it untill last week where i have made my own multi sensor because i'm too cheap to buy 'ready made ones' hahaha - i do not rely on this as my stand-a-lone smoke detector, as i have ones already installed in my home, this is just a nice little addition for a notification, however, has anyone found the best '%' detection for a notification? like...what percentage increase are people using for notifications? 20% ? 30% ? i still havent found the right setting yet.....just curioous...
    btw kiri ...awesome yt video.....keep it up :)

  • @Mario_SMR
    @Mario_SMR Год назад

    What is the difference between this ESPHome and Tasmota??

    • @KPeyanski
      @KPeyanski  Год назад

      different software, look, interface, developers, etc, but same target devices

  • @dallibabs
    @dallibabs Год назад +1

    #SmokeSensorOwned

    • @KPeyanski
      @KPeyanski  Год назад

      Great work John! Enjoy and don't forget to check my other DIY smart sensor videos. I have a whole playlist about them.

    • @dallibabs
      @dallibabs Год назад +1

      @@KPeyanski I will, I already subbed and have watched some other vids. Keep up the good work. Much appreciated.

  • @The_Birdman
    @The_Birdman 2 года назад

    Does anyone know how many devices can be powered from the 5v PIN of a D1 Mini? Im sure the answer isn't straight forward. For example, it would be nice to power a PIR, Temp/Humidify and also the Smoke sensor all from the same D1 Mini.

    • @vegaswayne247
      @vegaswayne247 2 года назад +1

      The power doesn't have to go through the D1 Mini. You can hook up a power supply to a power rail and hook up as much as the power supply can handle. I did this with an ESP32 that didn't pass through the 5V.

  • @benjamink7311
    @benjamink7311 Год назад

    Hi Bro, my mq2 is always showing 100% changed sensors still the same

  • @jaimemotavaz3999
    @jaimemotavaz3999 2 года назад +1

    I think your project has a huge problem. Mq2 sensor outputs 5v in the analog port when the smoke reaches his maximum value. This means that at that point your d1 mini will fry because the maximum allowed value for a original d1 mini is 3.2v (it has a voltage divider for the esp8266 port, which only supports max 1v)
    At some point of time, if you have a fire your d1 mini could die at some point.

    • @iliahborg7079
      @iliahborg7079 2 года назад

      Basically, you are right; analog output from MQ-2 is 0 ~ 4.2V. However it reaches above 3V only at extreme concentrations, so there are more chances that the fire will fry the setup than first ;)

    • @andreaschen1377
      @andreaschen1377 2 года назад

      @@iliahborg7079 If considering other MQ sensors this concern is very valid. Some MQ sensors go beyond 3.3V very easily on the AO pins.

  • @easthulk99
    @easthulk99 2 года назад

    Tq for the video

  • @jasonflt
    @jasonflt Год назад

    would be better with a mini speaker to make alarm sounds

  • @shandradm911
    @shandradm911 Год назад

    I jave problem this api not connected with wemos he said api failed connect

  • @cvasantrao
    @cvasantrao 10 месяцев назад

    #SmokeSensorOwned

  • @jitendrasonavane82
    @jitendrasonavane82 2 года назад +1

    #SmokeSensorOwned

    • @KPeyanski
      @KPeyanski  2 года назад

      Oh, yes 👏 that’s what I wanted to see. Congratulations mate!

  • @jaroslavcihlar9468
    @jaroslavcihlar9468 2 года назад +1

    #SmokeSensorOwned

    • @KPeyanski
      @KPeyanski  2 года назад

      Very glad to see that Jaroslav! Enjoy!

    • @jaroslavcihlar9468
      @jaroslavcihlar9468 2 года назад

      @@KPeyanski would it be possible to add small piezo?