Sunny Home Manager as energy meter
The Sunny Home Manager detects energy flows in both directions and can be used as the following applications:
As a consumption meter
As an energy meter for energy generators through, for example, continuous recording of the energy generated by the PV system
As an energy meter to capture the grid-supplied power and export via bidirectional measurement at the point of interconnection

SMA offers the option to use the protocol interface SEMP at https://www.sma.de/produkte/sma-developer.html.