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-cstech-box

v1.1.6

Published

Node-RED nodes for CSTech Box (cstechbox.com): read values from inverters, air conditioners, relays and hubs connected to your CSTech Box, switch devices and run scenes over the local API.

Readme

node-red-contrib-cstech-box

Node-RED nodes for CSTech Box. Enter the address and the API key once; the nodes then list the devices on your CSTech Box, grouped by integration, with their current values. Tick the values you need, the same way the Victron palette works.

Română mai jos.

About CSTech Box

CSTech Box is a local controller for solar and energy automation. It connects inverters (Victron, Fronius, Huawei, Solis, Sungrow, GoodWe, Deye), EV chargers, air conditioners and heat pumps (Daikin, Gree, LG, Mitsubishi, Bosch…), smart relays and plugs (Shelly, Tuya) and home hubs (Homey, Yubii / Nice, Home Assistant) in one place. It runs scenes and schedules on its own, in your network, with an optional cloud dashboard.

Install

  • Palette Manager: Menu › Manage palette › Install, search for node-red-contrib-cstech-box. Before it is published on npm, use Upload and pick the .tgz file.
  • Command line, in your Node-RED folder (usually ~/.node-red): npm install node-red-contrib-cstech-box

Requires Node-RED 3.0 or newer and CSTech Box firmware V4.300012 or newer.

Setup

  1. In CSTech Box, install the Node-RED plugin from Integrations (firmware V4.300021+), open it and, in Settings (gear), create an API key for local integrations. There you also find the Box IP address with a copy button. On older firmware: Settings › Account & plan › Security.
  2. In Node-RED, drag any node from the CSTech Box category, then add a CSTech Box connection with the address (e.g. 192.168.1.50) and the API key. Press Test connection.
  3. Pick the device and tick the values.

Nodes

| Node | What it does | |---|---| | Victron, Fronius, Huawei, Solis, Sungrow, GoodWe, Deye, Daikin, Gree, LG ThinQ, Shelly, Tuya… | One node per integration. Choose the device, tick the values. | | Variable | Any variable from the CSTech Box, not tied to a device. | | Command | Turns a device on, off, or toggles it (msg.payload = true / false / "toggle"). | | Scene | Runs, activates or deactivates a CSTech Box scene (activate / deactivate: firmware V4.300017+). | | Send to Box | Sends values from Node-RED to CSTech Box as a virtual device (msg.topic = name, msg.payload = value, or an object). They appear in Variables, cards and scenes. Firmware V4.300019+; Standard 3 devices, Premium 20. |

Output of the reading nodes

  • One message per value: msg.topic = Solis/batt_soc, msg.payload = 76.
  • One message with all values: msg.payload = { "pv_power": 5120, "batt_soc": 76 }.
  • msg.cstech holds the device and variable details (id, unit, role).
  • Only when it changes (default) sends a value only when it changed.

Security

  • The key is sent only in the Authorization: Bearer … header, never in the address.
  • It is stored with the Node-RED credentials and is not exported with your flows.
  • The editor never receives the saved key. A saved key is used only for the saved address; if you change the address, enter the key again.
  • All reading nodes share one request per interval (minimum 5 s), so the CSTech Box is not overloaded.

Română

Noduri Node-RED pentru CSTech Box. Scrii o singură dată adresa și cheia API; nodurile arată apoi dispozitivele din CSTech Box, grupate pe integrări, cu valorile lor curente. Bifezi valorile de care ai nevoie, la fel ca la paleta Victron.

Despre CSTech Box

CSTech Box este un controler local pentru automatizarea energiei și a sistemelor solare. Conectează într-un singur loc invertoare (Victron, Fronius, Huawei, Solis, Sungrow, GoodWe, Deye), stații de încărcare, aere condiționate și pompe de căldură (Daikin, Gree, LG, Mitsubishi, Bosch…), relee și prize inteligente (Shelly, Tuya) și huburi (Homey, Yubii / Nice, Home Assistant). Rulează singur scene și programări, în rețeaua ta, cu panou în cloud opțional.

Instalare

  • Palette Manager: Meniu › Manage palette › Install, cauți node-red-contrib-cstech-box. Până la publicarea pe npm, folosești Upload și alegi fișierul .tgz.
  • Linie de comandă, în folderul Node-RED (de obicei ~/.node-red): npm install node-red-contrib-cstech-box

Necesită Node-RED 3.0 sau mai nou și firmware CSTech Box V4.300012 sau mai nou.

Configurare

  1. În CSTech Box, instalezi pluginul Node-RED din Integrări (firmware V4.300021+), îl deschizi și, în Setări (rotița), creezi o cheie API pentru integrări locale. Tot acolo găsești adresa IP a Box-ului, cu buton de copiere. Pe firmware mai vechi: Setări › Cont și plan › Securitate.
  2. În Node-RED, tragi orice nod din categoria CSTech Box și adaugi o conexiune CSTech Box cu adresa (de exemplu 192.168.1.50) și cheia API. Apeși Test conexiune.
  3. Alegi dispozitivul și bifezi valorile.

Noduri

| Nod | Ce face | |---|---| | Victron, Fronius, Huawei, Solis, Sungrow, GoodWe, Deye, Daikin, Gree, LG ThinQ, Shelly, Tuya… | Câte un nod pe integrare. Alegi dispozitivul, bifezi valorile. | | Variabilă | Orice variabilă din CSTech Box, fără legătură cu un dispozitiv. | | Comandă | Pornește, oprește sau comută un dispozitiv (msg.payload = true / false / "toggle"). | | Scenă | Rulează, activează sau dezactivează o scenă din CSTech Box (activare / dezactivare: firmware V4.300017+). | | Trimite în Box | Trimite valori din Node-RED în CSTech Box, ca dispozitiv virtual (msg.topic = nume, msg.payload = valoare, sau un obiect). Apar în Variabile, carduri și scene. Firmware V4.300019+; Standard 3 dispozitive, Premium 20. |

Ieșirea nodurilor de citire

  • Un mesaj pe valoare: msg.topic = Solis/batt_soc, msg.payload = 76.
  • Un mesaj cu toate valorile: msg.payload = { "pv_power": 5120, "batt_soc": 76 }.
  • msg.cstech conține detaliile dispozitivului și ale variabilei (id, unitate, rol).
  • Doar la schimbare (implicit) trimite o valoare doar când s-a schimbat.

Securitate

  • Cheia se trimite doar în antetul Authorization: Bearer …, niciodată în adresă.
  • Se păstrează în credențialele Node-RED și nu se exportă cu fluxurile.
  • Editorul nu primește niciodată cheia salvată. Cheia salvată se folosește doar pentru adresa salvată; dacă schimbi adresa, scrii din nou cheia.
  • Toate nodurile de citire folosesc o singură cerere la fiecare interval (minim 5 s), ca să nu încarce CSTech Box.

License

MIT