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

node-red-contrib-apsystems-easypower

v0.1.0

Published

Node-RED nodes for the APsystems EasyPower (EZ1) cloud API.

Readme

node-red-contrib-apsystems-easypower

Node-RED nodes for the APsystems EasyPower cloud (EZ1 inverters).

Talks to the same encrypted cloud API as the official AP EasyPower mobile app — no local network access to the inverter is required, but a working EasyPower account is.

Inspired by the Home Assistant integration Meyblaubaer/apsystems-easypower-ha.

Nodes

| Node | What it does | |---|---| | apsystems-config | Holds username / password. Logs in on demand and re-auths when the token expires. | | apsystems-inverters | Lists all EZ inverters on the account. Optional fan-out (one msg per inverter). | | apsystems-realtime | Live AC power per inverter (power, power1, power2 in W). | | apsystems-statistic | Energy totals: todayEnergy, monthEnergy, lifetimeEnergy (kWh) + lastPower (W). | | apsystems-status | Communication / running status of the inverter. |

Install

From your Node-RED user directory (usually ~/.node-red):

npm install node-red-contrib-apsystems-easypower

…or, while developing locally:

cd ~/.node-red
npm install /path/to/node-red-contrib-apsystems-easypower

Restart Node-RED. The nodes appear under the APSystems category in the palette.

Quick start

  1. Drag any data node (e.g. apsystems-realtime) onto the flow.
  2. Open it, create a new apsystems-config with your EasyPower credentials.
  3. Trigger the flow with an inject node — msg.payload carries the response.

Typical pattern: poll all inverters

[ inject (every 5 min) ]
        │
        ▼
[ apsystems-inverters (fan-out=on) ]
        │  (one msg per inverter, msg.payload = inverter object)
        ├─────────────► [ apsystems-realtime ]  ──►  [ debug ]
        └─────────────► [ apsystems-statistic ] ──►  [ debug ]

The realtime / statistic nodes pick up msg.payload.inverter_dev_id automatically, so you don't have to wire the device ID yourself.

Don't poll faster than once a minute. The cloud doesn't update faster than that anyway and aggressive polling risks rate-limits or account locks. The Home Assistant integration uses a 5-minute interval; we recommend the same.

Message contract

apsystems-inverters

  • Input: any (used as trigger).
  • Output (default): msg.payload = array of inverters. Also sets msg.systemId and msg.systems.
  • Output (fan-out): one msg per inverter, msg.payload = single inverter object including inverter_dev_id.

apsystems-realtime / -statistic / -status

  • Device ID is taken from (in order): node setting → msg.devIdmsg.inverter_dev_idmsg.payload.inverter_dev_id.
  • Output: msg.payload = response object. msg.devId and msg.offline are set.
  • When the inverter is offline (cloud code 1001), msg.offline=true and msg.payload={} — no error is raised, so a chained statistic node can still report cached lifetime energy if you want it.

Notes & caveats

  • TLS: the EasyPower cloud sometimes presents non-standard certificates, so the config node defaults to rejectUnauthorized=false. Tick Strict TLS if your environment is happy with strict validation.
  • App credentials (API_APP_ID, API_APP_SECRET, RSA public key) are extracted from the EasyPower APK. APsystems may rotate them — if login starts failing across all users, that's the likely cause.
  • Tested with: EZ1-M-EU (2 channels). Other EZ-series inverters should work, since the API surface is the same.

License

MIT — see LICENSE.