# Tasmota PIR Motion Sensor with Home Assistant

> Build a WiFi motion sensor using AM312 or HC-SR501 PIR sensor with ESP8266/ESP32 and Tasmota. Publishes motion events via MQTT for Home Assistant automations like lights and alarms.

## Details

- **Difficulty:** beginner
- **Project Type:** tutorial
- **Board Types:** ESP8266, ESP32, ESP32-C3
- **Devices:** wemos-d1-mini-esp8266, esp8266-esp-01s, sonoff-basicr2
- **Firmware:** Tasmota
- **Use Cases:** motion-detection, home-automation, security, presence-detection, lighting-automation
- **Links:** Blog Url: https://tasmota.github.io/docs/PIR-Motion-Sensors/, Github Url: https://github.com/arendst/Tasmota

## Tags

`tasmota`, `pir`, `motion-sensor`, `am312`, `hc-sr501`, `esp8266`, `esp32`, `mqtt`, `home-assistant`, `home-automation`, `security`

---
[View full page](https://openhardware.directory/projects/tasmota-pir-motion-sensor-with-home-assistant)