Refactor room and light configurations for Node-RED integration

- 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.
This commit is contained in:
2026-04-01 19:09:59 +03:00
parent d755d3c1ed
commit 0af21f4dc3
16 changed files with 579 additions and 220 deletions

View File

@@ -5,42 +5,42 @@
*)
VAR_GLOBAL
NVL_In: STRUCT
masterBedroom: struct_room_cmds;
masterBathroom: struct_room_cmds;
bedroom_1: struct_room_cmds;
bedroom_2: struct_room_cmds;
bathroom: struct_room_cmds;
guestWc: struct_room_cmds;
kitchen: struct_room_cmds;
pantry: struct_room_cmds;
livingRoom: struct_room_cmds;
dinningRoom: struct_room_cmds;
entrance: struct_room_cmds;
hallway: struct_room_cmds;
outVeranda: struct_room_cmds;
outFront: struct_room_cmds;
outBack: struct_room_cmds;
outSide: struct_room_cmds;
open_plan_living_room: struct_room_cmds;
open_plan_dining_room: struct_room_cmds;
open_plan_entrance: struct_room_cmds;
open_plan_guest_wc: struct_room_cmds;
kitchen_kitchen: struct_room_cmds;
kitchen_pantry: struct_room_cmds;
bedrooms_office: struct_room_cmds;
bedrooms_hallway: struct_room_cmds;
bedrooms_laundry: struct_room_cmds;
bedrooms_shower: struct_room_cmds;
bedrooms_bedroom: struct_room_cmds;
master_bedroom_suite: struct_room_cmds;
master_bedroom_bathroom: struct_room_cmds;
exterior_veranda: struct_room_cmds;
exterior_entrance: struct_room_cmds;
exterior_yard: struct_room_cmds;
boiler: struct_boiler_cmd;
END_STRUCT;
NVL_Out: STRUCT
l_masterBedroom: struct_room_outs;
l_masterBathroom: struct_room_outs;
l_bedroom_1: struct_room_outs;
l_bedroom_2: struct_room_outs;
l_bathroom: struct_room_outs;
l_guestWc: struct_room_outs;
l_kitchen: struct_room_outs;
l_pantry: struct_room_outs;
l_livingRoom: struct_room_outs;
l_dinningRoom: struct_room_outs;
l_entrance: struct_room_outs;
l_hallway: struct_room_outs;
l_outVeranda: struct_room_outs;
l_outFront: struct_room_outs;
l_outBack: struct_room_outs;
l_outSide: struct_room_outs;
l_open_plan_living_room: struct_room_outs;
l_open_plan_dining_room: struct_room_outs;
l_open_plan_entrance: struct_room_outs;
l_open_plan_guest_wc: struct_room_outs;
l_kitchen_kitchen: struct_room_outs;
l_kitchen_pantry: struct_room_outs;
l_bedrooms_office: struct_room_outs;
l_bedrooms_hallway: struct_room_outs;
l_bedrooms_laundry: struct_room_outs;
l_bedrooms_shower: struct_room_outs;
l_bedrooms_bedroom: struct_room_outs;
l_master_bedroom_suite: struct_room_outs;
l_master_bedroom_bathroom: struct_room_outs;
l_exterior_veranda: struct_room_outs;
l_exterior_entrance: struct_room_outs;
l_exterior_yard: struct_room_outs;
boiler_status: struct_boiler_status;
END_STRUCT;