Posts

Posts uit juli, 2020 tonen

Simple outdoor PIR sensor for home assistant

Afbeelding
At home I use home assistant to automate almost everything. One of the things I was still missing was a simple outdoor PIR sensor that can send detections to home assistant. This can then be used to turn on a light or to create other automations. In this blog I want to share how to set up a simple PIR sensor by combining several low-cost items. I assume you have already some knowledge on how to setup home assistant and how to use ESP Home. If not, please use other tutorials first to get up to speed with this. Also, you will need to do some soldering, compile a small program and flash an ESP board. This I will explain step by step.   First let’s start with the components you need for this: Outdoor 12V Pirsensor. I bought this from AliExpress  here . ESP8266 board D1 Mini, found  here . AC-DC power supply, 5V version found  here . Resistor of 10k ohm.   Total costs less than 15 euro (including shipping). Above links are examples I used. You can probably also find other units elsewhere.