I recently built Lumen, an open-source, self-hosted smart lighting controller that runs directly on an ESP32 with a built-in web application—giving you fast, local, cloud-free control over your home lighting.
- 🎥 Full Project Demo Video: I Built Lumen: A Self-Hosted ESP32 Smart Lighting Controller | Full Demo!
- 💻 GitHub Repository: github.com/charithmadhuranga/Lumen
Why I Built Lumen
Many DIY smart lighting projects either rely on external cloud services or require hardcoding GPIO pins, channels, and lighting behaviors directly into firmware. Whenever you want to add a fixture, remap a pin, or tweak an automation, you end up editing code and reflashing.
Lumen solves this by running a complete web-based lighting management interface directly on the ESP32—so hardware profiles, rooms, scenes, floor plans, automations, and smart-home integrations can all be configured right from your browser.
Key Features & Walkthrough
1. Secure First-Start & Authentication
On initial boot, Lumen enforces a password update before granting access, storing credentials using PBKDF2 hashing so your local controller isn't left open on the network.
2. Overview & Room-Based Lighting Control
From the Overview and Rooms views, you can monitor active lights across your setup, trigger a one-tap all-off, and control individual fixtures:
- Dimmers: Smooth brightness sliders with percentage feedback
- RGB / Addressable Lights: Full color picker and built-in lighting effects
- Tunable White Lights: Color temperature sliders (warm to cool white in Kelvin) alongside brightness control
3. Scenes & Interactive SVG Floor Plans
- Scenes: Capture the current state of multiple lights and recall them with smooth fade transitions.
- Floor Plans: Upload a custom SVG floor plan and place your light entities directly onto the map with live glow states reflecting real-time brightness and color.
4. Local Automations & Multi-Controller ESP-NOW Linking
- Local Automations: Create time-based, sunrise/sunset, physical button, and rule-based automations using either a structured form editor or a visual node graph—all executed locally on the ESP32 with zero cloud dependency.
- ESP-NOW Linking: Link multiple Lumen controllers directly over ESP-NOW for low-latency controller-to-controller communication without even needing a Wi-Fi router in between.
5. Hardware Profiles, Diagnostics & Home Assistant Integration
- JSON Board Profiles: Switch or customize board definitions (including KinCony KC868-AP and generic ESP32 dev boards) without recompiling firmware.
- Built-In Hardware Tools: Built-in GPIO conflict checking, I2C bus scanning, heap/task diagnostics, and A/B OTA firmware updates.
- Home Assistant & MQTT: Seamless two-way integration with Home Assistant via MQTT auto-discovery so every light, dimmer, and scene appears automatically in your smart-home dashboard.
Links & Getting Started
- Watch the Full Demo: http://www.youtube.com/watch?v=xr8Mkc1NUvA
- Source Code & Documentation: https://github.com/charithmadhuranga/Lumen
If you're building local-first smart home hardware, working with ESP32/ESP-IDF, or automating lighting with Home Assistant, check out the repository and let me know what you think!

