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 🙏

© 2025 – Pkg Stats / Ryan Hefner

homebridge-solis-cloud-api

v3.4.3

Published

Homebridge plugin for reading data from Solis Cloud API for your inverter device

Readme

homebridge-solis-cloud-api

A Homebridge plugin for Solis Cloud API that exposes key energy metrics from your solar inverter to Apple Home. Monitor PV generation, house load, grid interaction, and battery state directly in HomeKit. It is recommended to create a new room for your "Solar Dashboard", so all the sensors are together in one place and do not clutter up your existing rooms.

⚠️ Important: The Solis API has rate limits. Do not set the apiInterval too low (default 300s). Excessive requests may get your API access temporarily blocked.


Features

This plugin exposes the following metrics as LightSensors (so it is visible in standard Home app):

| Sensor / Characteristic | Description | Unit | |-------------------------|-------------------------------------------|-------| | PV Power | Current PV generation | Watts | | Battery Power | Current battery charge/discharge power | Watts | | Battery % | Current battery charge level | % | | House Load | Current household load | Watts | | Grid Import | Power imported from the grid | Watts | | Grid Export | Power exported to the grid | Watts | | PV Today Energy | PV energy generated today | kWh | | PV Month Energy | PV energy generated this month | kWh | | PV Year Energy | PV energy generated this year | kWh | | PV Total Energy | Total PV energy generated | kWh | | Grid Purchased Today | Grid energy purchased today | kWh | | Grid Sold Today | Grid energy sold today | kWh | | House Load Today | Household energy used today | kWh |

All numeric sensors are read-only and automatically updated by the plugin.


📈 History Support (FakeGato)

This plugin also uses FakeGato to store history for all instantaneous metrics (PV Power, Battery Power, House Load, Grid Import/Export).

If you use the Eve app, you will see detailed historical graphs for these values.


⚠️ Note on HomeKit Compatibility

  • All metrics are exposed via LightSensor for HomeKit automation support.
    • zero values are set to be 0.0001 as homekit must have a value

Installation

Install via npm globally:

cd /var/lib/homebridge
sudo npm install --unsafe-perm homebridge-solis-cloud-api
sudo systemctl restart homebridge

Example Config:

"platforms" : [
    {
        "platform": "SolisCloudAPI",
        "name": "Solis Cloud API",
        "apiKey": "YOUR_API_KEY",
        "apiSecret": "YOUR_API_SECRET",
        "deviceId": "YOUR_DEVICE_ID",
        "baseUrl": "optional url, defaults to https://www.soliscloud.com:13333",
        "apiInterval": 300
    }
]

Key, Secret and Device ID

  • The apiKey and apiSecret values can be obtained by following this guide from Solis.
  • Once you are granted access to the Solis Cloud API, obtain your deviceId by running the solis_cloud_api-get_device_id.sh script with your API credentials. The script will output the device ID as the last echo.