Relay commissioning

If you have a single channel relay it will present itself as a single device, however if you have a multiple channel relay it will show itself as several devices.

The relay in the E2D UI looks like a luminaire as shown below (Device list → General lighting [1]):

 

To control a relay device you should use the Set Brightness command [2] :

  • 0% - relay is open, no power supply - OFF

  • >0% - relay is closed, the circuit is powered - ON

To manually control the relay you can use this Power switch to turn it ON and OFF.

How to commission it?

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

This example shows how to use a relay to control ON-OFF luminaires using a time scheduler. The DALI relay will turn the light on every day at 8 a.m. and turn it off at 6 p.m.

[{"id":"9506027e.5f297","type":"vertex cluster","z":"b222345d.4e7b88","userouting":false,"rate":"35","x":930,"y":360,"wires":[]},{"id":"b42b6428.a50f18","type":"vertex action","z":"b222345d.4e7b88","name":"ON","typeButton":"single","bPayload":{"action":"setbrightness","group":"dec3da521e5495e16cb718621f5e8a7f","param":"50","priority":"254"},"bState":"","defaultpriority":true,"x":660,"y":420,"wires":[["9506027e.5f297"]]},{"id":"5f7031a0.a1df2","type":"inject","z":"b222345d.4e7b88","name":"","topic":"OFF","payload":"0","payloadType":"num","repeat":"","crontab":"00 17 * * 1,2,3,4,5","once":false,"onceDelay":0.1,"x":420,"y":320,"wires":[["2bbabd50.f20022"]]},{"id":"dcc4106f.619ca","type":"inject","z":"b222345d.4e7b88","name":"","topic":"ON","payload":"1","payloadType":"num","repeat":"","crontab":"30 06 * * 1,2,3,4,5","once":false,"onceDelay":0.1,"x":430,"y":420,"wires":[["b42b6428.a50f18"]]},{"id":"2bbabd50.f20022","type":"vertex action","z":"b222345d.4e7b88","name":"OFF","typeButton":"single","bPayload":{"action":"setbrightness","group":"dec3da521e5495e16cb718621f5e8a7f","param":"0","priority":"254"},"bState":"","defaultpriority":true,"x":660,"y":320,"wires":[["9506027e.5f297"]]},{"id":"bfe12467.93c0d8","type":"comment","z":"b222345d.4e7b88","name":"Set schedule","info":"","x":410,"y":240,"wires":[]},{"id":"800f70b8.a7c71","type":"comment","z":"b222345d.4e7b88","name":"Set action for relay","info":"","x":690,"y":240,"wires":[]}]

Step-by-step instructions

Find the following nodes:

  • inject

  • vertex action

  • vertex cluster

Create an inject node for scheduling the OFF commands. Set the node payload as 0 and the node topic as OFF [3] and in the repeat section choose the day and time when the lights will switch off [4]. To end configure node click Done at the upper corner of the window [5].

Create an inject node for scheduling the ON commands. Set the second node payload as 1 and the node topic as OFF [6] and in the repeat section choose the day and time when the lights will switch on[7]. To end configure node click Done at the upper corner of the window [8].

Create a Vertex action node for the off commands [9]. Select single button mode[10]. Choose the action: set brighness, the group that is to be controled and 0 for the brightness level[11].

Create a Vertex action node for the on commands[12]. Select single button mode[13]. Choose the action: set brighness, the group that is to be controled and the brightness level (any value more than 0)[14].

Connect the nodes together as shown above and connect them to the cluster node (create one if needed).

Do not forget to click Done and Deploy!

 

Related pages