This is a gateway to connect a SolarEdge inverter to your own energy meter.
SolarEdge can only communicate to a specific set of energy meters, sold by SolarEdge. These meters are expensive and it adds clutter to your electricity cabinet when you already have an energy meter.
This projects aims to reuse your own energy meter. This projects mimics a WattNode meter, which is compatible with SolarEdge and well documented. It retrieves the energy and power values from a Carlo Gavazzi EM24 energy meter, which it then translates to the WattNode definitions.
It not only converts the different energy meter definitions, it also converts the physical layer between Modbus-RTU and Modbus-TCP.
The SolarEdge inverter connects to the LilyGO ETH-POE-PRO through Modbus-RTU over RS-485. The LilyGO-POE-PRO connects to a Carlo Gavazzi EM24 through Modbus-TCP. The gateway translates the registers and values as needed.
- Install Visual Studio Code and Python
- Search for the
PlatformIOplugin in theVisualStudioCodeextension and install it. - After the installation is complete, you need to restart
VisualStudioCode - After restarting
VisualStudioCode, selectFilein the upper left corner ofVisualStudioCode->Open Folder-> select theLilyGO-ModbusGatewaydirectory - Wait for the installation of third-party dependent libraries to complete
- Click the (✔) symbol in the lower left corner to compile
- Connect the board to the computer USB (If there is no onboard downloader, USB2TTL must be connected)
- Click (→) to upload firmware
- Click (plug symbol) to monitor serial output