JSPM

node-red-contrib-ha-avg-by-group

1.1.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q46271F
    • License MIT

    Node-RED node for averaging Home Assistant temperature sensors per group, skipping rows when contact is 'on' or unchecked.

    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

      1. Copy this folder into your Node-RED environment, e.g.
        ~/.node-red/node_modules/node-red-contrib-ha-avg-by-group/
      2. Restart Node-RED.
      3. Find it in the palette: Function → HA avg (groups)

      Configure

      • Enable Expose to global context in the node-red-contrib-home-assistant-websocket server 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