@camstack/addon-provider-enpal

中文文档
0.1.14发布于 2026/11/08MITESM + CJS零依赖近 30 天下载 2528

Enpal solar-box device-provider addon for CamStack — PV, battery, grid, house and heat-pump readings from the box's local InfluxDB (device page as fallback)

原始使用文档
文档目录7 节
  1. What it does
  2. Integration settings
  3. Requirements
  4. What it provides
  5. Configuration
  6. Requirements
  7. Documentation

@camstack/addon-provider-enpal

Enpal solar box provider for CamStack: the box is an integration, and the equipment it reports (photovoltaic, battery, grid, house, heat pump) is adopted as Container devices with history. There is no device for the box itself.

What it does

  • Enpal (provider-enpal): add an integration with the box's host. The addon polls the box's InfluxDB 2.x (or, as fallback, its local device page) and offers one Container per piece of equipment the box actually reports. Adopting a container adopts its children.
    • Node placement: hub-only.
    • Capabilities: device-provider, device-adoption.

Containers and their children (a container is offered only when the box reported at least one of its values; a child only when the box reported its value):

ContainerChildCaps
PhotovoltaicProductionpower-meter (W, lifetime kWh)
Inverter temperaturenumeric-sensor
BatteryBatterybattery (state of charge), power-meter (signed W, V, A)
Energy charged / dischargedmeter (lifetime kWh)
Temperature, Healthnumeric-sensor
GridImport, Exportpower-meter (W, lifetime kWh)
HouseConsumptionpower-meter
Heat pumpConsumptionpower-meter
Hot water temperature, Outside temperaturenumeric-sensor

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 (InfluxDB when a token is set, the device page otherwise or when InfluxDB cannot be read), 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.
  • 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 web socket; on those boxes the page fallback finds nothing and InfluxDB is required.

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 (InfluxDB, device page as fallback) and adopt its equipment: photovoltaic, battery, grid, house and heat pump. Category: providers.
    • Capabilities: device-provider, 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.
  • A CamStack hub. An agent is used only where the placement above allows it.

Documentation

See CHANGELOG.md for what changed in each version.

版本与发布记录

@camstack/addon-provider-enpal 共发布 15 个版本,首次发布于 2026/10/27;过去 12 个月发布了 15 个版本。

版本发布日期距今
0.1.14latest2026/11/08今天
0.1.132026/11/072 天前
0.1.122026/11/072 天前
0.1.112026/11/063 天前
0.1.102026/11/053 天前
0.1.92026/11/054 天前

关于 @camstack/addon-provider-enpal 的常见问题

@camstack/addon-provider-enpal 是什么?

Enpal solar-box device-provider addon for CamStack — PV, battery, grid, house and heat-pump readings from the box's local InfluxDB (device page as fallback)

如何安装 @camstack/addon-provider-enpal?

在项目目录运行 npm install @camstack/addon-provider-enpal,或使用 pnpm add / yarn add / bun add。

@camstack/addon-provider-enpal 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/camstack__addon-provider-enpal 是否存在。

@camstack/addon-provider-enpal 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@camstack/addon-provider-enpal 可以商用吗?

@camstack/addon-provider-enpal 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@camstack/addon-provider-enpal 的下载量有多少?

根据 npm 官方下载统计,@camstack/addon-provider-enpal 在 2026/10/09 – 2026/11/07 这 30 天内被下载 2,528 次,日均约 84 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@camstack/addon-provider-enpal 还在维护吗?

最新版本 0.1.14 发布于 2026/11/08(今天);至今共发布 15 个版本,其中过去 12 个月发布了 15 个;首次发布于 2026/10/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。