Need private packages and team management tools?Check out npm Teams »

node-red-contrib-sma-webconnect

0.0.1 • Public • Published

node-red-contrib-sma-webconnect

Node-RED node to query the Webconnect interface of SMA inverters.

Compatibility

The implementation has been tested with an ethernet connected Sunny Tripower 10.0 but should work with various similiar models. I'm happy to compile a compatiblity list of successfully tested models here.

Install

npm install git+https://github.com/rlindner/node-red-contrib-sma-webconnect.git

Configure

Configure the IP address, user group and password in the node properties. Uncheck the "Use HTTPS connection" checkbox if your inverter doesn't support HTTPS.

Node properties

Example message payload

{
  "available_sessions": 3,
  "grid_consumption": 0,
  "grid_feedin": 6546,
  "phase1_voltage": 230.12,
  "phase2_voltage": 231.01,
  "phase3_voltage": 230.55,
  "power": 7608
}

Login sessions

In my testings I've ran into problems with the maximum number of sessions the webserver supports (4 in my case). The node creates a session and reuses that until the node is restarted or the session expires. If you're using a reasonable small interval (I'm using 5 seconds) to query the inverter the session normally shouldn't expire. Otherwise a session expires after around 6,5 hours according to my testings. But it may happen that a created session get's lost when the node is stopped ungracefully. Logins to the web interface via a web browser count against the same session limit as well.

Network requirements

This node tries to collect the metrics very agressively, i. e.:

  • short network timeouts of 1500ms
  • timed out requests are retried after 100ms
  • retries are attempted 3 times

Install

npm i node-red-contrib-sma-webconnect

DownloadsWeekly Downloads

9

Version

0.0.1

License

MIT

Unpacked Size

12.3 kB

Total Files

5

Last publish

Collaborators

  • avatar