Presence Detection Engine Overview
The presence-detection-engine repo contains an ESP32/ESPHome-based presence engine with on-device z-score analytics, a debounced state machine, and Home Assistant tooling.
Verified Highlights
Section titled “Verified Highlights”From presence-detection-engine/README.md:
- On-device analytics (z-score based) with a 4-state machine
- Runtime tuning via Home Assistant entities
- Unit tests (PlatformIO) and Python E2E tests
- Two-machine workflow: edit in Codespaces/local, flash on ubuntu-node
Where to Start
Section titled “Where to Start”- Quickstart:
presence-detection-engine/docs/quickstart.md - Architecture:
presence-detection-engine/docs/ARCHITECTURE.md - Workflow:
presence-detection-engine/docs/DEVELOPMENT_WORKFLOW.md - Troubleshooting:
presence-detection-engine/docs/troubleshooting.md
Sources
Section titled “Sources”presence-detection-engine/README.mdpresence-detection-engine/docs/ARCHITECTURE.mdpresence-detection-engine/docs/DEVELOPMENT_WORKFLOW.mdpresence-detection-engine/docs/quickstart.md
Diagrams
Section titled “Diagrams”Two-Machine Workflow
Section titled “Two-Machine Workflow”Codespace/local (edit + test) | git push |ubuntu-node (USB flash + HA) | ESP32 + LD2410Engine Pipeline
Section titled “Engine Pipeline”LD2410 still energy | z-score |4-state machine |HA entities (binary + telemetry)Home Assistant Integration
Section titled “Home Assistant Integration”ESPHome device -> HA auto-discovery -> dashboards/helpers