Built on XDAI built a $5 Zigbee motion sensor with an ESP32-C6By Adam ConwayCompatibility checks
No issues found
Wiring steps
- 1
HC-SR501 PIR motion sensor
- GNDtoGND
- VCCto5V
- OUTtoGPIO22
- 2
Plug in the USB cable last.
ESPHome config
Paste into ESPHome Device Builder.
esphome:
name: zigbee-motion-sensor
esp32:
board: esp32-c6-devkitc-1
logger:
api:
encryption:
key: !secret api_encryption_key # make one at esphome.io/components/api
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
binary_sensor:
- platform: gpio
pin:
number: GPIO22
name: "HC-SR501"
device_class: motion
Some board drawings are from Wokwi and Seeed Studio.