A scheduler
Install the node
Click the right menu in the Node-RED web page. Choose Import then node.
Type
node-red-contrib-simple-weekly-scheduler
in the edit box and click the OK button.
This imports a third party software. The installation may take minutes (a progress bar shows the progress), depending on what is already installed on your device.
At the end, click the reboot button to restart the device.
Now you can find this node in the palette (use the filter to find it):
Drag’n drop it on the workspace, and double click it to set parameters:
by cliquing and draging, you can create events with begin and end hours that triggers specific payload at that time.
Trigger the flow with the scheduler
In the following flow, it is used to shut off lights at the end of the day in our office:
Credits
This timer is created by Ben Hardill. Find it here: https://flows.nodered.org/node/node-red-contrib-simple-weekly-scheduler