** THIS NODE IS NO LONGER MAINTAINED **
UPDATE 1 nov 2021: Mind the power station ID!
The Goodwe PV solar panel inverters come with a webportal which show all it's performance. This Node-RED flow outputs a (small) part of the data available from the Goodwe API. It's using the version 2 API.
Outputs from this flow include:
- fysical address of the converter,
- name of the station,
- total power generated and
- power generated today.
Much more data is readily available.
In the fuction nodes the flow needs these inputs:
- The loginname to the portal,
- The corresponding password (both set in the "Get ID token"-function node).
- The power station ID, as found in the URL when logged into the portal.
The power station ID is set in the "Get station output"-function node. To find the ID for your installation, login to the normal SEMS webportal. Once logged in, the last part of the URL in your webbrowser is the ID. Copy this part into the script for the variable "psid".
Among other sources, this helped most: DiedB/Homey-SolarPanels#28 (comment)
The first HTTP API call returns a session login token ID. This token is used in the second call, which returns all data. It seems the word "token" is used differently throughout the API, which can be confusing. The token is session-bound and expires in ? time. Replies from the "Request station" call can be delayed upto 10-ish seconds.
Hi Pianz, if you copy the code from this page to a flow in NodeRED, what goes wrong?
https://flows.nodered.org/flow/dbd6621ce479194571fde919dcb172d1
De code above this page has issues with the "//" which do not copy-paste well to NodeRED. If you use the link, all should be fine (it is in my case anyway...). Goodluck!