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-hoymiles-home

v0.1.10

Published

Node-RED nodes for Hoymiles S-Miles Home API – live power data watch

Readme

node-red-contrib-hoymiles-home

Node-RED nodes for the Hoymiles S-Miles Home API — continuously polls live power data and emits a message for every new reading.

Nodes

hoymiles-config (config node)

Manages authentication against the Hoymiles cloud. Enter your S-Miles Home e-mail and password — the node performs the same two-step login as the S-Miles Home app (pre-inspection → Argon2ID or MD5·SHA256 password encoding → token) and shares the session with all connected watch nodes.

hoymiles-watch (input node)

Continuously polls live power data for a station and emits one message per reading.

Configuration:

| Field | Description | |---|---| | Credentials | Select a hoymiles-config node | | Station ID | Numeric station ID (sid) — find it in the S-Miles Home app or via the Hoymiles API | | Interval (s) | Poll interval in seconds. Leave empty to use the dly value from each server response (recommended — mirrors the S-Miles Home app) |

Output msg.payload:

{
  "pv":   210,
  "load": 340,
  "grid": 130,
  "bat":  0
}

| Field | Description | |---|---| | pv | Solar generation (W) | | load | Consumption (W) | | grid | Grid exchange (W) — negative = feed-in | | bat | Battery power (W) — negative = charging |

Additional message properties:

| Property | Value | |---|---| | msg.topic | hoymiles/watch/{sid} | | msg.sid | Station ID |

Status indicators:

| Colour | Text | Meaning | |---|---|---| | Yellow | authenticating… | Login in progress | | Yellow | connecting… | Fetching live URI | | Green | watching sid=… | Polling normally | | Yellow | reconnecting… | Refreshing expired URI | | Red | auth failed | Login failed — check credentials | | Red | connect error | Initial connection failed | | Grey | stopped | Node stopped / redeployed |

Installation

npm install node-red-contrib-hoymiles-home

Or via the Node-RED palette manager: search for hoymiles-home.

Quick start

  1. Add a hoymiles-watch node to your flow
  2. Open it and create a new Hoymiles Credentials config node
  3. Enter your S-Miles Home e-mail and password
  4. Enter your Station ID
  5. Connect a debug node and click Deploy

Local development with Docker

A Docker Compose setup is included for testing nodes without a full Node-RED installation.

# First start — builds the image and initialises the data volume
docker compose up --build

# After changing node code — restart is enough (nodes are bind-mounted)
docker compose restart

# After changing package.json or adding dependencies — rebuild
docker compose up --build

Open http://localhost:1880 — the Hoymiles Test flow is pre-loaded.

Releasing

Versions are published to npm automatically via GitHub Actions when a tag is pushed.

# Stable release
npm version minor   # or patch / major
git push --follow-tags

# Dev release (published with npm tag "dev", not "latest")
npm version prerelease --preid=dev
git push --follow-tags

Install a dev release:

npm install node-red-contrib-hoymiles-home@dev

License

MIT © Robin Lenz