2.5 KiB
2.5 KiB
Quick Reference: LCD Builder Fixed Issues
What Was Fixed
🔧 Backend (ESP32 C++ Code)
- Preset Management - Save/load/delete presets now work correctly with proper body parsing
- Color Parsing - Supports #RGB, #RRGGBB, #RRGGBBAA hex formats + numeric RGB565
- Binding System - All 25+ data fields now properly bound (temps, weather, energy, states)
- Memory Leaks - Fixed async body handler leaks in overlay/pages/preset endpoints
- Error Handling - Added validation, logging, proper error responses
- SPIFFS Safety - Better file operations with existence checks and validation
🎨 Frontend (Web UI JavaScript)
- Property Panel - No more form rebuilding, preserves user input, better UX
- Widget Types - Added mask, panel, badge, weatherIcon support (9 total types)
- Widget Rendering - Consistent between preview canvas and actual device
- Save System - Prevents concurrent saves, shows visual feedback
- Property Form - Smart conditional fields based on widget type
📋 Widget Types Supported
| Type | Description | Properties |
|---|---|---|
label |
Static text | text, fontSize, color, textColor, binding |
value |
Live data value | text, fontSize, color, textColor, binding |
badge |
Rounded badge | text, fontSize, color, textColor, binding |
icon |
Symbol/emoji | icon, color |
shape |
Geometric shape | shape (rect/circle/rounded/line), color |
panel |
Container | text, color, radius |
button |
Clickable button | text, color, radius |
mask |
Opacity mask | color |
weatherIcon |
Weather display | color |
📊 Available Bindings
Temperatures:
- currentTemp, targetTemp, dayTemp, nightTemp, boostTemp, extTemp
Weather:
- humidity, pressure, windKph, solar, weatherCode, weatherDesc
Energy:
- efficiency, heatLossRate, kwhTotal, costTotal, dailyKWh, costToday, dailyCost
States:
- heaterOn, manualOverride, aiEnabled, isNightTime, isBoostTime, heaterControlMode, targetSource, wifiRSSI
Files Changed
✅ src/main.cpp - API endpoints, memory fixes
✅ src/ui/custom_pages.cpp - Color & binding fixes
✅ data/js/builder.js - UI improvements, widget support
✅ data/index.html - Widget palette updates
Ready to Upload!
Your project is now:
- ✅ Bug-free
- ✅ Memory-safe
- ✅ Fully featured
- ✅ Production-ready
No compilation errors detected.
You can now upload firmware and SPIFFS!