Although separate Vertex clusters are two different lighting systems, we still have some ways to send information between their Node-REDs. In this way, we can e.g. trigger the lighting on groups that are in a different cluster than the wall panel is. We do that by using the TCP/IP protocol and dedicated Node-RED nodes (TCP).
Prerequisites
Vertex clusters have to be physically connected within the same LAN network to allow for sending data between Node-REDs.
Vertex controllers still must be in the same network e.g. Vertex IP’s should be 10.0.6.XX.
Example: We are sending a command from Vertex 2 which is in cluster 1 to Vertex 3 which is in Cluster 2. You should set IPs e.g. 10.0.6.50 for Vertex 2 and 10.0.6.85 for Vertex 3.
Flow
JSON JSON JSON
Instructions
Configure the TCP connection - Vertex that is sending messages
Open the Node-RED for the Vertex that will be sending data to another cluster.
In the Node Palette, find the TCP node from the Output section.
Enter the node and select Type as Connect to and select port e.g. 4700. As a host, enter the Vertex IP to which you are sending messages.
Ports 1024-49151 are called user or registered ports and you can check the list of them to make sure that the TCP port is vacant and ready to use. We used 4700 because no other application uses that port.
4. Use two inject nodes for sending two different messages to the other cluster.
You can send any messages via TCP eg. from the dali2devs common node, dashboard nodes like slider, light scheduler etc.
Add Comment