Three phase power meter

I might be missing something but that template is not that simple.
Shelly uses ade7880 which provides momentary power but also energy usage.
To do this math in template you need to check if sum of power across three phases is negative or positive and the integrate power over time.
The problem is you loose precision of the IC that does high frequency sampling.

1 Like

Somehow I’ve missed that in their doco. Thank you!

In stead of using 1x Shelly 3EM its possible measure 3f + N connection with 3x Shelly EM. If you have no solarpanels its possible to measure the powerusage just by adding the 3 power consumption parameters.

When you have solarpanels we need to use the kwh_returned parameter (available on the Shelly EM) on the fase where your solarpanels are connected.

Total_kwh_Usage = kwh_used_Line1 + kwh_used_Line2 + kwh_user_Line3 +  kwh_PV_generated - kwh_returned_Line_PV_connected

This way the Total_kwh_Usage calculed value takes into account your power comsumption on the fase where your solarpanels are connected.