Schwayla / Environmental-Presence-Detection-Sensor

This is a sensor that uses the DFRobot mmWave Sensor, Panasonic PIR Sensor, and BME280 for motion detection and environmental data for use on ESPHome. As you may have guessed this was a project inspired by Everything Smart Home's video and subsequent sensor as well as his inspiration igiannakas who made a similar sensor.
1 stars 0 forks source link
esp8266 esphome esphome-devices motion-detection smarthome

Introduction

sensor_full

Bill of Materials

Tools Needed

Software/Programs

Not Included in this project...

Skills Needed

How-To Guide

Setup/Prep

  1. Setup ESPHome Instance on Home Assistant (Just grab it from Add-Ons)
  2. Load initial software on to the ESP8266 from ESPHome
    • MUST BE DONE BEFORE INSTALLING THE 8266 BOARD ONTO THE PCB/BREADBOARD!
  3. Cut and strip wires - Wire List | Pre-Cut Wires

    ElectroCookie_MD_WireList

Fabrication

  1. Solder pins to components.

    IMG_7322

    • I like to stick the pins into a breadboard to hold them in place while soldering.

    IMG_7323

    • After soldering the pins to the components, slide the pin retainer strips 3mm down away from the component boards. This will help in the installation of the components in the future and allow for clearance over the wires on the board.

    IMG_7325

  2. solder wires in-place on ElectroCookie Board. Reference Diagram (Path: Documents/Diagrams/esp8266_env_sensor_pcb_va.pdf)

    • Verify all wires are correctly soldered to the specified spot.
    • Visually inspect all solder points and repair as needed.

    IMG_7319

    ! -- ! -- ! - Make sure you have loaded the initial software onto the ESP8266 from step 2 of setup / prep - ! -- ! -- !

  3. Solder components to board. Reference Diagram (Path: Documents/Diagrams/esp8266_env_sensor_pcb_va.pdf)

    sensor_full

    • Visually inspect all solder points and repair as needed.
  4. Connect board to power (Connect the ESP8266 to the power brick via USB-C cable).

    • Allow around 2 minutes for the board to boot and connect to wifi.
  5. Edit the device in ESPHome and add the code from this project to your device UNDER the existing code that was loaded to the ESP8266 in step 2 of setup / prep. Code Example

  6. Install the code Wirelessly and wait for the board to connect (You can watch the progress of the load and the connection via the Logs)

    code_install_wireless

    • This will take a few minutes...
  7. Home Assistant will automatically recognize the device under Devices & Services. You can now configure it and add it to automations and what not.

Adding Sensor to Automations (I'm only including this because I was confused)

HA_Sensor_Add_Trigger

Using a BMP280 instead of BME280

Replace the BME280 code with the following under #sensor

#Sensor BMP280
- platform: bmp280
 temperature:
    name: "BMP280 Temperature"
   oversampling: 16x
   id: bmp280_temperature
 pressure:
   name: "BMP280 Pressure"
   id: bmp280_pressure
 i2c_id: bus_a  
 address: 0x76
  update_interval: 15s

References, Guides, & Resources

Look at you! Makin' some cool stuff...You're AWESOME!!