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) CCT button

With this program, you will be able to control the color temperature using a standard pushbutton: trigger a minimum color temperature equal to 2700 K and a maximum equal to 6500 K, increase or decrease the color temperature by holding the button.

Flow

[{"id":"8ad892b.a332e7","type":"subflow","name":"CCT button (2)","info":"","in":[{"x":100,"y":340,"wires":[{"id":"34830109.e42cfe"}]}],"out":[{"x":940,"y":320,"wires":[{"id":"5736551d.7dffbc","port":0},{"id":"87cdbd65.4ca0c","port":0},{"id":"49a1f1dc.a3d9e","port":0},{"id":"f3614b3c.792398","port":0}]}]},{"id":"2779099.149f3f6","type":"switch","z":"8ad892b.a332e7","name":"","property":"payload.HOLDDOWN","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":320,"wires":[["3a616aeb.c1a216"],["d39b65ae.6d8d18"]]},{"id":"6cc632a.2b83bcc","type":"switch","z":"8ad892b.a332e7","name":"","property":"payload.HOLDUP","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":400,"wires":[["37c2bc4f.657514"],["d39b65ae.6d8d18"]]},{"id":"d39b65ae.6d8d18","type":"change","z":"8ad892b.a332e7","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":360,"wires":[["635e983c.519178","2652cb3.5982034"]]},{"id":"ad1fbaf0.e48e18","type":"function","z":"8ad892b.a332e7","name":"6500 - step","func":"var step =500\nmsg.payload = msg.payload-step;\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":360,"wires":[["635e983c.519178","5736551d.7dffbc"]]},{"id":"635e983c.519178","type":"trigger","z":"8ad892b.a332e7","name":"","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"1","extend":false,"units":"s","reset":"","bytopic":"all","outputs":1,"x":640,"y":320,"wires":[["ad1fbaf0.e48e18"]]},{"id":"ac2284c5.1b5fd8","type":"switch","z":"8ad892b.a332e7","name":"","property":"payload.UP","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":450,"y":240,"wires":[["f3614b3c.792398"]]},{"id":"e33dc858.a02898","type":"switch","z":"8ad892b.a332e7","name":"","property":"payload.DOWN","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":450,"y":280,"wires":[["49a1f1dc.a3d9e"]]},{"id":"3a616aeb.c1a216","type":"function","z":"8ad892b.a332e7","name":"","func":"msg.payload =6500;\nreturn msg;","outputs":1,"noerr":0,"x":610,"y":280,"wires":[["635e983c.519178"]]},{"id":"5736551d.7dffbc","type":"switch","z":"8ad892b.a332e7","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"2700","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":810,"y":360,"wires":[[]]},{"id":"f3614b3c.792398","type":"function","z":"8ad892b.a332e7","name":"6500K","func":"msg.payload =6500;\nreturn msg;","outputs":1,"noerr":0,"x":610,"y":200,"wires":[[]]},{"id":"49a1f1dc.a3d9e","type":"function","z":"8ad892b.a332e7","name":"2700K","func":"msg.payload =2700;\nreturn msg;","outputs":1,"noerr":0,"x":610,"y":240,"wires":[[]]},{"id":"12e90351.40e07d","type":"function","z":"8ad892b.a332e7","name":"2700 + step","func":"var step =500\nmsg.payload = msg.payload+step;\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":480,"wires":[["2652cb3.5982034","87cdbd65.4ca0c"]]},{"id":"2652cb3.5982034","type":"trigger","z":"8ad892b.a332e7","name":"","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"1","extend":false,"units":"s","reset":"","bytopic":"all","outputs":1,"x":640,"y":440,"wires":[["12e90351.40e07d"]]},{"id":"37c2bc4f.657514","type":"function","z":"8ad892b.a332e7","name":"","func":"msg.payload =2700;\nreturn msg;","outputs":1,"noerr":0,"x":630,"y":400,"wires":[["2652cb3.5982034"]]},{"id":"87cdbd65.4ca0c","type":"switch","z":"8ad892b.a332e7","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"6500","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":810,"y":480,"wires":[[]]},{"id":"34830109.e42cfe","type":"function","z":"8ad892b.a332e7","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":340,"wires":[["6cc632a.2b83bcc","ac2284c5.1b5fd8","e33dc858.a02898","2779099.149f3f6"]]},{"id":"da92eb25.737968","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"981c10e8.084d9","type":"function","z":"da92eb25.737968","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"x":420,"y":460,"wires":[["1c431a89.6eef25"]]},{"id":"1c431a89.6eef25","type":"subflow:8ad892b.a332e7","z":"da92eb25.737968","name":"","env":[],"x":650,"y":460,"wires":[["27daac7e.5e0044"]]},{"id":"27daac7e.5e0044","type":"vertex action","z":"da92eb25.737968","name":"","typeButton":"directv","bPayload":{"action":"setcolortemperature","group":null,"param":0,"priority":"254"},"bState":"","defaultpriority":true,"x":990,"y":460,"wires":[["30278026.1caca"]]},{"id":"30278026.1caca","type":"vertex cluster","z":"da92eb25.737968","rate":5,"x":1210,"y":460,"wires":[]},{"id":"3e3e3a54.47fdb6","type":"dali2devs","z":"da92eb25.737968","name":"","uid":"0000000829E23C255A","dali2dev":"0","devStatus":2,"instanceType":1,"dali2t1":90,"dali2t2":"","mode":"dimmb","x":230,"y":460,"wires":[["981c10e8.084d9"]]},{"id":"579c90b3.b2bef","type":"comment","z":"da92eb25.737968","name":"Select and configure button in ESDIM mode","info":"","x":230,"y":420,"wires":[]},{"id":"eba8b504.28ad88","type":"comment","z":"da92eb25.737968","name":"Edit parameters by clicking Enter subflow template","info":"","x":670,"y":420,"wires":[]},{"id":"adfc4e23.e26f1","type":"comment","z":"da92eb25.737968","name":"Set: DirectValue; Set color temp.","info":"","x":1010,"y":420,"wires":[]}]

Instructions

  1. Configure the dali2devs node. Select the DALI-2 Input Unit (which is one physical button) in Dali2Device field and set the Mode to ESDIM mode.

2. (Optional) Configure the parameters within the CCT button node. It is a subflow and you will get inside it by selecting the Edit subflow template.

Then you will see the following subflow structure.

There, in the function nodes, you can e.g. define other values than 2700 or 6500 K (depends on what range of values is supported by certain luminaires). You can also change the step variable to another value.

 

3. Go back to the main flow. Select the luminaire group in the vertex action node.

4. Select the Deploy button. The program is ready to go.

Using the debug node you can see and check the behavior of the system while pressing and holding the buttons.

 Related articles