A set of nodes to help with basic home automation logic
A set of nodes to help with basic home automation logic.
Note: Even more new examples added
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.
- Store a device state in a Thing node
- Fire an event when the value changes using an Event node
- One or more rules will compare the value and that of other Items in a Gate node
- Output the value to another flow with a Value node
- Send device commands to multiple Things using an Action node
- Log changes using the Log node
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.
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.
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.
It's now possible to configure multiple outputs on the Thing node and use a specific output per command.
Value node can update Item values
Command loopback for virtual Things
Thing attributes & filter function added.
Thing Cmnd topic parameter changed to a general topic parameter, some changes to Item topic filter and command topic.
Item notes added
Item filter applied to all node types
Dynamically set thing.id at runtime
Copy functions from other types
Item filter on gate node