This documentation is for older software versions (up to 3.1.29). If you have software version 3.1.30 or higher, go to MODERN Home

(Classic) Control panel (buttons)

In Node-RED we can program any DALI device such as buttons, multisensors, relays, etc. Let’s say that we need to program a 4-button panel. Buttons will be responsible for:

  • turning on the light

  • turning off the light

  • set the brightness to 50%

  • set the brightness to 10%

Flow

[{"id":"9d9261ef.1d337","type":"DALI2 Devs Common","z":"ce67c69c.4fd4e8","name":"","outputs":4,"uid":"000000055DF8432D77","savedSettings":[{"instanceType":1,"isDisabled":false,"mode":"normal"},{"instanceType":1,"isDisabled":false,"mode":"normal"},{"instanceType":1,"isDisabled":false,"mode":"normal"},{"instanceType":1,"isDisabled":false,"mode":"normal"},{"instanceType":1,"isDisabled":true,"mode":"normal"},{"instanceType":1,"isDisabled":true,"mode":"normal"}],"x":680,"y":780,"wires":[["6c51f7a7.b2f768"],["8f85d6e8.a046f8"],["f334a1d6.f24f4"],["56162c55.f8b3e4"]]},{"id":"6c51f7a7.b2f768","type":"vertex action","z":"ce67c69c.4fd4e8","name":"ON","typeButton":"single","bPayload":{"action":"maxlevel","group":"f9659369ae52a243385a997dec4f8e86","param":null,"priority":"254"},"bState":"","defaultpriority":true,"x":940,"y":740,"wires":[["97c3bacc.68e538"]]},{"id":"97c3bacc.68e538","type":"vertex cluster","z":"ce67c69c.4fd4e8","userouting":false,"rate":5,"x":1170,"y":780,"wires":[]},{"id":"8f85d6e8.a046f8","type":"vertex action","z":"ce67c69c.4fd4e8","name":"OFF","typeButton":"single","bPayload":{"action":"off","group":"f9659369ae52a243385a997dec4f8e86","param":null,"priority":"254"},"bState":"","defaultpriority":true,"x":940,"y":780,"wires":[["97c3bacc.68e538"]]},{"id":"f334a1d6.f24f4","type":"vertex action","z":"ce67c69c.4fd4e8","name":"50%","typeButton":"single","bPayload":{"action":"setbrightness","group":"f9659369ae52a243385a997dec4f8e86","param":"50","priority":"254"},"bState":"","defaultpriority":true,"x":940,"y":820,"wires":[["97c3bacc.68e538"]]},{"id":"56162c55.f8b3e4","type":"vertex action","z":"ce67c69c.4fd4e8","name":"10%","typeButton":"single","bPayload":{"action":"setbrightness","group":"f9659369ae52a243385a997dec4f8e86","param":"10","priority":"254"},"bState":"","defaultpriority":true,"x":940,"y":860,"wires":[["97c3bacc.68e538"]]},{"id":"498551e7.3ee72","type":"comment","z":"ce67c69c.4fd4e8","name":"Select and configure a panel","info":"## Clear 4 checkboxes to have 4 buttons to manage. Set the Mode as Normal. You don’t need to change Event filters.\n\n","x":680,"y":720,"wires":[]},{"id":"d17f9577.007ec8","type":"comment","z":"ce67c69c.4fd4e8","name":"Define actions for 4 buttons","info":"## 1. Select mode as Single button.\n## 2. Select the right group.\n\n","x":940,"y":680,"wires":[]}]

Instructions

  1. Find the following nodes in the palette on the left side of the Node-RED

  • DALI2 Devs Common

  • vertex action x4

  • vertex cluster

2. Drag the nodes and drop them onto the workspace.

3. In the DALI2 Devs Common node, in the Serial Number field, select the panel you want. In this field, you have a list of all DALI devices found by your Vertex controller.

Make sure that the multisensor is properly connected to the Vertex properly. If not, you won’t be able to set up the parameters. The device with “no communication” status is marked as “NC” at the beginning of the name.

4. Below you have the outputs of every Input Unit device - normally they are disabled. Clear 4 checkboxes to have 4 buttons to manage. Set the Mode as Normal.

5. You have 4 vertex action nodes for the same number of buttons. In these nodes set:

  • 1st button for turning off the light:
    Set the name as e.g. ON. Then select the Mode as Single button. Then you need to define action as Recall max level and choose the luminaire group you want to control.

  • 2nd button for turning off the light (OFF):
    Here, you need only to change the action to Recall off.

  • 3rd button for 50% brightness:
    Select the action as Set brightness and then by using the slider, set the brightness as 50. The rest of the parameters is the same as in the previous steps.

     

  • 4th button for 10% brightness:
    This node looks like the previous one, apart from the Brightness value.

6. Link all nodes together. Connect the Dali2 Devs Common node outputs to complementary vertex action nodes and then connect the outputs of vertex action nodes to the vertex cluster node.

7. After you select the Deploy button - the blue dots on the nodes should disappear. The green squares will then appear to show the current status of the devices. It means that the viewed flow is already sent to VERTEX.

Related pages