How letscontrolit/espeasy works
ESPEasy is embedded firmware for configuring devices that read sensors and control appliances, then expose data or actions through controllers and network services. The intended workflow is configuration of tasks and controllers, plugin-driven device interaction, event/rule handling, and onward reporting or actuation. The available evidence is strongest for controller, web-configuration, and storage modules; most runtime plugin, scheduler, rules, and network wiring was not sampled, so those links are marked unverified rather than asserted.
Main entry points: Controller.cpp Controller runtime · Plugins.h Task plugins · ControllerPage.cpp Web configuration · ESPEasy_Storage.cpp Settings storage
Components 17
Devices and tasks
- Task plugins
src/src/Globals/Plugins.h - Sensor devices
lib - Appliance control
lib - Sensor readings
src/src/Globals/Plugins.h
Automation runtime
- Task events
src/src/DataStructs/ESPEasy_EventStruct.h - Rules engine
src/src/ESPEasyCore/ESPEasyRules.h - Scheduler
src/src/Helpers/Scheduler.h - RTC commands
src/src/Commands/RTCSRAMStorage.cpp
Configuration and integrations
- Web configuration
src/src/WebServer/ControllerPage.cpp - Controller runtime
src/src/ESPEasyCore/Controller.cpp - Controller plugins
src/src/Globals/CPlugins.h - Network services
src/ESPEasy/net - MQTT transport
lib/pubsubclient3/src/PubSubClient.cpp
Persistent state
- Settings storage
src/src/Helpers/ESPEasy_Storage.cpp - Storage layout
src/src/CustomBuild/StorageLayout.h - RTC SRAM
src/ESPEasy/eeprom/Helpers/RTCSRAMStorage.cpp
Other components
- User
Connections 16
- User → Web configuration: configures
README.md - Web configuration → Controller runtime: edits settings
src/src/WebServer/ControllerPage.cpp - Web configuration → Settings storage: uses storage
src/src/WebServer/ControllerPage.cpp - Task plugins → Sensor devices: reads devices
- Task plugins → Appliance control: controls devices
- Task plugins → Sensor readings: produces values
src/src/Globals/Plugins.h - Sensor readings → Task events: raises events
- Scheduler → Task plugins: dispatches tasks
- Task events → Rules engine: triggers rules
- Rules engine → Appliance control: acts on rules
- Controller runtime → Controller plugins: dispatches controllers
src/src/ESPEasyCore/Controller.cpp - Controller runtime → Network services: uses network
src/src/ESPEasyCore/Controller.cpp - Controller plugins → MQTT transport: publishes messages
- Controller runtime → Settings storage: reads settings
src/src/ESPEasyCore/Controller.cpp - Storage layout → Settings storage: defines layout
src/src/Helpers/ESPEasy_Storage.cpp - RTC commands → RTC SRAM: writes slots
src/src/Commands/RTCSRAMStorage.cpp