LMS DALI-2 SWITCH PANEL commissioning

Wall panels come in 2,4,6 or 8 button versions. There is a diode for each push button and one on the top. The upper-middle diode is used for identification and also shows bus communication. 

How to commission it?

The getting started with Node-RED section is here: Programing logic (Node-Red)

[{"id":"9b801268ea67d9d5","type":"tab","label":"Flow 4","disabled":false,"info":"","env":[]},{"id":"d5192140709311b5","type":"DALI2 Devs Common","z":"9b801268ea67d9d5","name":"","outputs":2,"uid":"00EF01158FE0E64AD5","devStatus":2,"devSettings":[{"instanceType":1,"isDisabled":false,"mode":"normal","evenFilters":86},{"instanceType":1,"isDisabled":false,"mode":"normal","evenFilters":84},{"instanceType":1,"isDisabled":true,"mode":"normal","evenFilters":86},{"instanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"instanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"instanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84}],"savedSettings":[{"instanceType":1,"isDisabled":false,"mode":"normal","evenFilters":84},{"instanceType":1,"isDisabled":false,"mode":"normal","evenFilters":84},{"instanceType":1,"isDisabled":true,"mode":"normal","evenFilters":86},{"instanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"instanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84},{"instanceType":1,"isDisabled":true,"mode":"normal","evenFilters":84}],"x":480,"y":480,"wires":[["9079e911dad390a8"],["7e3db44346c61841"]]},{"id":"373ffcfdbfdda6e3","type":"vertex cluster","z":"9b801268ea67d9d5","rate":90,"x":950,"y":480,"wires":[]},{"id":"9079e911dad390a8","type":"vertex action","z":"9b801268ea67d9d5","name":"","typeButton":"single","bPayload":{"action":"setbrightness","group":"fb3565668659d2c83c26a6e2fbad2a7c","param":"0","priority":"254"},"bState":"","defaultpriority":true,"x":730,"y":440,"wires":[["373ffcfdbfdda6e3","8b51f43725ae2273"]]},{"id":"7e3db44346c61841","type":"vertex action","z":"9b801268ea67d9d5","name":"","typeButton":"single","bPayload":{"action":"setbrightness","group":"fb3565668659d2c83c26a6e2fbad2a7c","param":"10","priority":"254"},"bState":"","defaultpriority":true,"x":730,"y":520,"wires":[["373ffcfdbfdda6e3","fa9c374959bcd001"]]},{"id":"8b51f43725ae2273","type":"change","z":"9b801268ea67d9d5","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"feedback\":{\"0\":1,\"1\":0}}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":300,"wires":[["d5192140709311b5"]]},{"id":"fa9c374959bcd001","type":"change","z":"9b801268ea67d9d5","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"feedback\":{\"0\":0,\"1\":1}}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":660,"wires":[["d5192140709311b5"]]},{"id":"7af0de42a20156ef","type":"comment","z":"9b801268ea67d9d5","name":"Configure the node as feedback","info":"","x":650,"y":260,"wires":[]},{"id":"324937600901d579","type":"comment","z":"9b801268ea67d9d5","name":"Set action","info":"","x":720,"y":480,"wires":[]},{"id":"0d70a5e51e3879b6","type":"comment","z":"9b801268ea67d9d5","name":"Choose the button, select instances and event filters","info":"","x":410,"y":520,"wires":[]},{"id":"36124558b084f43b","type":"comment","z":"9b801268ea67d9d5","name":"Configure the node as feedback","info":"","x":650,"y":700,"wires":[]}]

Step-by-step instructions

To program these switches in Node-RED you will need to use a DALI2 Devs Common node, which is available in the node palette on the left-hand side of Node-RED UI. 

After draging the node into your flow workspace, click the node to enter the configuration window. Choose the serial number of the device [1].By default all instances are marked which means they are disabled. Enable buttons by unchecking the is disabled checkbox [2] .

Then select the mode for each button [2]. For the standard toggle button use Mode: Normal. If you need multifunctional dimming method choose Mode:ESDIM (for more information on ESDIM go here: Dimming ).

The most common Event filters are set by default [3]. In special cases you can deactivate some of them.

 

Then click Done in the upper right corner of the window.

Find the vertex action node in the palette. For each button drag an action node to the workspace and define the target group. Depending on usage choose a relevant action (single button, toggle button, triple button, etc.).

If you want to use the buttons LEDs configure a change node, to work as feedback. Set the change node payload using these instructions:

Payload syntax:

{“feedback“:{“A1“: B1, “A2“: B2,….}}

Ax : button instance number starting from “0“.

Bx : LED state (0-OFF,1-ON).

Remember to connect your flow to the ​​​​​​​vertex cluster node.

Then click the Deploy button at the upper-right corner of the Node-RED.