CCT button

Using this template, you will be able to control the color temperature using a standard pushbutton. The standard values in the template are set to this:

  • trigger a color temperature 2700 K (minimum)

  • trigger a color temperature 6500 K (maximum)

  • Jump to minimum value and increase or jump to maximum and decrease the color temperature by holding down the button.

Import the ready made flow using the instructions here: or follow the instructions below.

[{"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":[]}]

Step-by-step instructions

If you want different values follow all the instructions in this article (including the optional one).

  1. Copy the flow above and paste it into an empty flow.

  2. Select your device at Serial Number field [1]. Select the DALI-2 Input Unit [2] (which is one physical button) in Dali2Device field and set the Mode to ESDIM mode [3].

2. Select the luminaire group in the vertex action node [4].

If you don’t want to change the CCT values click Done and Deploy!

3.(Optional)

These optional steps allow you to change the two CCT values being sent from the node.

The CCT button is a subflow elegantly hidden in one node. To configure the parameters within the CCT button node click the node to enter the configuration window and select the Edit subflow template [5].

Then you will see the following subflow structure.

To change the CCT values you will need to edit the function nodes called 2700K and 6500K [6]. Click the nodes to enter the editing window and change the desired CCT values.

The step variable affects how fast the colour will increase or decrease, open the increase/decrease colour step value and change the step value [7].

You can also change the start value for colour changing. You can set these values by clicking the start colour increase/decrease node and changing the desired value [8].

Go back to the main flow. Select the luminaire group in the vertex action node [9].

4. Do not forget to click Done and Deploy!

Using the debug node you can see and check the behavior of the system while pressing and holding the buttons. For more information go here: