nameliner.blogg.se

Motion sensor
Motion sensor








  1. #Motion sensor how to
  2. #Motion sensor install
  3. #Motion sensor password

Next lets hook this up to Home Assistant which is as easy as navigating to You should be able to navigate to the address you configured or the DHCP provided one and you should get back the sensor statistics. Once flashed to the device ensuring that the GPIO pins are connected correctly.

#Motion sensor password

beachi manual_ip : # Optional if you want a static IP static_ip : 192.168.1.104 gateway : 192.168.1.1 subnet : 255.255.255.0 logger : # For feeding back to HA api : password : !secret password ota : password : !secret password web_server : port : 80 sensor : - platform : dht model : AM2302 pin : GPIO15 temperature : name : " Bedroom Temperature" humidity : name : " Bedroom Humidity" update_interval : 60s binary_sensor : - platform : gpio pin : GPIO13 name : " Bedroom Motion" device_class : motionįollow the instructions on their website for getting started and managing secrets. The only downside I have seen so far is the lack of customisation with sensitivity and trigger interval but it has worked flawlessly in the location we have it positioned.ĮSPHome is an awesome platform that allows you to easily scaffold out IOT projects with a few lines of YAML.īelow is the configuration for our ESP device in our bedroom.Įsphome : name : esphome_bedroom platform : ESP32 board : nodemcu-32s wifi : ssid : ' Sunshine_Recorder' password : !secret ssid_password domain. As you can see from the screenshot below it dramatically reduced this. Since writing this blog post I have since replaced the HC-SR501 sensor with a AM312 due to the amount false positives that I was getting. This led me to to discovering some basic PIR Motion Sensors which can easily be hooked up and report back if motion is detected. I wanted to extend our setup for our bedroom and since we already had an ESP32 NodeMCU device running ESPHome with a DHT22 Sensor collecting temperature and humidity metrics, extending this felt like the logical choice. Reload your automations from Configuration > Server Controls and you are ready to test the automation.We have a couple Hue Motion Sensors in our apartment to provide some automation for lighting control which work great, albeit a bit expensive. Make sure that you change the entity_id: binary_sensor.pir_sensor with your sensor name and entity_id: light.shellybulbduo_8caab5616d5c with your light. You can follow the GUI instructions as seen in my video (from time 09:02) or you can edit your automations.yaml file and paste the following YAML inside: # automations.yaml entryĪlias: When PIR motion sensor is activatedĮntity_id: light.shellybulbduo_8caab5616d5c Now let’s finish this Home Assistant automation. If you reach this point and your PIR DIY Motion sensor is working at the moment – let me know in the comments by just type: #PIRowned. Time to make a simple yet effective automation which will be the following: when the motion sensor is activated turn a light on.īefore that I have a challenge for you.

#Motion sensor how to

How to make Home Assistant automation with the DIY Motion Sensor? I will show you everything step-by-step and at the end we will see a real demo with Home Assistant automation. That is why we are going to create one motion sensor that will cost around $4 US dollars and it will take only few minutes of your time. 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 (see my Shelly Motion or Shelly Motion with Home Assistant articles if you want more info about this topic). 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.

  • How to make Home Assistant automation with the DIY Motion Sensor?.
  • Add the DIY Motion sensor to Home Assistant.
  • #Motion sensor install

    Install ESPHome as Home Assistant add-on.What is needed to DIY Motion sensor that works with Home Assistant?.










    Motion sensor