JSPM

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

1.2.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 15
    • Score
      100M100P100Q47409F
    • License MIT

    Node-RED node for averaging Home Assistant temperature sensors per group, skipping rows when contact is 'on' or unchecked. Includes HA entity autocomplete and robust config persistence.

    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

      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).

      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