Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-wled-notification

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-wled-notification

Node-RED node for visual notification effects on WLED devices

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25
decreased by-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

node-red-contrib-wled-notification

A Node-RED node for visual notification effects with WLED lights. It is inspired by notification effects of smart bulbs (e.g., Tradfri, Hue) and can be used for home automation or any other use case where visual notification signals are desired.

Watch the demo video to see an example use case with Home Assistant in action.

This node uses WLED's UDP Realtime protocol to display notification effects. Whatever WLED currently displays is temporarily replaced by the notification effect and continued afterward. This protocol does not change any WLED settings and therefore does not introduce edge cases in state handling (WLED settings can be safely changed during a notification effect).

Installation

To install this node, follow the instructions in the Node-RED documentation (use the Manage palette feature or run npm install node-red-contrib-wled-notification in your Node-RED user directory).

Getting Started

Add the WLED Notification node from the network category to your flow and configure the WLED host. All other settings have reasonable defaults. See examples for inspiration.

Effects

The node currently comes with a single customizable effect Blink which starts with black, then smoothly fades to a configured effectColor, then smoothly fades out again. The speed/duration can be controlled by effectFrequency (1 Hz means that the fade-in-out sequence takes one second), and the number of fade sequences can be controlled by effectCycles (3 means that the fade-in-out is repeated three times, amounting to 3 seconds duration at 1 Hz of the full effect).

Effects can be displayed on subsections of LED strips by setting ledStart and ledCount accordingly. This even allows to display multiple effect configurations in parallel on the same strip.

Advanced Use

  • All settings can be overridden by the input message, see the documentation within the Node-RED UI for details.
  • The node outputs the received message that triggered the notification effect after the effect has finished.
  • Subsequent messages received during an ongoing notification effect are discarded to avoid overlapping effects. From a user perspective, if two notifications happen within a very short time, it is sufficient to display a single visual notification to the user. This approach fails with different effects that carry different meanings, and it is yet to be determined whether queueing the effects makes sense.
  • It does not override other realtime effects that use the same protocol (e.g., Hyperion, Prismatik ambilight). Multiple active realtime effects interfere with each other and should best be avoided.

Contributing

This project welcomes pull requests. To contribute, please fork this repository, make your changes, and submit a pull request. Please ensure that your PR adheres to the project's standards.

  • Write PR title in Conventional Commit format.
  • Add a concise PR description.
  • Add tests that cover 100% of the changed/added code.
    • Exceptions are allowed. Use skip comments to exclude code from coverage.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for more details.

Keywords

FAQs

Package last updated on 04 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc