Skip to content

Lets your RGB(W) controllable lights or ledstrips follow the sun color and a warm color at night

License

Notifications You must be signed in to change notification settings

vjccruz/node-red-contrib-daylight-rgbw

 
 

Repository files navigation

node-red-contrib-daylight-rgbw

Lets your RGB(W) controllable lights or ledstrips follow the sun color and a warm color at night

Daylight RGBW Control Node-RED Node

NPM version NPM downloads

This node offers the possibility to control the color of a RGBW ledstrip according to time of day. This is done by calculating the angle of the sun with the horizon and project that on a color temperature scale. Therefore it is important to correctly configure your longitude and lattitude.

Typically you choose a color tempurature of around 1000K for sunrise/sunset (sun at horizon) and a color temperature around 5500K for the highest point of the sun.

But to tune it for your specific RGBW source you can tune these settings in the configuration. The white level is kept constant (for now) and can be configured too.

When the item is switched off, it will still update the RGBW colors, so that when the light source is switched on it will drectly be set to the correct colors.

The typical setup is show below: alt text

This examples follows the rules below:

Have an external node to provide the current timestamp.

For instance the Inject Node offers this. Choose to provide the timestamp by interval to determine how often the colors will be updated.

Have your RGB(W) node status attached to the input to provide ON or OFF

This way you prevent the light source to come on each time when the colors are updated. This node is optimized to work directly with OpenHab2 nodes, but will work with any node as long as the topic is set to item-switch.

Have your RGB(W) dimmer controls for the color channels connected to the outputs.

The current implementation will output percentages. If you need a range 0-255 you need to rescale.

Installation

$ npm -g i node-red-contrib-daylight-rgbw

About

Lets your RGB(W) controllable lights or ledstrips follow the sun color and a warm color at night

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 51.4%
  • HTML 48.6%