espectre README

README проекта с github.com/francescopace/espectre. Одним файлом markdown: README.md.

ESP-IDF component Arduino library C++ coverage Python coverage Web coverage

ESPectre ESPectre logo

Turn an ESP32 into a private, local Wi-Fi motion sensor.

When someone moves through a room, they change the way Wi-Fi signals travel through it. ESPectre reads those changes and reports motion in real time. No camera, no microphone, no wearable, and no dedicated radar hardware: just a supported ESP32 and the Wi-Fi network already in the room.

ESPectre is an open-source platform that brings together ready-to-flash firmware, an embeddable C++ SDK, an Arduino library, a MicroPython implementation, browser tools, a host CLI, an open dataset, open model weights, and the research workflow used to build and validate the detectors.

Flash from your browser · See the live tools · Read the documentation · Explore the SDK

Applications and integrations

Use ESPectre to turn on lights or a display when someone walks in, adjust heating when a room is in use, or send an alert when there is movement where nobody should be. It works with Home Assistant (through ESPHome or MQTT), appears as a standard Matter occupancy sensor, offers a local HTTP API, and can be built into your own ESP32 firmware with the C++ SDK or an Arduino-ESP32 sketch.

Everything runs on the device: it measures the Wi-Fi channel (channel state information, or CSI) and reports motion and a movement score. Nothing needs to go to the cloud. One board covers one area, so plan on one board per room.

ESPectre detects changes in the radio environment. It does not identify people, count them, prove that a room is empty, or replace a safety-certified security, medical, or emergency system.

Supported hardware

Choose a firmware path

Path Best for Start here
Native Standalone sensors, MQTT integrations, including Home Assistant MQTT Discovery, and custom applications Native frontend
ESPHome Home Assistant users who want native entities, ESPHome provisioning, and Device Builder updates ESPHome frontend
Matter Matter controllers with occupancy-sensor support; tested with Google Home, Apple Home, and Home Assistant Matter frontend
Micro-ESPectre Lightweight sensing in MicroPython with local, read-only Direct HTTP monitoring Micro-ESPectre README

Quick start

The quickest way needs only a browser. Use desktop Chrome 151 or later; Edge can flash, but Device settings and Monitor may not work in it.

  1. Open Flash in desktop Chrome or Edge.
  2. Connect a supported ESP32 over USB, then choose a firmware and release channel.
  3. Complete on-screen Wi-Fi provisioning, or commission Matter with a supported controller.
  4. Optionally, open Device settings to pin a preferred access point or set up MQTT.
  5. Open Monitor to watch motion, tune detection, and inspect the device.

To find your devices on the network, use Find devices in the browser tools or ./espectre devices. See the discovery reference for requirements and limits.

ESPectre Monitor

Matter status: pairing, occupancy updates, and automations are tested with Google Home, Apple Home, and Home Assistant. Amazon Alexa and Samsung SmartThings are not tested yet. Google Home needs a one-time Developer Console setup. See Matter controller compatibility for the current matrix.

Local setup

To build and flash from this repository, start with the setup guide. To see all available commands, run:

./espectre --help

Documentation

Topic What it covers Guides
Install and operate Device setup, CLI workflows, and troubleshooting Setup guide, CLI reference, Troubleshooting guide
Understand and integrate Runtime architecture, CSI acquisition, API, discovery, algorithms, and the C++ SDK Architecture overview, CSI guide, API reference, Discovery reference, Algorithms reference, SDK guide
Research and direction Roadmap, architecture decisions, and release history Roadmap, ADR index, Changelog
Frontend reference Guides for each firmware, Micro-ESPectre, and the Arduino library ESPHome, Native, Matter, Micro, Arduino
Contributing Contributions, release procedures, and project discussions Contributing guide, Release guide, GitHub Discussions

Datasets, models, and validation

ESPectre publishes the research assets and validation evidence behind its detectors:

Asset What it gives you Start here
CSI dataset Real recordings for empty rooms, static presence, and motion, with catalog and provenance in dataset_info.json Data collection guide, Data/
Model weights Trained weights in C++ and Python, plus the training, export, and validation workflow ML training guide
Feature analysis Features that were tested, promoted, or rejected, including unsuccessful experiments Feature analysis
Reports Generated detector metrics and dataset quality checks Performance report, Dataset quality report
Literature External Wi-Fi sensing research and what transfers to ESPectre Literature review

Security, privacy, and transparency

A sensor that can reveal presence should not be a black box. Wi-Fi sensing records no images or audio, but motion data can still reveal routines, sleep, or when nobody is home. ESPectre treats that risk as part of the design:

Use ESPectre only where you have the right to. Tell the people affected, get consent where required, protect access to the device and its data, and follow privacy laws.

Acknowledgments

License

ESPectre first-party code is available under GPLv3, and eligible parts also under a separate commercial license:

Third-party terms and build-specific compliance artifacts are described in the third-party notices.

espectre (francescopace/espectre)

Ищем в базе…

Что это такое?ESPectre превращает поддерживаемую плату ESP32 в приватный локальный датчик движения по Wi-Fi: он считывает, как движение меняет Wi-Fi-сигналы в комнате, и сообщает о движении в реальном времени — без камеры, микрофона, носимых устройств или отдельного радарного оборудования.
Как он определяет движение без камеры и радара?Он считывает Wi-Fi CSI (Channel State Information): когда кто-то движется по комнате, он меняет распространение Wi-Fi-сигналов, детектор обрабатывает эти изменения прямо на ESP32 и выдаёт состояние движения и оценку активности.
Как настроить первый датчик?Прошейте его из браузера: откройте Flash в настольном Chrome 151+, подключите поддерживаемую ESP32 по USB, выберите прошивку и канал выпуска, затем завершите настройку Wi-Fi на экране. Локальные сборки и работа через командную строку описаны в файле SETUP.md.
Какое железо и какая сеть нужны?Поддерживаемая плата ESP32 (C6, C5, C3, S3, S2 или классическая) и обычная сеть Wi-Fi 4 (802.11n) на частоте 2,4 ГГц. Для работы через браузер нужен настольный Chrome 151+; прошить можно и в Edge, но разделы Device settings и Monitor там гарантированно не работают.
Какие у него ограничения?Одна плата покрывает одну зону наблюдения, поэтому для покрытия уровня комнаты обычно нужна одна плата на комнату. Он реагирует только на изменения радиосреды: не может опознать или пересчитать людей, доказать, что комната пуста, или заменить сертифицированные охранные, медицинские и экстренные системы.
Куда уходят данные о движении?По умолчанию никуда вовне: CSI обрабатывается на самом устройстве, определение движения происходит локально, и облако не требуется. Запись сырых данных CSI — необязательная опция, предназначенная для исследований и отладки.
Можно ли использовать его в закрытой прошивке?Собственный код проекта распространяется по GPLv3. Чтобы встроить ESPectre в проприетарную прошивку с закрытым исходным кодом без обязанности раскрывать исходники, есть отдельная коммерческая лицензия (см. LICENSING.md); учтите, что C++-фронтенд ESPHome остаётся доступным только под GPLv3.
Работает ли он с Home Assistant?Да — через ESPHome для нативных сущностей Home Assistant или по MQTT с поддержкой Home Assistant MQTT Discovery. Он также предоставляет стандартный датчик присутствия Matter (проверка контроллерами ещё ограничена) и локальный простой HTTP API для своих интеграций.
Какие варианты прошивки можно выбрать?Четыре: Native — для автономных датчиков и интеграций по MQTT, ESPHome — для пользователей Home Assistant, которым нужны нативные сущности, Matter — для контроллеров Matter, и Micro-ESPectre — облегчённая сборка на MicroPython с локальным HTTP-мониторингом только для чтения.
Что входит в проект, кроме прошивки?Встраиваемый C++ SDK, утилита командной строки с полным жизненным циклом устройства, браузерные инструменты (Flash, Device settings, Monitor), открытый набор данных CSI с записями пустых комнат, неподвижного присутствия и движения, а также обученные веса моделей и полный процесс обучения и проверки.
Что реально можно автоматизировать с его помощью?Всё, что зависит от движения: включать экран или свет, когда в комнате кто-то появляется, регулировать отопление и охлаждение по активности в комнате или включать сигнализацию и уведомления там, где движения быть не должно — через Home Assistant, Matter, MQTT или HTTP API.
Какие есть похожие проекты?Tasmota, WLED, muse-gadget-sdk, EchoMuse, esp-sdr, ESP32Marauder, localthings, neonplan3d
Автор
francescopace
Размер
430.6 MB
Звёзды
9.8K
Возраст
1 г
Коммиты · 90 дней