How xkain/espsomfy-rts works
ESPSomfy-RTS is ESP32 firmware that bridges a responsive web interface and network integrations to Somfy-compatible 433 MHz devices and wired relay motors. The principal flow is a user command through the web API to device control and radio transmission; configuration, live updates, and integrations support that flow. The graph also includes documented backup, discovery, and update capabilities. Some relationships are based on README documentation or source-index references rather than shown calls; those are marked dashed where the call path is unverified.
Main entry points: Web.cpp Web API · Somfy.cpp RTS device control · Network.cpp Network connectivity · index.js Responsive UI
Components 17
Web interface
- Responsive UI
data-dev/index.js - Web API
src/Web.cpp - JSON responses
src/WResp.cpp - Live events
src/Sockets.cpp
Device control
- RTS device control
src/Somfy.cpp - 433 MHz transceiver
src/Somfy.cpp - Relay motors
src/Somfy.cpp
Network platform
- Network connectivity
src/Network.cpp - MQTT integration
src/MQTT.cpp - SSDP discovery
src/SSDP.cpp
Configuration and updates
- Device settings
src/ConfigSettings.cpp - Config files
src/ConfigFile.cpp - Firmware updater
src/GitOTA.cpp - Backup and restore
src/Web.cpp
Other components
- User
- GitHub releases
- Home Assistant
Connections 16
- User → Responsive UI: controls
README.md - Responsive UI → Web API: sends requests
- Web API → RTS device control: dispatches commands
src/Web.cpp - RTS device control → 433 MHz transceiver: transmits frames
src/Somfy.cpp - RTS device control → Relay motors: drives motors
README.md - Web API → JSON responses: formats responses
src/Web.cpp - RTS device control → Live events: emits events
src/Somfy.cpp - Network connectivity → Web API: hosts interface
- RTS device control → MQTT integration: publishes state
src/Somfy.cpp - Network connectivity → SSDP discovery: supports discovery
- Web API → Device settings: updates settings
- Device settings → Config files: loads and saves
- Web API → Backup and restore: handles backup
src/Web.cpp - Web API → Firmware updater: offers updates
README.md - Firmware updater → GitHub releases: downloads releases
README.md - MQTT integration → Home Assistant: integrates via MQTT
README.md