Hello there,im using a Shelly 3em sensor to gather data from my 3 phases,im using mqtt,i created a succesfull template that sum up the 3 phases,here is the code
Also add option to continue increasing energy when 3EM resets to zero. See total_increasing
My suggestion is to record power instead of enegy, then create a Riemann sum integral helper. IMO it’s more reliable than rely on reported energy by 3EM
Sorry i didnt see the answer before,thank you for your info but i still get this error Invalid config for [sensor.template]: [state_class] is an invalid option for [sensor.template]. Check: sensor.template->sensors->total_power_consumption->state_class