A comprehensive ESP32-based WiFi Channel State Information (CSI) positioning system for accurate indoor location tracking and smart home automation.
WhōFi is an advanced indoor positioning system that uses WiFi Channel State Information (CSI) to achieve sub-meter accuracy for device-free human tracking and smart home automation. The system leverages ESP32 microcontrollers to collect detailed WiFi signal characteristics, enabling precise position calculation without requiring users to carry any devices.
- Indoor Positioning: 0.5-4m accuracy depending on configuration
- Device-Free Tracking: No smartphones or wearables required
- Real-Time Processing: 400-600ms typical response time
- Multi-Person Support: Track 2-4 people simultaneously
- Home Assistant Integration: Native smart home automation
- Privacy-First: All processing done locally, no cloud dependency
-
Download the latest release from Releases
-
Flash ESP32 firmware:
# Extract the firmware package tar -xzf whofi-firmware-*.tar.gz # Flash to ESP32 esptool.py write_flash @flash_args
-
Run with Docker Compose:
# Use pre-built images from GitHub Container Registry cd csi-server docker-compose -f docker-compose.prod.yml up -d
# Clone the repository
git clone https://github.com/jedarden-org/whofi
cd whofi
# Build ESP32 firmware
cd csi-firmware
idf.py build
# Build and run server locally
cd ../csi-server
docker-compose up -dPre-built Docker images are available on GitHub Container Registry:
- Backend:
ghcr.io/jedarden-org/whofi-backend:latest - Frontend:
ghcr.io/jedarden-org/whofi-frontend:latest
# Pull the latest images
docker pull ghcr.io/jedarden-org/whofi-backend:latest
docker pull ghcr.io/jedarden-org/whofi-frontend:latestgraph TB
subgraph "ESP32 Sensor Nodes"
N1[Node 1<br/>Living Room]
N2[Node 2<br/>Bedroom]
N3[Node 3<br/>Kitchen]
N4[Node 4<br/>Hallway]
end
subgraph "Processing Infrastructure"
MQTT[MQTT Broker<br/>Mosquitto]
DB[(SQLite<br/>Database)]
API[Backend API<br/>Node.js]
WEB[Web Dashboard<br/>React]
HA[Home Assistant<br/>Integration]
end
N1 --> MQTT
N2 --> MQTT
N3 --> MQTT
N4 --> MQTT
MQTT --> API
API --> DB
API --> WEB
API --> HA
- ESP32 Modules: 4x ESP32-S3-WROOM-1 ($32-48)
- Antennas: 4x external 2.4GHz antennas ($60)
- Infrastructure: Network switch, cables ($75)
- Total Cost: $167-183
- ESP32 Modules: 6x ESP32-S3 with enhanced timing ($48-72)
- Antennas: 6x high-gain external antennas ($90)
- Infrastructure: Professional networking equipment ($150)
- Total Cost: $288-312
# ESPHome configuration for WhōFi nodes
esphome:
name: whofi-node-living-room
platform: ESP32
board: esp32-s3-devkitc-1
sensor:
- platform: custom
lambda: |-
auto csi_sensor = new CSISensor();
App.register_component(csi_sensor);
return {csi_sensor};
sensors:
- name: "Position X"
- name: "Position Y"
- name: "RSSI"
mqtt:
broker: homeassistant.local
topic_prefix: whofi/${device_name}- Technical Overview - ESP32 CSI fundamentals
- Hardware Setup - Detailed hardware specifications
- Server Guide - Complete server infrastructure
- API Documentation - REST API reference
- Local Processing: All calculations done on-premises
- No Cloud Dependency: Complete offline operation
- Encrypted Communication: WPA3 and MQTT TLS support
- Open Source: Full code transparency
We welcome contributions! Please see our Contributing Guidelines for details.
- Algorithm Improvements: Enhanced positioning accuracy
- Hardware Support: New ESP32 variants and sensors
- Integration Modules: Additional smart home platforms
- Mobile Applications: iOS/Android configuration apps
This project is licensed under the MIT License - see the LICENSE file for details.
Based on research from:
- Avola, D., et al. (2025): "WhoFi: Deep Person Re-Identification via Wi-Fi CSI"
- Multiple IEEE and ACM publications on WiFi CSI positioning
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Full Docs
WhōFi - Bringing enterprise-grade indoor positioning to everyone 🚀
Built with ❤️ for the open-source smart home community