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

node-red-contrib-openhab2

v1.1.8

Published

openhab home automation for node-red

Downloads

48

Readme

node-red-contrib-openhab2

Description

Nodes facilitating the automation of openHAB ( http://www.openhab.org ) items with Node-RED ( http://nodered.org ).

Installation

$ cd ~/.node-red
$ npm install node-red-contrib-openhab2

Nodes

- openhab2-controller

Configuration node for communication with an openHAB controller.

Configuration:

  • Name : Specify a name for the configuration node
  • Protocol : "http" or "https"
  • Host : Specify the hostname or ip address
  • Port : (Optionally) Specify the ip port
  • Path : (Optionally) Specify the additional base path
  • Username : (Optionally) Specify the username to authenticate
  • Password : (Optionally) Specify the password to authenticate
- openhab2-in

Listens to state changes of a selected openHAB Item.

Configuration:

  • Name : Optionally specify a name
  • Controller : Select the openHAB controller
  • Item : Select the Item to monitor

Messages injected in NodeRED flows (2 channels):

Channel 1:

  • msg.item : the item's itemname (not label)
  • msg.topic : "StateEvent"
  • msg.payload : the new state of the selected item

Channel 2:

  • msg.item : the item's itemname (not label)
  • msg.topic : "RawEvent"
  • msg.payload : raw (unprocessed) event for the selected item
- openhab2-monitor

Monitors the openhab2-controller node.

Configuration:

  • Name : Optionally specify a name
  • Controller : Select the openHAB controller

Messages injected in NodeRED flows (3 channels):

Channel 1:

  • msg.topic : "ConnectionStatus"
  • msg.payload : connection status ('ON' or 'OFF')

Channel 2:

  • msg.topic : "ConnectionError"
  • msg.payload : error message

Channel 3:

  • msg.topic : "RawEvent"
  • msg.payload : raw (unprocessed) event for all items
- openhab2-out

Sends commands or state updates to a selected openHAB Item. E.g. "ON", "OFF", "REFRESH", ...

Configuration:

  • Name : Optionally specify a name
  • Controller : Select the openHAB controller
  • Item : Optionally select the Item to address. If specified, it overrides the item specified in the incoming message.
  • Topic : Optionally select "ItemCommand" or "ItemUpdate". If specified, it overrides the topic specified in the incoming message.
  • Payload : Optionally specify the command or update value to send to the selected item. If specified, it overrides the payload specified in the incoming message.

Messages accepted by NodeRED flows:

  • msg.item : optionally the Item to address
  • msg.topic : optionally "ItemCommand", "ItemUpdate"
  • msg.payload : optionally the fixed command or update value to send to the selected item

Messages injected in NodeRED flows (1 channel):

Channel 1: if output is successful, the input message is copied to this channel.

- openhab2-get

Gets an openHAB Item on an input message.

Configuration:

  • Name : Optionally specify a name
  • Controller : Select the openHAB controller
  • Item : Optionally select the Item to get. If specified, it overrides the item specified in the incoming message.

Messages accepted by NodeRED flows:

  • msg.item : optionally the Item to address

Messages injected in NodeRED flows (1 channel):

Channel 1: The input message with addition of :

  • msg.payload : the item object (name, label, state, ...)
  • msg.payload_in : copy of incoming message's payload

Release notes

v1.1.4

  • paletteLabel defined for all nodes
  • openhab2-out now outputs the input message in case of success
  • Allow user to filter a long list of OpenHAB items by typing in (a part of) itemname. (Case-insensitive)