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.
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).
Output
msg.payload is an object with string group keys and numeric averages as values.
Notes
- Rows that are unchecked are ignored.
- If the contact sensor state is
on, that row is ignored. - If all rows of a group are ignored, that group key is omitted from the payload.
License
MIT