node-red-contrib-hal2 1.11.1

A set of nodes to help with basic home automation logic

npm install node-red-contrib-hal2

A set of nodes to help with basic home automation logic.

Note: Even more new examples added

Install

cd ~/.node-red
npm install node-red-contrib-hal2

What is it?

node-red-contrib-hal2 is a set of Node-RED nodes useful for creating home automation flows. The basic component is the Thing node, a virtual representation of a (usually) physical IoT device. This can then be used to trigger events, route traffic based on rules and more.

Example Items

  1. Store a device state in a Thing node
  2. Fire an event when the value changes using an Event node
  3. One or more rules will compare the value and that of other Items in a Gate node
  4. Output the value to another flow with a Value node
  5. Send device commands to multiple Things using an Action node
  6. Log changes using the Log node

Example automation flows

Take a look at the example flows and Thing definitions in the https://github.com/flic/node-red-contrib-hal2/tree/main/examples folder for more information.

Example logging

History

1.11
New options for Gate rules: Time Since Update and Time Since Change.
It's now possible to use a function to create dynamic status text strings for Items.
Value and Item node output includes last_update and last_change epoch date.
New examples.

1.10
Export and import Thingtypes using the Node-RED Library function.
Minimum node version bumped to >=14, minimum Node-RED version bumped to >= 2.2.0.

1.9
It's now possible to configure multiple outputs on the Thing node and use a specific output per command.

1.8
Value node can update Item values

1.7
Command loopback for virtual Things

1.6
Thing attributes & filter function added.
Thing Cmnd topic parameter changed to a general topic parameter, some changes to Item topic filter and command topic.

1.5
Item notes added

1.4
Item filter applied to all node types

1.3
Dynamically set thing.id at runtime

1.2
Copy functions from other types

1.1
Item filter on gate node

1.0
Initial release

Node Info

Version: 1.11.1
Updated 1 day ago
License: ISC
Rating: 3.0 2

Actions

Rate:

Downloads

348 in the last week

Nodes

  • hal2ThingType
  • hal2EventHandler
  • hal2Thing
  • hal2Value
  • hal2Event
  • hal2Gate
  • hal2Action
  • hal2Group
  • hal2Log

Keywords

  • node-red
  • home-automation
  • iot

Maintainers