- Updated global variable lists in GVL_IO.gvl and GVL_NVL_placeholders.gvl to reflect new room naming conventions and structures. - Revised PLC_App.st to map new room configurations for lighting control. - Enhanced documentation in all-lights-and-rooms.md and ha-lights-and-rooms.md to align with updated room and light entity naming. - Adjusted room-config.js and related Node-RED flows to support the new configuration structure. This update improves the organization and clarity of room and light management within the Node-RED integration, ensuring consistency across the system.
1.5 KiB
1.5 KiB
Validation report (uniform lighting naming migration)
Static consistency checks completed
- Canonical lighting rows:
39(lights_zones_canonical.csv) - CODESYS
NVL_Inroom structs:16 - CODESYS
NVL_Outroom structs:16 - Node-RED
roomNamesentries:16 - Node-RED
lightEntityMapentries:39
Mapping status
circuit_no -> area/room/type/index/light_nois defined for all non-empty circuits.codesys_in_key/codesys_out_keyare defined for every canonical row.room-config.jsis aligned with canonical keys:roomNamesmatches the 16-room CODESYS layout.lightEntityMaphas one entry per canonical row.entityToRoombase keys map all canonical HA entity patterns.
Verified constraints
- Canonical naming style:
snake_case - Entity ID pattern:
input_boolean.<area>_<room>_<light_type>_<index> - CODESYS legacy room names replaced in
codesys/srcruntime files:GVL_NVL_placeholders.gvlGVL_IO.gvlPLC_App.st
Residual runtime checks to perform on target system
Because this repository environment has no runtime binaries for Node-RED/CODESYS/HA validation, perform these on your deployed setup:
- Deploy updated CODESYS project and confirm NVL sender/receiver symbol binding still resolves.
- Load updated
/root/.node-red/room-config.jsand redeploy flows. - Import HA helpers from
lights_by_area_room_type_index.yaml. - Test one circuit per area end-to-end:
- HA toggle -> Node-RED -> NVL_In -> PLC output -> NVL_Out -> HA sync.