- Reorganized project: codesys/, docs/codesys|redesign|integration|reference/, scripts/ - CODESYS project and exports in codesys/ - Documentation index in docs/README.md - Redesign and light naming configuration - Water boiler control and safety design Co-authored-by: Cursor <cursoragent@cursor.com>
2.3 KiB
2.3 KiB
Redesign Summary - Quick Reference
What We're Changing
Current Structure → New Structure
Before:
- Room-based with generic
l_1,l_2names - Fixed 6 lights per room
- Toggle-based control
- No status feedback from relays
After:
- Room-based in CODESYS, flat in Home Assistant
- Descriptive names:
kitchen_main,master_bedroom_bedside_left - Command-based control (ON/OFF for HA, toggle for Zigbee)
- Actual relay status feedback
- Water boiler with comprehensive safety
Key Documents
-
light-naming-configuration.md⭐ START HERE- Complete light naming for all 16 rooms
- Water boiler control structure
- Safety measures
- Action: Review and modify with your actual lights
-
redesign-implementation-roadmap.md- Step-by-step implementation guide
- Phase-by-phase checklist
- Timeline estimates
-
structure-redesign-analysis.md- Detailed analysis of structure options
- Why Option 4 (Hybrid) was chosen
-
fb_switch-redesign-recommendation.md- Function block redesign details
- Control logic improvements
Quick Structure Reference
Light Naming Convention
Format: {room}_{function}
Examples:
- kitchen_main
- master_bedroom_bedside_left
- outdoor_front_security
Function Types
main- Primary lightbedside_left/right- Bedside lampsunder_cabinet- Task lightingsecurity- Security lightingambient- Atmospheric lighting- etc.
CODESYS Access
rooms.kitchen.main.ha_on := TRUE;
rooms.master_bedroom.bedside_left.state;
Home Assistant Entity
light.kitchen_main
light.master_bedroom_bedside_left
Water Boiler Safety Features
- ✅ Temperature Protection (max 80°C, min 10°C)
- ✅ Time Limits (max 8h ON, min 30m OFF)
- ✅ Flow Detection (shut off if no flow)
- ✅ Emergency Stop (immediate shutdown)
- ✅ Pressure Protection (if sensor available)
- ✅ State Monitoring (relay status readback)
- ✅ Error Reporting (comprehensive error codes)
Next Steps
- Review
light-naming-configuration.md - Modify light names per room based on actual installation
- Map relays to lights
- Start Phase 1 of implementation roadmap
Status: Ready for configuration review
Priority: Review and customize light names first