Cheap DIY Motion Sensor that works with ESPHome & Home Assistant

  Рет қаралды 39,348

KPeyanski

KPeyanski

Күн бұрын

Wemos D1 Mini (AliExpress affiliate) - s.click.aliexpress.com/e/_AFgAIp
5 Pack Hc-sr501 Pir Motion Ir (AliExpress affiliate) - s.click.aliexpress.com/e/_Atijaj
Passive Infrared Sensors or #PIR sensors for short or just Motion Sensor are completely supported by #HomeAssistant and ESPHome. I have a question for you why to buy an expensive motion sensor when you can #DIY for cheap. In this video I will show you what parts you will need, how to install ESPHome, how to add the motion sensor to Home Assistant and how to make automations.
Using smart motion sensors on strategic places at your home is one of the quick wins when you are turning your home into a smart home. Of course you can use out of the box motion sensors like Shelly Motion or other similar, but they are not coming cheap, especially if you have to buy a lot of them. That is why we are going to create one that will cost around 4 US dollars and it will take only few minutes of your time to make it. I will show you everything step by step and at the end we will see a real demo with Home Assistant automation.
Let’s see how.
► TIME TABLE
00:00 Intro
01:38 What is needed for the DIY Motion Sensor?
03:04 How to connect the D1 Mini to PIR sensor?
03:34 Install ESPHome as Home Assistant add-on
05:00 Editing the ESPHome configuration
06:59 Install ESPHome on D1 Mini
07:55 Add the DIY Motion sensor to Home Assistant
09:02 How to make Home Assistant automation with the DIY Motion Sensor?
10:38 Outro
► MY WRITTEN ARTICLE - peyanski.com/cheap-diy-motion...
► MY GUIDE - ON SALE
Smart Home Getting Started Smart Home Guide v2.0 - peyanski.com/product/smart-ho...
► SUPPORT MY WORK
Patreon - / kpeyanski
Paypal - www.paypal.me/kpeyanski
Bitcoin - 1GnUtPEXaeCUVWdJxCfDaKkvcwf247akva
Revolut - revolut.me/kiriltk3x
► COME AND SAY “HI” on:
My Discord server: invite.gg/kpeyanski
My Twitter: / kpeyanski
► AFFILIATE LINKS
Wemos D1 Mini - s.click.aliexpress.com/e/_AFgAIp
5 Pack Hc-sr501 Pir Motion Ir Sensor Body Module Infrared - s.click.aliexpress.com/e/_Atijaj
jumper (Dupont) wires - s.click.aliexpress.com/e/_A3YiR3
USB to microUSB Cable - s.click.aliexpress.com/e/_9QW1Wv
USB Plug Adapter 1A - s.click.aliexpress.com/e/_9xdSIH
NodeMCU-32 ESP32 wifi+Bluetooth (ESP32) - s.click.aliexpress.com/e/_AVGyc1
NodeMCU V3 (ESP8266) (AliExpress affiliate link) - s.click.aliexpress.com/e/_AArg2V
Ubiquiti UniFi Dream Machine (UDM) - amzn.to/34B0FQK
Raspberry Pi 4 4GB Starter Kit with 32GB Micro SD Card - amzn.to/3qaI5qN
Raspberry Pi Zero W kit 2 - s.click.aliexpress.com/e/_A47KBK
Raspberry Pi Zero W Official Starter Kit (Amazon Affiliate link) - amzn.to/3ndcX87
Tech that I’m using right now - www.amazon.com/shop/kpeyanski
Get $100 in credit over 60 days for DigitalOcean - m.do.co/c/6dd2caef1f1f
► CRYPTO AFFILIATE LINKS
Sign up for Crypto.com and we both get $25 USD (Referral code: xn86atnceg) - crypto.com/app/xn86atnceg
Coinbase - Get $10 in Bitcoin when you buy or sell $100 or more - www.coinbase.com/join/peyans_4
Binance - One of the biggest Crypto currency exchange - www.binance.com/en/register?r...
► ESPHome configuration
esphome:
name: pir-sensor-1
platform: ESP8266
board: d1_mini
Enable logging
logger:
Enable Home Assistant API
api:
ota:
password: “512345rt234gwef”
wifi:
ssid: "A IoT"
password: “SmashTheLike”
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Pir-Sensor-1 Fallback Hotspot"
password: “somepass”
captive_portal:
binary_sensor:
- platform: gpio
pin: 13
name: "PIR Sensor"
device_class: motion
► HOME ASSISTANT MOTION SENSOR AUTOMATION
automations.yaml entry
alias: When PIR motion sensor is activated
description: ''
trigger:
- platform: state
entity_id: binary_sensor.pir_sensor
to: 'on'
condition: []
action:
- service: light.turn_on
target:
entity_id: light.shellybulbduo_8caab5616d5c
mode: single
► USEFUL LINKS
PIR Sensor 3D printed cases - www.yeggi.com/q/hc+sr501/
ESPHome PIR Sensor page - esphome.io/cookbook/pir.html
✅ 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!

Пікірлер: 166
@vegaswayne247
@vegaswayne247 3 жыл бұрын
What I like about these is that I don't have to worry about changing the batteries. I added some code in esphome to show the wifi signal strength and up time. It lets me know how my wifi network is preforming. Just add this to the yaml code and change the name to whatever you are using. sensor: - platform: wifi_signal name: "PIR WiFi signal" update_interval: 60s - platform: uptime name: "PIR uptime" unit_of_measurement: "min." filters: multiply: 0.0166666667
@KPeyanski
@KPeyanski 3 жыл бұрын
Great tips 👏 thanks for that! Do you have any issues with false positives? If yes, how you deal with them? Thanks one more time for the useful comment.
@vegaswayne247
@vegaswayne247 3 жыл бұрын
@@KPeyanski I had false positives when I used short Dupont wires like you did. I switched to longer wires, over a meter, and moved the sensor away from the D1-mini and it fixed the problem. I used cat 5e and connected it using a wire wrap tool, but soldering would also work. The PIR sensors appear to have been designed for alarm systems where they would be away from other electronics.
@KPeyanski
@KPeyanski 3 жыл бұрын
Incredible tips. I will pin this. Thanks 🙏 Also feel free to join my Discord server. We need ppl like you there - invite.gg/kpeyanski
@Musicman-50
@Musicman-50 2 жыл бұрын
I've used Home Assistant for several years now and noticed the Esphome integration, but had no idea how easy it was to use. Just ordered 5 nodemcu and 5 motion sensors. Now I can have my lights come on as I ever l enter certain times. Can't wait to try them out. Thanks for this great tutorial. 👍
@blakeXYZ
@blakeXYZ 2 жыл бұрын
Excellent guide! Straightforward and to the point! Thanks!
@KPeyanski
@KPeyanski 2 жыл бұрын
Glad it helped!
@jerrydon1085
@jerrydon1085 3 жыл бұрын
Super walkthrough! So cool too.... that GRAY thumbs up symbol is a great "mouse click" sensor, turns blue on a click, simply amazing!!!
@KPeyanski
@KPeyanski 3 жыл бұрын
hahah glad you like both the video and the thumbs up automation :) What do you say It works flawlessly? 🤣
@Ddlg99
@Ddlg99 10 ай бұрын
Definitely worked! Happy 1k!
@gilesh3895
@gilesh3895 2 жыл бұрын
Followed the on al the way through so excellent. Love your work
@KPeyanski
@KPeyanski 2 жыл бұрын
Welcome aboard of #PIRowners! And thanks for that comment :)
@abe677
@abe677 3 жыл бұрын
Great video! The real hang-up is packaging these DIY devices, especially for outdoor use.
@KPeyanski
@KPeyanski 3 жыл бұрын
It sure is! That is why I'm asking for help with 3d printer models if there is someone that wish to help. Thanks for the comment.
@user-po6fp5ik1y
@user-po6fp5ik1y 10 ай бұрын
Tell me when can I order
@GaryRobas
@GaryRobas 3 жыл бұрын
Thanks for a great presentation!
@KPeyanski
@KPeyanski 3 жыл бұрын
My pleasure! Glad you enjoy it!
@rachidyekini1898
@rachidyekini1898 3 жыл бұрын
I like your videos, very easy to understand, thanks
@KPeyanski
@KPeyanski 3 жыл бұрын
Glad to hear that! Enjoy!
@ronm6585
@ronm6585 3 жыл бұрын
Great instructions. Thank you.
@KPeyanski
@KPeyanski 3 жыл бұрын
Thanks for watching and commenting, Ron!
@hamadalmarri2141
@hamadalmarri2141 3 жыл бұрын
As usual , Great job :)
@KPeyanski
@KPeyanski 3 жыл бұрын
Thank you! Cheers!
@EricOnYouTube
@EricOnYouTube 2 жыл бұрын
Thank you. This worked beautifully. :)
@KPeyanski
@KPeyanski 2 жыл бұрын
You're welcome!
@bill_automated1226
@bill_automated1226 3 жыл бұрын
Another great video Kiril! Thanks. I love how easy Esphome has become to use.
@KPeyanski
@KPeyanski 3 жыл бұрын
Yes, ESPHome become like native way to go after Nabu Casa acquired the ESPHome. Love it.
@erikvaliquette9773
@erikvaliquette9773 3 жыл бұрын
I tried the blue thumb automation and it worked! 😂😂
@KPeyanski
@KPeyanski 3 жыл бұрын
I told you and it works every-time 🤣 Thanks!
@iseymour99
@iseymour99 3 жыл бұрын
Is a great video. Thx
@KPeyanski
@KPeyanski 3 жыл бұрын
Thank you as well for the good words! 👌
@markusdick5534
@markusdick5534 2 жыл бұрын
#PIRowned Hi Kpeyanski, I took NMCUV3 ESP8266 and HC-SR501. Make all as you show in your Video and I say WOW. It work all fine and perfect. Please get so on by making this good and useful Videos, BRAVO
@KPeyanski
@KPeyanski 2 жыл бұрын
Welcome to the club! I'm very glad that I managed to help
@irlshrek
@irlshrek 2 жыл бұрын
so cool!
@KPeyanski
@KPeyanski 2 жыл бұрын
Glad you think so! Enjoy!
@benjamingay1897
@benjamingay1897 2 жыл бұрын
Thank you for the detailed video!
@KPeyanski
@KPeyanski 2 жыл бұрын
My pleasure!
@Musicman-50
@Musicman-50 2 жыл бұрын
SUGGESTION.. Could you make a tutorial on building a cheap Wifi Door Sensor.? I'm sure using these D1 Mini boards and a cheap (Reed/Magnet) contact switch would be very useful to a bunch of people. Thanks in advance. 👍😊
@MrRG118
@MrRG118 3 жыл бұрын
I clicked the thumbs up button twice and is didn't stay blue. :D
@KPeyanski
@KPeyanski 3 жыл бұрын
Haha only odd numbers are counted for this automation :)
@rodanvsandrew
@rodanvsandrew 2 жыл бұрын
#PIRowned - working great!
@KPeyanski
@KPeyanski 2 жыл бұрын
Perfect! Thanks for sharing!
@ignaciotorrecillas1787
@ignaciotorrecillas1787 3 жыл бұрын
Excellent solution, cheap and effective! I looking for similar solution but working with zigbee instead of wifi. Do you know how to do it and can you please make a video explaining how to do it?
@KPeyanski
@KPeyanski 3 жыл бұрын
Thanks for the comment and for the suggestion. I will think about it.
@ArjenWols
@ArjenWols 3 жыл бұрын
#PIROwned with ESP Easy Mega, Domoticz and Wemos D1 Mini expansion boards
@KPeyanski
@KPeyanski 3 жыл бұрын
Great to hear! Very good job! Enjoy!
@nishantpiano
@nishantpiano Жыл бұрын
#PIRowned awesome tutorial and very useful
@KPeyanski
@KPeyanski Жыл бұрын
Glad to hear that! Congrats and enjoy! Good job 👍
@marine1718
@marine1718 2 жыл бұрын
You rock
@KPeyanski
@KPeyanski 2 жыл бұрын
Thanks, glad you like it!
@marine1718
@marine1718 2 жыл бұрын
if we can power de nodemcu with batterys will be very nice!
@gabyxze1
@gabyxze1 Жыл бұрын
It is possible do with zigbee ? it will be greate because it will use battery. Thanks!
@sexymuthafunka8240
@sexymuthafunka8240 11 ай бұрын
1:17 you deserve a sub just for that bit!! 😁
@KPeyanski
@KPeyanski 11 ай бұрын
Thanks :) I stopped making such jokes in my latest videos as I thought ppl are not liking them. I guess I have to test that somehow
@AnotherJoe
@AnotherJoe Жыл бұрын
Great video! Can you share your experience about battery life?
@KPeyanski
@KPeyanski Жыл бұрын
I'm not using battery for this, but an USB adapter
@jroysdon
@jroysdon Жыл бұрын
@@KPeyanski - so just a simple wall adapter to provide power through the micro-USB port, correct? Seems simple enough, and never have to worry about battery life.
@sebastiancojuharii5958
@sebastiancojuharii5958 6 ай бұрын
Is there any way yo add a led light or led strip to turn on where motion is detected?
@AlejandroMusso
@AlejandroMusso 2 жыл бұрын
Great video!!!. I made Two of this sensor but I have a lot of false event. Have you the same problem?
@KPeyanski
@KPeyanski 2 жыл бұрын
Yes, unfortunately false events are present. And this Is because of the sensor itself. There are some tricks that can be used to minimise them and I think we discussed them either here in the comments or in my written article.
@sforeman00
@sforeman00 3 жыл бұрын
Another great video. Is there an easy solution to turn these into battery powered devices?
@MAGA_Patriot2024
@MAGA_Patriot2024 3 жыл бұрын
Following...I'm sold if these can be battery powered!
@KPeyanski
@KPeyanski 3 жыл бұрын
I'm also interested in that question, but don't know the answer yet.
@RoborobsComputers
@RoborobsComputers 2 жыл бұрын
Agreed. Anyone have a batteried solution for this?
@MegaAshleymusic
@MegaAshleymusic 2 жыл бұрын
I also wanted to know as I want to build a floating pool temperature gauge and switch on every 2 hours and goes to sleep but I’m not good with electronics but I follow these videos easy
@MegaAshleymusic
@MegaAshleymusic 2 жыл бұрын
@@KPeyanski hurry up and find a solution 😂😂😂 love your videos
@TheOzembuch
@TheOzembuch Жыл бұрын
Hi, I have my Home Assistant running on Synology NAS on virtual machine. Everything went ok until Install, where I got a message "No serial devices found". Validation went OK. I plugged in the sensor into USB of the NAS drive. Any ideas what went wrong and how it can be installed? Thank you !!
@ecoterrorist1402
@ecoterrorist1402 3 жыл бұрын
nice, wish i knew how to add a flexible timer to switch the light off
@KPeyanski
@KPeyanski 3 жыл бұрын
You can do that with the automation, but it depends what exactly want to achieve.
@ecoterrorist1402
@ecoterrorist1402 3 жыл бұрын
@@KPeyanski when pir activate light, it stays on for xx mins, then switches off
@willia_music
@willia_music 2 жыл бұрын
@@ecoterrorist1402 fiddle with the 'time out' so it doesn't trigger the automation all wild like, then when triggered on add a "wait for time delay". in the same automation, send a command to turn lights off
@M1L31
@M1L31 3 жыл бұрын
thanks for the tipp - using ikea trådfri motion sensor for €9 per piece but they suck after motion was detected you will have 60 seconds until the device will take a new motion detection - so deadtimer another questions: how do you power them? microusb is not available all the time where I need this sensors. any ideas? are these kind of ESP modules also available for Zigbee? I love it since I didn't have any outages or issues with that protocol.
@KPeyanski
@KPeyanski 3 жыл бұрын
ESP8266 and ESP32 are Wi-Fi microcontrollers only. I power them with microUSB cable and any USB adapter (from phone or other device) Probably you can attach a battery, but I didn't tried this and I don't know which battery I can recommend.
@ericg8282
@ericg8282 3 жыл бұрын
Thanks for the vid! Only downside to commercial solutions is the need for having it hooked up to a power source. I don't have a socket close to every point where I use those. Any way to make these battery powered? I guess that wifi will be eating to much power?
@KPeyanski
@KPeyanski 3 жыл бұрын
Sure there is a way to use batteries, but I can’t recommend you anything at the moment. Maybe I’ll make another video when I have more info.
@EmilePolka
@EmilePolka Жыл бұрын
4usd for the esp board and pir sensor, sure, but you still need to buy more stuff like usb cable and power adapter for each, case, wires. Tgis is more like a 20usd device once you finally assembled one.
@bugs181
@bugs181 Жыл бұрын
You actually don't need a USB cable for power. Tons of ways to hook it up. For cases, there's 3D printing. Wires are super cheap if you're not using prototyping wires and buy rolls of the stuff. What he's showing here is how to get started. Use your imagination and get creative on what materials you can use to make dozens of them. I've been able to get mine down to about $1 a piece, not counting batteries (rechargable AA) which sure as heck beats off the shelf hardware, $15 to $30 a piece.
@frogeye22
@frogeye22 2 жыл бұрын
Can you explain about the ESP Mesh feature? Is it something the can be used alongside ESPHome? Thanks
@KPeyanski
@KPeyanski 2 жыл бұрын
I'm not familiar with that sorry!
@WRod1464
@WRod1464 2 жыл бұрын
Any thoughts on how to power via battery?
@KPeyanski
@KPeyanski 2 жыл бұрын
It is possible, but I haven't done any research on this yet so I can't tell any details.
@gergohorvath2538
@gergohorvath2538 2 жыл бұрын
Why did you use the d7 pin?
@StringerBell
@StringerBell 3 жыл бұрын
Hey do you have the Philips Hue motion sensors? Do you find any drawbacks in reporting rate or speed between the DIY and Philips Hue ones?
@KPeyanski
@KPeyanski 3 жыл бұрын
No, I don't have PH motion sensor, but the speed of the DIY Motion sensor is pretty good.
@PaulKelly1
@PaulKelly1 3 жыл бұрын
I've just set this up but using a microwave sensor rather than PIR (but same config) and I can say it's as quick as Philips Hue sensor and the microwave sensor even worked through an internal brick wall! (The sensor I'm testing is this one: www.amazon.co.uk/gp/product/B07W5G6M1B/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1)
@hkhald01
@hkhald01 2 жыл бұрын
#PIRowned the only issue is that the motion sensor must be attached to the Rasberry-pi/Laptop is there a way to use a battery to power it also the wireless option how it works ? thanks great video
@KPeyanski
@KPeyanski 2 жыл бұрын
Great, that you manage to make the PIR sensor ;) For sure there is a way to add a batteries, but I can't give you concrete directions, because I haven't done that yet and I don't want to give you false instructions.
@Qualitaetsnutzer
@Qualitaetsnutzer 6 ай бұрын
I didn't know Slavoj Zizek was into home automation xD
@KPeyanski
@KPeyanski 6 ай бұрын
Who is this guy? And is this good or bad?
@Qualitaetsnutzer
@Qualitaetsnutzer 6 ай бұрын
@@KPeyanski hes a socialist from slovakia if I remember it correctly. Hes got a similar accent. Id take it as a compliment.
@carlosibarcena
@carlosibarcena 2 жыл бұрын
Great!, any clues how to make a HTTPS home assistance?
@KPeyanski
@KPeyanski 2 жыл бұрын
Sure, here is a video tutorial of mine - kzfaq.info/get/bejne/oNFylqqdnLzVaKc.html
@bornaradusin9723
@bornaradusin9723 Жыл бұрын
Is it possible to add bot pir and a dht22 for example to one board?
@KPeyanski
@KPeyanski Жыл бұрын
Yes, sure!
@leonardo2692
@leonardo2692 5 ай бұрын
I didn't get one thing... In real world I would be able to know when someone is entering in a room and when someone is going out from a room so that in this way I could count the number of people in the room and turn the light off if and only if there are 0 persons in the room, so I would need two sensors. Could someone explain me if I get something wrong?
@yuritupa
@yuritupa 3 жыл бұрын
Can i use this in other place but still appear in my HA? I use wled in my store via mqtt and can control fine from home
@KPeyanski
@KPeyanski 3 жыл бұрын
yes, you can use it wherever you wish as long as it have wi-fi coverage there.
@xtremeideaz
@xtremeideaz 2 жыл бұрын
PIROwned ! The only problem is the false positive. so i'm sourcing for the AM312 PIR sensor for replacement.
@KPeyanski
@KPeyanski 2 жыл бұрын
Great to hear! Good luck with the other sensors and let us know the results afterwards!
@rtrenfroe1
@rtrenfroe1 5 ай бұрын
Anyone have a solution to solution? I'm very new to this but I got the sensor work but I'd love to be able to use batteries to power it.
@berketemiz8342
@berketemiz8342 2 жыл бұрын
hi, is it possible to do this with rain sensor instead of PIR sensor?
@KPeyanski
@KPeyanski 2 жыл бұрын
Yes, check the esphome web page to find some examples.
@eddevine859
@eddevine859 2 жыл бұрын
Is there a was to link the activation to my cell phone to give an alert ?
@KPeyanski
@KPeyanski 2 жыл бұрын
Yes - kzfaq.info/get/bejne/gKmarah8ydLJqp8.html
@RocketBoom1966
@RocketBoom1966 2 жыл бұрын
#PIRowned
@KPeyanski
@KPeyanski 2 жыл бұрын
Wow great to hear that. Congrats :)
@pmdsaude
@pmdsaude Жыл бұрын
#PIRowned #DHTowned Works separately, but together on the same D1 Mini, after a few minutes it stops reporting the values. Do you know what can be? PIR - 5v DHT - 3v Thanks and great videos
@KPeyanski
@KPeyanski Жыл бұрын
Congratulations on the efforts! Regarding your Q - I'm not sure I never tried that. Is it the same with power adapter?
@pmdsaude
@pmdsaude Жыл бұрын
Thanks @KPeyanski , it was a power supply problem. I changed the AC/DC supply to 2A and the problem was solved. I already have 3 mounted and are all ok. Thanks for your help. Now I will start another project. Maby the esp32-cam. ;)
@dodgecrickets7862
@dodgecrickets7862 2 жыл бұрын
Dose this work with any esp8266
@KPeyanski
@KPeyanski 2 жыл бұрын
Most probably, yes! But not 100% sure here as I don't know all of the available esp8266 devices
@scottbwright
@scottbwright 3 жыл бұрын
How is this powered when not connected to the USB?
@KPeyanski
@KPeyanski 3 жыл бұрын
USB adapter from an old phone or something.
@alexvanhecke4594
@alexvanhecke4594 3 жыл бұрын
I have them to still have to do it my kid Will do it they even sell mount for it
@KPeyanski
@KPeyanski 3 жыл бұрын
Hey Alex, I'm having hard time to understand that comment. Maybe because I shoot two videos in a row and my head is kind of autopilot right now. Can you please explain again :)
@Nicesocks2
@Nicesocks2 2 жыл бұрын
I made three of these. One stays detected all the time. One constantly flips back and forth between detected and clear. The other sort of works correctly but has about 3 false positives every couple hours. After some research it turns out the cheap knock off boards recommended in this video, coupled with these sensors which are known to be noisy, and this is a terrible idea of a project.
@kyleawilliams91
@kyleawilliams91 Жыл бұрын
Same I'm gonna attempt to make another tonight but I had 3 stop responding completely in one day
@hellothere9167
@hellothere9167 Жыл бұрын
@@kyleawilliams91 how does it go, I'm trying to use this as a college project.
@kyleawilliams91
@kyleawilliams91 Жыл бұрын
@@hellothere9167 unfortunately I gave up on them after 3 or 4 stoped working in a day. I'm going to use a premade motion sensor via zwave or some presence detector.
@hellothere9167
@hellothere9167 Жыл бұрын
@@kyleawilliams91 dang, guess I'll just wing it then
@michaelmoloney4080
@michaelmoloney4080 6 ай бұрын
I know from using reed sensors(magnetic) you can lower the sensitivity to reduce false positives, say has to be trivgered for 200ms before triggers...
@MrBlackpanther87
@MrBlackpanther87 3 жыл бұрын
I have always had too manyfalse positives with these sensors for some reason. Got fed up actually, tried microwave sensors and ended up with the same problem
@KPeyanski
@KPeyanski 3 жыл бұрын
You can adjust the sensitivity with the yellow knobs but you probably already know that.
@MrBlackpanther87
@MrBlackpanther87 3 жыл бұрын
@@KPeyanski yeah, I do. But it was some other interference, it would just keep triggering randomly. I tried microwave sensors as well and had the same problem
@ollyalme
@ollyalme 3 жыл бұрын
@@MrBlackpanther87 I have many sensor boxes with motion, lightsensor, temp and humidity running ESPHome. I use the same 501 PIR for motion. I had lots of false positives in the beginning, when I used Tasmota. Now I am on ESPHome, and appart from one of the sensors occationally giving me false positives, the others are 100% stable. Note, I've connected PIR Vcc to D1mini 3.3V pin, not 5V.
@MrBlackpanther87
@MrBlackpanther87 3 жыл бұрын
@@ollyalme makes sense. I have used tasmota only. So might actually be a tasmota problem then.
@MrBlackpanther87
@MrBlackpanther87 3 жыл бұрын
It's been a while, so I don't remember if I tested with just Arduino code direclty and faced the same problem. But worth retrying just to see how it works now. I got frustrated and ended up switching to zigbee sensor which are more convenient since they are battery based but spent a lot more money then I would have wanted to offcourse
@user-po6fp5ik1y
@user-po6fp5ik1y 10 ай бұрын
How to order
@KPeyanski
@KPeyanski 10 ай бұрын
Use the links in the video description
@noz3m
@noz3m 2 жыл бұрын
What's the battery life?
@KPeyanski
@KPeyanski 2 жыл бұрын
no battery here it should be connected to a USB port or you have to use USB adapter
@wojciechtrybaa6521
@wojciechtrybaa6521 2 жыл бұрын
this is my log screen after programing wemos, and wemos is offline, pleas help. " wemoINFO Reading configuration /config/esphome/gl-8.yaml... INFO Starting log output from gl-8.local using esphome API WARNING Can't connect to ESPHome API for gl-8.local: Error resolving IP address: [Errno -2] Name or service not known INFO Trying to reconnect to gl-8.local in the background"
@KPeyanski
@KPeyanski 2 жыл бұрын
Sorry I don't know what could be the reason. Try to start from scratch and use my article instructions if it is easier for you
@xfabiosoft
@xfabiosoft 3 жыл бұрын
#PIROwned ...me...! :( I got a lot of interference from the PIR sensor and during the night (with no motion) i get constantily the trigger ON and OFF... so unusable....
@KPeyanski
@KPeyanski 3 жыл бұрын
Sorry to hear that it seems that is often a problem with this exact PIR sensor model. Try to shorten the cables from the PIR sensor to the D1 mini some ppl are saying that this help.
@xfabiosoft
@xfabiosoft 3 жыл бұрын
@@KPeyanski i soldered on top on my wemos mini like other commercial motions sensors do... but no luck... anyway your videos are amazing as always! thanks so much
@KPeyanski
@KPeyanski 3 жыл бұрын
Thanks and I hope to minimise the false positives to 0.
@vegaswayne247
@vegaswayne247 3 жыл бұрын
I had interference problems too. I solved the problem by using longer wires to get the PIR away from the esp board, CAT 5 about 2 meters long. Other sensors can also be hooked up to the same board, such as temperature/humidity sensors.
@xfabiosoft
@xfabiosoft 3 жыл бұрын
@@vegaswayne247 So you suggest longer and shielded?
@mathgrts
@mathgrts 3 жыл бұрын
but.. what about the false trigger?
@KPeyanski
@KPeyanski 3 жыл бұрын
if you have such you can try to play with the sensitivity knobs and/or the cables length
@spikesnell2891
@spikesnell2891 Жыл бұрын
#PIROWNED
@KPeyanski
@KPeyanski Жыл бұрын
Great to heart that. Enjoy! Also, check my other DIY smart sensors videos that I have ;)
@AhmadYusuf85
@AhmadYusuf85 3 жыл бұрын
Mine turned white and not blue 😂
@KPeyanski
@KPeyanski 3 жыл бұрын
Really, how come? What device/browser are you using? 🤪
@AhmadYusuf85
@AhmadYusuf85 3 жыл бұрын
@@KPeyanski Stock KZfaq app on Android ;)
@KPeyanski
@KPeyanski 3 жыл бұрын
I see, thanks for sharing :)
@user-PG13
@user-PG13 2 жыл бұрын
not to be offensive but, wtf is you from? i havent ever heard your accent. again i did not mean that in an offensive manner
@KPeyanski
@KPeyanski 2 жыл бұрын
I'm from Bulgaria. Not to be offensive, but "wtf is you from?" is a totally wrong written question!
@user-PG13
@user-PG13 2 жыл бұрын
@@KPeyanski i see i dont entirely remember this but i think i was asking where you were from because i haddnt heard your accent before, i hope you have a good day sir
@The_Birdman
@The_Birdman 3 жыл бұрын
#PIRowned
@KPeyanski
@KPeyanski 3 жыл бұрын
Wow great! I really love that ❤️ Was it hard to implement?
@The_Birdman
@The_Birdman 3 жыл бұрын
@@KPeyanski I had it up and running within 10 minutes of receiving the sensor. Thanks for your help 😊
@KPeyanski
@KPeyanski 3 жыл бұрын
Very glad to hear that! Enjoy 😊
Building My Perfect Smart Home Presence Detection Sensor!
14:06
Everything Smart Home
Рет қаралды 187 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 36 МЛН
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 2,5 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
DIY ESPHome Multisensor - Temp, Humidity, RGB LED, Motion and LUX
27:16
Getting started with ESPHome
15:24
Let's Automate
Рет қаралды 44 М.
How To Use Motion Sensors Correctly In Home Assistant
17:27
Smart Home Junkie
Рет қаралды 62 М.
DIY Home Power & Solar Energy Dashboard -  Home Assistant w/ ESPHome
26:34
Improved Sensors for LED Stair Lighting System
12:54
ResinChem Tech
Рет қаралды 88 М.
This is SO Much Better! Getting Started with ESPHome 2021
29:42
Everything Smart Home
Рет қаралды 328 М.
An Improved Multi-sensor
29:40
ResinChem Tech
Рет қаралды 30 М.
Easy Aqara bed sensor vs ESPHome
15:59
Home Automation Guy
Рет қаралды 118 М.
Что делать если забыл ОЧКИ??? #моястихия #swimming #юмор #fun
0:23
МОЯ СТИХИЯ | ПЛАВАНИЕ | МОСКВА
Рет қаралды 5 МЛН
Я обещал подарить ему самокат!
1:00
Vlad Samokatchik
Рет қаралды 9 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
1:00
Justin Flom
Рет қаралды 26 МЛН
Epic Beach Day! Digging a Massive Hole!
0:12
MELIAH & DAD (THE PONTES FAMILY)
Рет қаралды 6 МЛН
Dad thought daughter wanted his food #shorts
0:10
The Nixon Fam
Рет қаралды 15 МЛН
😳 Это ПРЕВРАЩАЕТ всё в ПИЦЦУ !
0:28
Настя, это где?
Рет қаралды 7 МЛН