28-03-2020: The node-red-contrib-openhab-v2 node has been completely rebuilt. Several annoying bugs were squashed, obsolute and redundant code was removed and the configuration UI has had an overhaul. As a result this version (2.0.0 and upwards) is not backwards compatible with your existing flows. Keep this in mind when you upgrade and always make backups of your existing flows and configuration.
Nodes facilitating automation of OpenHAB ( http://www.openhab.org ) items with Node-RED ( http://nodered.org ).
You can install this NodeRED node via the NPM repository using the NodeRED admin interface (Manage palelette >> Install).
These steps are required for a manual installation:
$ cd ~/.node-red
$ npm install node-red-contrib-openhab-v2
To develop or contribute to this repository please perform the folowing steps. *
$ docker run -d -p 1880:1880 --name nodered -v \
:/data nodered/node-red
$ mkdir -p ./nodes
$ cd ./nodes
$ git clone https://github.com/QNimbus/node-red-contrib-openhab-v2.git # !! If you want to submit a PR - use your forked repository here !!
$ docker exec -it --user root --workdir /data/nodes/node-red-contrib-openhab-v2 nodered yarn install **
$ docker restart nodered
* This guide assumes running NodeRED as a Docker container
** On windows you may need to escape the '/' character by prepending another (e.g. '//'). When using Git Bash also add winpty
before the Docker command
Configuration node for communication with an OpenHAB controller.
Configuration:
Listens to state changes of a selected OpenHAB Item. Will only watch for selected event types for the 1st output channel. The 2nd channel (Raw events) are all passed into the flow without filtering for specific event types.
Configuration:
Messages injected in NodeRED flows (2 output channels):
Output 1 (StateEvent):
Output 2 (RawEvent):
Output a message to the openab-v2-controller. Can use an incomming message which can be overridden by the configured parameters on the node itself.
Configuration:
Messages injected in NodeRED flows (1 input channel):
Input:
To do....