Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-red-contrib-ha-avg-by-group) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-red-contrib-ha-avg-by-group
Node-RED node for averaging Home Assistant temperature sensors by group, skipping rows when the contact is on or the row is unchecked.
v1.2.0
- Fix: robust persistence — rows are stored as a JSON string (
rowsJson) to avoid editor issues. - New: HA entity autocomplete (uses a datalist populated from the runtime via
/ha-avg-by-group/entities).
Install
- Copy this folder into your Node-RED environment, e.g.
~/.node-red/node_modules/node-red-contrib-ha-avg-by-group/ - Restart Node-RED.
- Find it in the palette: Function → HA avg (groups)
Configure
- Enable Expose to global context in the
node-red-contrib-home-assistant-websocketserver node. - Default state path:
homeassistant.homeAssistant.states(configurable in the node).
Autocomplete
The editor fetches entity IDs from the runtime (/ha-avg-by-group/entities). The runtime keeps a cache by reading
the global HA states on deploy and on each message. Type sensor. or binary_sensor. to see suggestions.
Output
msg.payload is an object with string group keys and numeric averages as values.
License
MIT