Это видео недоступно.
Сожалеем об этом.
Make A Smart Sound Sensor for Home Automation | ESPHome & Home Assistant Tutorial
HTML-код
- Опубликовано: 16 авг 2024
- KY-037 Voice Sound Detection Sensor (Amazon Affiliate) - amzn.to/3L2wsj9 amzn.to/405Pv01
KY-037 & KY-038 Voice & Sound Detection Sensor (AliExpress Affiliate) - s.click.aliexp... s.click.aliexp...
In this video I'm going to show you how to make a smart sound sensor using an ESP board like D1 mini, ESPHome, and Home Assistant.
This DIY project is super affordable, costing less than $4 in total, and the possibilities for automation are endless. You can use it to turn on your lights, upgrade your security system, and much more. I'll show you exactly what you need to get started, from the D1 Mini board to the KY-037 sound sensor and 3 jumper wires.
I'll also walk you through the software requirements, including ESPHome Dashboard and Home Assistant, which are essential for getting your smart sound sensor up and running.
So join me in this tutorial and let's create a DIY smart sound sensor that can improve your home automation game.
► MY ARTICLE ABOUT THAT TOPIC - peyanski.com/d...
► MY HOME ASSISTANT INSTALLATION METHODS FREE WEBINAR - automatelike.p...
► DOWNLOAD MY FREE SMART HOME GLOSSARY - automatelike.p...
► AFFILIATE LINKS FROM THIS VIDEO
KY-037 Voice & Sound Detection Sensor (Amazon) - amzn.to/3L2wsj9
4pcs KY-037 Voice & Sound Detection Sensor (Amazon) - amzn.to/405Pv01
KY-037 & KY-038 Voice & Sound Detection Sensor (AliExpress) - s.click.aliexp...
KY-037 Voice & Sound Detection Sensor (AliExpress) - s.click.aliexp...
D1 Mini (AliExpress) - s.click.aliexp...
D1 Mini (Amazon) - amzn.to/3A5jNoc
Jumper Wires (AliExpress) - s.click.aliexp... s.click.aliexp...
Jumper Wires (Amazon) - amzn.to/3fRlXyK
Micro USB Cable (AliExpress) - s.click.aliexp...
Micro USB cable (Amazon) - amzn.to/32tdxdF
(Optional) USB adapter EU US UK (AliExpress) - s.click.aliexp...
(Optional) USB adapter (Amazon) - amzn.to/3u2Tdvj amzn.to/3qXkJYS
► AFFILIATE LINKS
Shelly Store - bit.ly/3BwMMn2
SwitchBot Flash Deals - switchbot.vip/...
Reolink Flash Deals - shrsl.com/301ih
Aqara Amazon Store - amzn.to/3EpeCSb
Tech that I’m using right now - www.amazon.com...
Get $100 in credit over 60 days for DigitalOcean - m.do.co/c/6dd2...
Register for Kajabi from here app.kajabi.com... and I will share half of my commission with you (15%)
► CRYPTO AFFILIATE LINKS
Sign up for Crypto.com and we both get $25 USD (Referral code: xn86atnceg) - crypto.com/app...
Deposit more than $50 in Binance and receive 100 USDT cashback voucher - www.binance.co...
Binance - One of the biggest Crypto currency exchange - www.binance.co...
► SUPPORT MY WORK
Paypal - www.paypal.me/...
Patreon - / kpeyanski
Bitcoin - 1GnUtPEXaeCUVWdJxCfDaKkvcwf247akva
Revolut - revolut.me/kir...
Join this channel to get access to perks:
/ @kpeyanski
► TIME TABLE
00:00 Intro
00:10 How much will DIY Smart Sound sensor cost?
00:21 For what the DIY Smart Sound sensor can be used?
00:48 What parts are needed for the DIY Smart Sound sensor?
02:01 What software is needed for the DIY Smart Sound sensor?
03:14 Wiring of the DIY Smart Sound sensor
04:00 Uploading the ESPHome code to the D1 mini
06:38 Testing the DIY Smart Sound sensor from the embedded Web Interface
07:21 Adding the DIY Smart Sound sensor in Home Assistant
08:53 Creating a Home Assistant Automation using the DIY Smart Sound sensor
10:14 Challenge for You!
► THE ESPHOME CODE FOR THE DIY SMART SOUND SENSOR
gist.github.co...
✅ Don't Forget to like 👍 comment ✍ and subscribe to my channel!
► DISCLAIMER
Some of the links above are affiliate links. If you click on these links and purchase an item I will earn a small commission with no additional cost for you. Of course, you don’t have to do so in case you don’t want to support my work!
Great video! I'll place a sound sensor near my table saw so HA can automatically turn on the saw dust vacuum. This is much easier and cheaper than measuring the power from outlet.
Great use case indeed. Thanks for sharing and enjoy!
#SoundSensorOwned!!!! My usage is to let me know, when the dishwasher is finally ready. I had a smartplug before but this was not as precise and lead to a lot of false positives. With this sensor placed very near to the beeping piezo of the dishwasher im sure, it will be much more accurate!
That is super good! Thanks for sharing it and Congrats for the #SoundSensorOwned! Great job!
Very good Kiril - I wasn't aware of these amplified microphone modules. And also I can't believe I didn't know you can create an automation from a device's integration page with the "+" - wow!
Glad I was helpful and informative :) Enjoy!
Hi! This is awesome thanks! Could you do a tutorial on how to power these esp devices with batteries? I’d also love a vibration sensor tutorial! Thanks!
Glad you like it. I have no experience with batteries and such sensors so far. Vibration sensor is a good idea. I have to search for a suitable sensor. If someone knows about such - please share it!
This could be a very simple and non invasive away to make a dumb doorbell smart.
Yes, that is a great idea! Thanks for sharing...
Basic Arduino parts, i like it
Yeah, me too...
Thanks for the fantastic video👍
I am going to build this sound detector with the aim of hanging it outside.
It will light up the garden lights whenever a sound is heard, so as part of my home alarm.
Greetings from Belgium 🙂
Greetings to Belgium and thanks for the good words. Let us know about the result when you implement it
Have the project ready in the meantime.
I had to set the potentiometer on the microphone board to the highest sensitivity to get a readout in Home Assistant, the nice thing is that the decibel value corresponds to the actual value on a decibel meter.
In absolute silence, the microphone/readout fluctuates between 15 and 26 decibels, but these are fixed values.
With these values I can integrate the project into my alarm system.
Thanks again.
Regards,
Fred@@KPeyanski
Great work and very user friendly instructions. I’m using my sound sensor to monitor my Boy Scouts hut fire alarm
Wow, simple and easy. Part ordered.
Great, don't forget to share the news when you make your Smart Sound Sensor!
@@KPeyanski Almost there. I have it displayed in HA, but I must have the wrong pin for A0. I would have to be a little different and use an ESP32 D1 Mini instead of ESP8266 D1 Mini.
Great video, i will definitely try this.
I was searching a sound sensor compatible with HA so i can remotely monitor an appartment that is for rent and detect if the guests are throwing a party or making alot of noise and disturbing the neigbours, but without invading privacy by directly recording sound or video.
automation would be something like if there is a loud noise that is lasting longer that xy time, send me a notification. Then I can simply turn off the power in the entier appartment :D (of course, just kidding about the power)
oh and i was thinking to back it up with the aqara fp2 to confirm that there are 5 people or more, but i dont know if HA can detect the number of people with the sensor
Great video. I'm putting this in my Chicken House to detect any loud noises at night, hopefully to prevent foxes getting my Chooks 🙂
such a great use case :) thanks for sharing it... btw is it allowed to shoot the fox if it is in your chicken house?
Thank you.
Thank you too Ron
I have created an automation that when the dog makes sound at night, it plays a prerecorded comforting message. However I am experiencing unreliable sensor readings. The readings don't come through into home assistant sometimes for hours, even if there is sound made near the microphone. Any idea how to improve this? Is there a way to have the measurements published through mqtt?
Hi I just try to do that with an esp32 Wroom 32 but I get some error
"component 214 adc.sensor took a long time for an operation
component 215 components souhould block for at most 20-30 ms"
I want to use this smart sensor to know when my old hi-fi is playing and start an action in HA when yhe speaker stop to send music.
But it tooks almost 30 s to interact with HA.... and the difference of Db is too low...
Something wrong, but what ?
Thanks for the cool video dude!
Question: is it possible to make something like that work with Smart Life or Tuya App?
great as always... please can you describe the slider?? I still cannot achieve it on my web_server platform... duno why. thanks
Thanks for the video. What pins would be used on esp32 30 pin and 38 pin as opposed to D1? Thanks
It would be nice to use that with an ESP32 & Blue Tooth proxy and a basic lux, temp, humidity, PIR sensors & the Radar.
Maybe add a little I2C display, that would handle a good chunk of room requirements in the one package.
Hi, I built this following your instructions. Do you know if there is a way to connect it to Tuya or Google Home? I don't use HomeAssistant I don't want another app if I can avoid.
i wish i could have it detect specific sounds... like the alarm from the refrigerator saying the door is open or the ding from the dishwasher saying it is done... stuff like that. and i would need it to ignore other sounds.
I'm not sure how this can be done with only this sensor ...
Very interesting. I would like to use the sensor to detect the particular chime at the end of the washing machine cycle.
Any idea if this would work or can be adapted ?
Thanks
This is what I am looking for too. Did you manage to get it to work?
Can this be made using a ZigBee ESP chip? I'm looking for a way to detect baby crys from my daughters bedroom, but trying to stay away from WiFi where possible.
#SoundSensorOwned just put one in my shed an it actually works pretty well!
Wow, that was really fast! Congrats :) What is your action ? I mean what is happening when loud sound is detected?
Thanks for the helpful and excellent video!
I saw that you pasted the long code after pasting a line of code about port 80. Where did you get the long code to paste it into the corresponding YAML file as well?
Found. Thanks!
great, enjoy!
#SoundSensorOwned
Wow great! Another one in the club. Congratulations
I used this to detect my smoke detector, I used the digital output and as my detectors are linked, if it sounds on any the one with the sound sensor near it will trigger
Sounds good, but it seems that you don't use it anymore. Did you switch to something else?
I've used one for a while to see if the dogs start barking at home when we are out. Then we can check on the cameras to see what's going on.
Yes, great use case thanks for sharing it :)
Great video Kiril! I have a problem my sensor seems to be very unresponsive. The numbers only move slightly with loud noises. Even if I adjust both calibration settings.
What is the exact model? Is it K0-37 or K0-38?
@@KPeyanski Hi it is the HW 485
I will order the KO-37 that must be the problem
Hello, is it possible to adapt this to Google Home?
Thank you for this Kiril, im having this weird issue :
21:26:41 [D] [sensor:093]
'RAW SoundEsp': Sending state 0.00000 % with 1 decimals of accuracy
21:26:41 [D] [sensor:093]
'Db SoundEsp': Sending state 25.53605 db with 2 decimals of accuracy
21:26:41 [W] [component:204]
Component adc.sensor took a long time for an operation (0.51 s).
21:26:41 [W] [component:205]
Any tips on what this might be?
I've got exactly the same problem, did you manage to solve it ?
I'm having exactly the same error message "Component adc.sensor took a long time for an operation" and my sensor does NOT work. I did the DIY on a second D1 Mini and KY-037, still the same. Did you or someone else managed to solve the issue ?
@@yulathh am afraid not ....tried a couple of other things but just refused to work ....let me know if you solve it too ..
nice!
Glad you like it :) Are you going to make one?
@@KPeyanski yes, it will be part of an alarm system!
Can you use this to actually listen to the sound through HA? So if it triggers, you can listen to what it is hearing?
no, sorry that is not possible
When I set the template number platform, the node gets constantly disconnected from de API, If I remove it works fine
Can you please give more details ?
Do you also have examples of using this with infrasound? The Alexa dots use that for presence detection.
No, first time hearing about this. Can you please share more info?
It’s called Ultrasound Motion Detection and part of the beta feature set.
Hi. I have installed and reinstalled many times, but I keep getting the following message, although the sensor is working '5:13:42 [W] [component:204]
Component adc.sensor took a long time for an operation (0.51 s).
15:13:42 [W] [component:205]
Components should block for at most 20-30ms.
Any ideas that I can try so as to remove the yellow error message from the sound sensor web portal?
Thanks
I am getting the same error but do not Know why, the sensor appears to be working thought
i have it installed now next to my roof tiles , so when pigeons land and try get under my solor panels i can trigger automation to make them fly away , they wake me up so i wana automate it
sounds really useful, but how are you going to fly them away? Using some siren or something?
@@KPeyanski well 1 air line with 12v valve to spray air , orr I have a 12v cement mixer vibratior to attach to a single rafters
is there a way to detect mosquitoes? and turn a buzzer, this would be very helpful in tropical weathers where there is malaria or zyka.
I doubt about that, but you never know...
@@KPeyanski Why do you think it is not possible? maybe set it to measure Hz, if I is possible, probable do the job. Thanks for your answer
From experience, I find INMP441 mics way better...
Is it more sensitive or have some other features? What exactly is better? Thanks for sharing in advance.
@@KPeyanski With INMP441 seems to be no lag. Reacts instantly to the sound. I use them for Sound Reactive WLED and it does better job. Probably more sensitive too, haven't tested that extensively.
Do you think it's a good way to make a non-party sensor? Like the sensors hotels used to use. When there is more than X db telegram send a message to my phone.
wow great idea :) especially if you rent some space ...
Is there an option to calibrate the sensor?
Yes, using the physical knob on the device or using the sensitivity slider from Web Interface or Home Assistant
I would like it to detect a specific frequency, like activation of a smoke alarm, but ignore normal speech or other sounds in the house.
Hmm interesting challenge. For that a custom ESPHome code should be written so the frequency of your alarm to be isolated.
HomePod can do that with the new software update
When I get time, I might investigate implementing the FFT (Fast Fourier Transform) in ESPHome so that it can detect specific frequencies.
Have managed this using the digital output, and setting the limit to be very loud, and putting the sensor near 1 of my linked smoke detectors
I just built one for when my dog is barking when I'm away
Great, and when you receive a notification that your dog is barking what are you doing next? Are you opening the security cameras or something similar?
Let's try it out... detect snoring time?😆
I was looking for a way to dynamically control volume on the TV instead of just setting a limit so the kid doesn't blast the volume all the way up. Why dynamically? Because otherwise the volume can get too low at time and the kiddo has every right to complain.