SunSpec interface
Sunspec is a specification to communicate with your solar power inverter. See specs.
You can use this library to read the data from your inverter supporting modbus tcp (like SolarEdge).
const SunspecReader = require('@svrooij/sunspec').SunspecReader; const reader = new SunspecReader('192.168.x.x', 502);reader.readInverterInfo() // Reads model info (only needed once) .then(() => { return reader.readData() // Read other data }) .then(d => { console.log(d); }) .catch(err => { console.warn(err); })
Tested on
Manufacturer | Model | Tested on | Tested by |
---|---|---|---|
SolarEdge | SE3680 | 2020-05-30 | @svrooij |
Send a PR, if you tested this on your inverter.
Developer stuff
This library is written in TypeScript. You'll need to compile it before you can run.
npm installnpm run compile