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

@@ -0,0 +1,40 @@
#,zone,area,light
1,l1,open_plan,living_room_main
2,l1,open_plan,living_room_spots
3,l1,open_plan,dining_room_main
4,l1,open_plan,dining_room_spots
5,l1,open_plan,entrance_mirror
6,l1,open_plan,entrance_main
7,l1,open_plan,guest_wc_main
8,l1,open_plan,guest_wc_strip
9,l1,open_plan,guest_wc_fan
10,l1,open_plan,living_room_strip
11,l1,open_plan,living_room_strip
12,l2,kitchen,kitchen_main
13,l2,kitchen,island
14,l2,kitchen,kitchen_cabinets
15,l2,kitchen,fridge
16,l2,kitchen,pantry
17,l3,bedrooms,office_main
18,l3,bedrooms,office_strip
19,l3,bedrooms,hallway
20,l3,bedrooms,laundry
21,l3,bedrooms,shower_spots
22,l3,bedrooms,shower_fan
23,l3,bedrooms,bedroom_main
24,l3,bedrooms,bedroom_spots
25,l4,master_bedroom,main
26,l4,master_bedroom,spots
27,l4,master_bedroom,strip
28,l4,master_bedroom,door
29,l4,master_bedroom,dresser
30,l4,master_bedroom,bathroom_spots
31,l4,master_bedroom,bathroom_fan
32,l5,exterior,veranda
33,l5,exterior,bbq
34,l5,exterior,entrance_door
35,l5,exterior,front_lights
36,l5,exterior,backyard_flood_light_1
37,l5,exterior,backyard_flood_light_2
38,l5,exterior,master_bedroom_flood_light
39,l5,exterior,driveway
1 # zone area light
2 1 l1 open_plan living_room_main
3 2 l1 open_plan living_room_spots
4 3 l1 open_plan dining_room_main
5 4 l1 open_plan dining_room_spots
6 5 l1 open_plan entrance_mirror
7 6 l1 open_plan entrance_main
8 7 l1 open_plan guest_wc_main
9 8 l1 open_plan guest_wc_strip
10 9 l1 open_plan guest_wc_fan
11 10 l1 open_plan living_room_strip
12 11 l1 open_plan living_room_strip
13 12 l2 kitchen kitchen_main
14 13 l2 kitchen island
15 14 l2 kitchen kitchen_cabinets
16 15 l2 kitchen fridge
17 16 l2 kitchen pantry
18 17 l3 bedrooms office_main
19 18 l3 bedrooms office_strip
20 19 l3 bedrooms hallway
21 20 l3 bedrooms laundry
22 21 l3 bedrooms shower_spots
23 22 l3 bedrooms shower_fan
24 23 l3 bedrooms bedroom_main
25 24 l3 bedrooms bedroom_spots
26 25 l4 master_bedroom main
27 26 l4 master_bedroom spots
28 27 l4 master_bedroom strip
29 28 l4 master_bedroom door
30 29 l4 master_bedroom dresser
31 30 l4 master_bedroom bathroom_spots
32 31 l4 master_bedroom bathroom_fan
33 32 l5 exterior veranda
34 33 l5 exterior bbq
35 34 l5 exterior entrance_door
36 35 l5 exterior front_lights
37 36 l5 exterior backyard_flood_light_1
38 37 l5 exterior backyard_flood_light_2
39 38 l5 exterior master_bedroom_flood_light
40 39 l5 exterior driveway