Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Using this flow you will be able to adjust the DALI luminaire's brightness in the E2D system from the KNX level. The program described in this article is associated with dimming up/down using KNX buttons. This functionality is only available when you have LMS E2D REMOTE ACCESS KIT at your site and the Vertex ApC has been supplied with an internet connection.

KNX messages structure

We receive the following information from the KNX system:
{"decr_incr":1,"data":1} - start ‘up’
{"decr_incr":0,"data":1} - start ‘down’
{"decr_incr":0,"data":0} -stop dimming

Installing KNX library for Node-RED

...

5. Go to Pallete → Nodes and you will see that the library has been installed.

...

KNX messages structure

We receive the following information from the KNX system:
{"decr_incr":1,"data":1} - start ‘up’
{"decr_incr":0,"data":1} - start ‘down’
{"decr_incr":0,"data":0} -stop dimming

Importing and configuring the flow for KNX dimming

...

  1. Copy the flow below. Then import it in the Node-RED using Import in Settings.

    Code Block
    languagejson
    [{"id":"2d0c0d5871227ab4.b14db2ab1284","type":"function","z":"59857715fd4e3895.c357f85784f8","name":"funcion dimming KNX to E2D","func":"\nif(msg.payload.decr_incr==1 & msg.payload.data==1)\n{\n    msg.payload= { \"HOLDUP\" : 1 };\n    return msg;\n}\nelse if(msg.payload.decr_incr==0 & msg.payload.data==0)\n{\n    msg.payload= { \"HOLDUP\" : 2 };\n    return msg;\n}\nelse if(msg.payload.decr_incr==0 & msg.payload.data==1)\n{\n    msg.payload= { \"HOLDDOWN\" : 1 };\n    return msg;\n}\nelse if(msg.payload.decr_incr==0 & msg.payload.data==0)\n{\n    msg.payload= { \"HOLDDOWN\" : 2 };\n    return msg;\n}\n","outputs":1,"noerr":0,"x":820630,"y":240540,"wires":[["dceeb47ba0a22a2e.1ba7e869b948"]]},{"id":"385ca18a799f6b8b.e554ced8bf4c","type":"knxEasy-in","z":"59857715fd4e3895.c357f85784f8","server":"dfe0bfd2.ff9b","topic":"0/0/8","dpt":"3.007","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Dimming 0/0/8","x":580260,"y":240540,"wires":[["2d0c0d5871227ab4.b14db2ab1284"]]},{"id":"dceeb47ba0a22a2e.1ba7e869b948","type":"vertex action","z":"59857715fd4e3895.c357f85784f8","name":"Dimming","typeButton":"dimm","bPayload":{"DON":{"action":"noreact","group":"29842950807acaf4bf4d5eb07a7b4d72","param":null,"priority":"254"},"HOLDUP":{"action":"upaction","group":"29842950807acaf4bf4d5eb07a7b4d72","param":null,"priority":"254"},"HOLDDOWN":{"action":"downaction","group":"29842950807acaf4bf4d5eb07a7b4d72","param":null,"priority":"254"},"DOFF":{"action":"noreact","group":"29842950807acaf4bf4d5eb07a7b4d72","param":null,"priority":"254"}},"bState":false,"defaultpriority":true,"x":1050920,"y":240540,"wires":[["4607c54662b76853.253dec8a5288"]]},{"id":"4607c54662b76853.253dec8a5288","type":"vertex cluster","z":"59857715fd4e3895.c357f85784f8","userouting":false,"rate":5,"x":1190,"y":540,"wires":[]},{"id":"8ae7ffd4.b73d98","type":"comment","z":"fd4e3895.5784f8",":1390name":"Set correct IP of the KNX gateway!","info":"","x":320,"y":440,"wires":[]},{"id":"f9bd13ea.1bc25","type":"comment","z":"fd4e3895.5784f8","name":"Confirm the group address","info":"","x":300,"y":240480,"wires":[]},{"id":"dfe0bfd2.ff9b","type":"knxEasy-config","host":"10.0.6.100","port":"3671"}]

...