npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@camstack/addon-provider-enpal

v0.1.30

Published

Enpal solar-box device-provider addon for CamStack — PV, battery, grid, house and heat-pump readings from the box's own web-page channel, its local InfluxDB or its device page

Readme

@camstack/addon-provider-enpal

Enpal solar box provider for CamStack: the box is an integration, and it offers three pieces to adopt: the box itself (a Gateway), the System (photovoltaic, battery, grid, house) and the heat pump (both Containers), with history.

What it does

  • Enpal (provider-enpal): add an integration with the box's host. The addon reads the box through its own web-page channel (the one its web UI uses; an embedded Python bridge), or its InfluxDB 2.x, or its local device page, and offers the pieces the box actually reports. Each is adopted only when the operator picks it; adopting a piece adopts its children.
    • Node placement: hub-only.
    • Capabilities: device-provider, device-adoption.

Pieces (the box is always offered; a container only when the box reported at least one of its values; a child only when the box reported its value):

| Piece | Type | Sections | Children | | --- | --- | --- | --- | | Enpal Box | Gateway | Box, EEBUS, Connectivity | state, load and link sensors, all diagnostic; plus the link to the box's device page | | System | Container | Photovoltaic, Battery, Grid, Inverter | an Energy system device carrying PV, battery, grid, house and heat-pump power and energy on one model; the other live sensors (string power, battery temperature, grid phases, inverter states) and diagnostic ones (voltages, currents, limits, ratings). The values the Energy system shows are not also separate sensors | | Heat pump (Enpal) | Container | none | the power, consumption and temperatures Enpal reads, running states and diagnostic ones; offered only when the box reports a heat-pump key other than the total power (which lives on the Energy system) |

  • A diagnostic child is hidden by default (display.hidden); its history is still recorded.
  • Identity facts (model, serial numbers, firmware) are device attributes of the piece (the box's on the Gateway), never sensors.
  • A text value (a state, a mode) is an enum-sensor and keeps the label the box sent; a certificate expiry is a date-time sensor.
  • Texts and attributes come only from the web-page channel; InfluxDB and the device page carry numbers only.
  • Each container declares which child stands for it (primaryChildPreference), and the framework takes the first one that was adopted: System the Energy system; Heat pump hot water, outside temperature. An operator's own pick wins over it.
  • The Energy system is spawned under every System, whatever was adopted with it. Its storage is a field of its model, never the battery capability, so a home storage never raises a low-battery alert. The box reports no day total for the heat pump: that value stays empty. Older Systems are re-stamped with the new preference at start, so the Energy system becomes their primary child unless the operator picked one. The sensors that only repeated an Energy system value (PV, battery, grid, house and heat-pump power, level, energy and day totals) are no longer created; a System that already has them loses them (and their history) after its next two probes, which the box devices run once the box has answered. A box that reports only the heat-pump total power therefore gets no Heat pump container.
  • Not exposed on purpose: AC consumption duplicate, AC maximum, the network-traffic, cellular-guard and predictor internals.

Removing the integration removes its devices. An unreachable box marks its devices offline; it never publishes zeros. A lifetime counter that drops for one poll is held at its previous value.

Integration settings

  • Box host / IP — the box on the LAN. The box does not advertise itself, so the integration is added by hand.
  • Source — auto (the box web channel, then InfluxDB when a token is set, then the device page; the first that answers wins), blazor, influx, or page.
  • InfluxDB access token — issued by Enpal support (ask in the Enpal app chat). Stored in the keychain. Organisation (enpal), bucket (solar) and port (8086) default to the usual values.
  • Poll interval — 30 s by default, 10 s minimum. With the web channel in use (auto or blazor) the effective interval is never below 20 s, the worst-case read time. In auto, a failed web channel is skipped for 10 minutes and the snapshot says why; a node without Python says so too.
  • Invert battery power sign — flip it when charging shows as negative.

Firmware 8.51 and later render the device rows of the device page only through a Blazor Server web socket. The blazor source opens that channel the way the box's own page does (read-only: it only acknowledges renders, it never sends a UI event) and needs no credential. Its protocol modules are copied from the Home Assistant component derolli1976/enpal (MIT, see THIRD_PARTY.md). It needs the platform's embedded Python; without it auto falls back to InfluxDB or the page, which on those boxes hold less. Only numeric sensors are read; wallbox and heat-pump controls are not part of this addon.

Requirements

  • A CamStack hub on the same network as the box.

Package @camstack/addon-provider-enpal on npm.

What it provides

  • Enpal (provider-enpal): Add an Enpal solar box as an integration (its own web-page channel, InfluxDB or the device page) and adopt its equipment: photovoltaic, battery, grid, house and heat pump. Category: providers.
    • Capabilities: device-provider, integration-instances, device-adoption.

Configuration

Edit these from System, Addons, this addon, Settings (a device's own settings are on its device page). A password field is stored in the keychain.

Connection

  • Box: Box host / IP
  • Data source: Source, InfluxDB access token, InfluxDB organisation, InfluxDB bucket, InfluxDB port, Device page port
  • Polling: Poll interval (ms), Invert battery power sign

Requirements

  • Placement: hub-only.
  • Python: Enpal installs python/requirements.txt into its own environment.
  • A CamStack hub. An agent is used only where the placement above allows it.

Documentation

See CHANGELOG.md for what changed in each version.