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

homebridge-solaredge-accfactory

v0.0.6

Published

SolarEdge inverter support for Homebridge

Readme

SolarEdge Accfactory

npm

A dynamic Homebridge platform for solar inverters discovered through the SolarEdge Monitoring API.

Features

  • Automatic discovery of sites and inverters available to the configured API key
  • HomeKit outlet state showing whether solar generation is active
  • Solar output as a percentage of site peak power, plus grid export and import indicators
  • Current solar output in watts, inverter AC voltage and current, and optional Eve Energy history
  • Global and per-inverter Eve history settings, plus per-inverter exclusion
  • Rate-aware polling with retry after Monitoring API failures
  • Inverter accessories backed by the shared HomeKitDevice module

SolarEdge setup

Obtain a SolarEdge Monitoring API key with access to your sites. The Homebridge host must be able to reach monitoringapi.solaredge.com over HTTPS. The plugin uses the cloud Monitoring API; it does not connect to each inverter on the local network.

Install the plugin through the Homebridge UI and add the SolarEdgeAccfactory platform. Enter the API key under SolarEdge. The plugin reads each site's inventory and publishes an accessory for every inverter with a serial number, unless that serial is excluded. These accessories are registered under the Homebridge bridge and appear in the Home app after the bridge is paired.

Configuration

{
  "platform": "SolarEdgeAccfactory",
  "name": "SolarEdgeAccfactory",
  "solaredge": {
    "apiKey": "YOUR_API_KEY"
  },
  "options": {
    "eveHistory": true
  },
  "devices": {
    "INVERTER_SERIAL_A": {
      "exclude": true
    },
    "INVERTER_SERIAL_B": {
      "eveHistory": false
    }
  }
}

The devices entries are optional and use uppercase inverter serial numbers from SolarEdge inventory. Per-inverter entries must currently be edited in config.json; the Homebridge UI form exposes the API key and global Eve history option.

Platform options

| Option | Default | Description | | --- | --- | --- | | solaredge.apiKey | Required | Monitoring API key with access to the sites. | | options.eveHistory | true | Record outlet power for Eve Energy history. |

Inverter entries

| Field | Required | Description | | --- | --- | --- | | Serial-number key | Yes | Uppercase inverter serial number used to match a discovered inverter. | | exclude | No | Prevent this inverter from being published. Defaults to false. | | eveHistory | No | Override the platform Eve history setting for this inverter. |

The API key is stored in the Homebridge configuration, so keep config.json and its backups private.

SolarEdge communication

The plugin reads the site list, each site's inverter inventory and current power flow, and inverter technical data through the Monitoring API. A single-site account is polled every ten minutes. For accounts with multiple sites, the interval increases in proportion to the site count so the requests remain within SolarEdge's account limit. Failed authorization is retried with backoff; a failed site request does not stop the remaining sites from updating. An existing accessory can retain its last reported values until a successful poll.

The current power-flow endpoint reports site totals. When a site has multiple inverters, each inverter accessory displays the same site solar output and grid flow. Do not add these readings together as though they were per-inverter production.

The outlet's On and Outlet In Use characteristics indicate active generation. It is read-only and cannot turn the inverter on or off. A hidden battery service uses Battery Level for solar output relative to the site's peak power, Charging State for grid export, and Status Low Battery for grid import. This service does not represent a physical SolarEdge battery. A hidden light sensor carries solar watts in its illuminance characteristic; that value is not a lux measurement. HomeKit requires a positive illuminance value, so zero output appears as 0.0001.

Eve Energy history records outlet power when enabled. Eve Electrical Voltage is the inverter's AC phase voltage, averaged when the inverter reports multiple phases. Eve Electrical Current is the sum of the available AC phase currents. SolarEdge limits API keys and individual sites to 300 calls per day, so the plugin requests technical data for one inverter per site on each poll and rotates through the inverters at multi-inverter sites. Voltage and current can therefore update less often than site power on a multi-inverter site.

The plugin currently publishes inverter accessories only; SolarEdge storage batteries are not separate accessories.

Development

The shared HomeKitDevice and HomeKitHistory modules are Git submodules. Clone with submodules, or initialise them after cloning:

git submodule update --init --recursive
npm install
npm run check

Requires Node.js 22, 24, or 26 and either Homebridge 1.11.4 or newer in the 1.x series, or Homebridge 2.4.0 or newer in the 2.x series.