nearxos 0af21f4dc3 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.
2026-04-01 19:09:59 +03:00

Home Automation

How home automation works in this house: services and CODESYS connectivity.

How it works

  • CODESYS (Raspberry Pi) runs the PLC: lights and water boiler via EtherCAT I/O.
  • Node-RED runs automation logic and talks to CODESYS over UDP (network variables).
  • MQTT broker (LXC) is the message bus.
  • Zigbee2MQTT bridges Zigbee switches to MQTT.
  • Home Assistant is the dashboard and can trigger automations.

Flow: Zigbee switch or HA → Node-RED → UDP → CODESYS → EtherCAT → relays/lights or boiler.

Project layout

kkelomatic_home/
├── codesys/           # CODESYS project and source (PLC logic, NVL)
├── docs/              # Documentation (architecture, services, Codesys)
└── scripts/           # parse-codesys-xml.py

Documentation

CODESYS connectivity

  • NVL_Out (PLC → Node-RED): light states + boiler status, UDP.
  • NVL_In (Node-RED → PLC): light and boiler commands, UDP.

See codesys/src/NVL/README.md and nodered-payload.md for layout and ports.

Description
Home automation - CODESYS, Node-RED, HA
Readme 56 MiB
Languages
JavaScript 69.8%
Smalltalk 22%
Python 8.2%