Info |
---|
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
...
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Import the ready made flow using the instructions here: Importing a Node-RED flow or follow the instructions below. |
...
Create an inject node for scheduling the OFF commands. Set the node payload as 0 and thenode 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 topic inject node as ON node payload as 1 and thenode 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).
...