Cheap DIY Motion Sensor that works with ESPHome & Home Assistant
Published at : 23 Dec 2025
Wemos D1 Mini (AliExpress affiliate) - https://s.click.aliexpress.com/e/_AFgAIp 5 Pack Hc-sr501 Pir Motion Ir (AliExpress affiliate) - https://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
✅ 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!