ESP8266 ESP-12E and Motion Sensor RCWL-0516 on Home Assistant (ESPHome)

Connect ESP-12E and Microwave Radar Motion Sensor (RCWL-0516)

ESP-12E and Motion Sensor RCWL-0516

Configure Home Assistant with ESPHome Add-on

esphome:
  name: esp8266_esp-12e
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: "your_ssid"
  password: "your_password"
  fast_connect: true
  manual_ip:
    static_ip: 192.168.1.31
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    dns1: 192.168.1.1

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

# RCWL-0516 Microwave Radar Motion Sensor
binary_sensor:
  - platform: gpio
    pin: 4
    name: "ESP8266 ESP-12E Motion Sensor"
    device_class: motion