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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Define actions based on pre-defined schedules using the Light Scheduler node. This functionality is based on two conditions: a created schedule and a check if it’s dark (only when dark). When both are true, the light turns on.

Checking whether it is dark is based on time and geographic coordinates. The coordinates are entered by the user at the configuration stage of this flow, and the time is automatically downloaded from the Vertex controller.

Flow

[{"id":"adbbbe1dc08e3583","type":"light-scheduler","z":"766cd0d9afd9a034","settings":"b17a207d2a6309f3","events":"[{\"start\":{\"dow\":1,\"mod\":1270},\"end\":{\"dow\":2,\"mod\":0}},{\"start\":{\"dow\":3,\"mod\":1270},\"end\":{\"dow\":4,\"mod\":0}},{\"start\":{\"dow\":4,\"mod\":1270},\"end\":{\"dow\":5,\"mod\":0}},{\"start\":{\"dow\":5,\"mod\":1270},\"end\":{\"dow\":6,\"mod\":0}},{\"start\":{\"dow\":6,\"mod\":1270},\"end\":{\"dow\":0,\"mod\":0}},{\"start\":{\"dow\":0,\"mod\":1270},\"end\":{\"dow\":1,\"mod\":0}},{\"start\":{\"dow\":2,\"mod\":0},\"end\":{\"dow\":2,\"mod\":365}},{\"start\":{\"dow\":4,\"mod\":0},\"end\":{\"dow\":4,\"mod\":365}},{\"start\":{\"dow\":3,\"mod\":0},\"end\":{\"dow\":3,\"mod\":365}},{\"start\":{\"dow\":5,\"mod\":0},\"end\":{\"dow\":5,\"mod\":365}},{\"start\":{\"dow\":6,\"mod\":0},\"end\":{\"dow\":6,\"mod\":365}},{\"start\":{\"dow\":0,\"mod\":0},\"end\":{\"dow\":0,\"mod\":365}},{\"start\":{\"dow\":1,\"mod\":0},\"end\":{\"dow\":1,\"mod\":365}},{\"start\":{\"dow\":2,\"mod\":1270},\"end\":{\"dow\":3,\"mod\":0}}]","topic":"","name":"","onPayload":"100","onPayloadType":"num","offPayload":"0","offPayloadType":"num","onlyWhenDark":true,"scheduleRndMax":"","sunElevationThreshold":"-18","sunShowElevationInStatus":true,"outputfreq":"output.statechange.startup","x":540,"y":400,"wires":[["670b617a79cf6db3"]]},{"id":"ad6ed22c3d3afd97","type":"vertex cluster","z":"766cd0d9afd9a034","rate":90,"x":1050,"y":400,"wires":[]},{"id":"d5c72a044c791cfc","type":"comment","z":"766cd0d9afd9a034","name":"Setting sheduler","info":"","x":540,"y":360,"wires":[]},{"id":"d34708f7ff68a086","type":"comment","z":"766cd0d9afd9a034","name":"Direct value","info":"","x":790,"y":360,"wires":[]},{"id":"670b617a79cf6db3","type":"vertex action","z":"766cd0d9afd9a034","name":"","typeButton":"directv","bPayload":{"action":"setbrightness","group":"95c5b32707068e426c23abc3506faaaa","param":0,"priority":"254"},"bState":"","defaultpriority":true,"x":790,"y":400,"wires":[["ad6ed22c3d3afd97"]]},{"id":"b17a207d2a6309f3","type":"light-scheduler-settings","name":"test","latitude":"50.049272","longitude":"19.957367"}]

Instructions

  1. Find the following nodes in the palette on the left side of the Node-RED:

  • Light Scheduler

  • vertex action

  • vertex cluster

  1. Drag the nodes and drop them onto the workspace.

  2. Go to the Light scheduler node, in the section Globals, select the icon with a pen.

3. Set the name, longitude and latitude of your investment/building.

4. Create your schedule according to your requirements (in this example it is from 10 p.m. to 6 a.m.) and choose proper payloads and output.

5. Select only when dark and proper Threshold.

6. Go to the vertex action node and choose direct value mode with action set brightness (scale percent).

7. Link all the nodes and select the Deploy button.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.