npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@deroetzi/node-red-contrib-smarthome-helper

v0.13.2

Published

A collection of personal helper nodes for Node-RED

Downloads

1,079

Readme

node-red-contrib-smarthome-helper

node-red-contrib-smarthome-helper is a Node-RED module designed to provide utility functions and tools that simplify the development of smart home automations. It includes helper functions to manage device states, handle complex calculations, and facilitate communication between nodes in a Node-RED flow.

Features

  • Provides helper functions to support smart home automation.
  • Facilitates the integration of complex logic into Node-RED flows.
  • Built with reusability and simplicity in mind.

Installation

To install the module, run the following command in your Node-RED user directory (typically ~/.node-red):

npm install node-red-contrib-smarthome-helper

After installation, restart Node-RED to load the new helper functions.

Available Nodes

Automation Gate

The Automation Gate node is used to control the flow of messages based on specified conditions. It acts as a gate that opens or closes depending on the defined automation logic. This allows users to create flows that only pass messages when certain criteria are met, such as time of day, device state, or other environmental conditions.

Features:

  • Configurable conditions to control message flow.
  • Useful for creating more complex automation logic where actions depend on multiple factors.

Example Use Case:

  • Use the Automation Gate to allow motion sensor events to trigger a light only during nighttime hours.

Control Gate

The Control Gate node provides a mechanism to enable or disable the flow of messages manually or based on an external trigger. It can be used to create manual overrides or to temporarily pause parts of an automation flow.

Features:

  • Manual control to enable or disable the flow of messages.
  • External input can be used to dynamically change the state of the gate.

Example Use Case:

  • Use the Control Gate to temporarily disable an automation, such as preventing notifications during certain times (e.g., when guests are over).

Usage

  1. Open Node-RED.
  2. Use the provided nodes (Automation Gate and Control Gate) to enhance your smart home automations.
  3. Configure the nodes to interact with your smart devices effectively.

Example Usage

Here is an example of how you might use the provided nodes to manage a smart lighting system:

  1. Add an Automation Gate to ensure lights only turn on when motion is detected and it is nighttime.
  2. Use a Control Gate to manually disable the lighting automation during specific situations, such as when you are hosting guests.

Contributing

Feel free to contribute by opening issues or creating pull requests. Contributions are always welcome to make this project even better.

License

This project is licensed under the MIT License.

Links

For more information and documentation, please visit the GitHub repository.