From c96df5ac25a4bdf236e78a04f066aa5a542e79f6 Mon Sep 17 00:00:00 2001 From: Markus Thierolf <77847348+thierolm@users.noreply.github.com> Date: Thu, 24 Apr 2025 09:53:17 +0200 Subject: [PATCH] Shelly: use TotalIn for sml totalenergy (#20826) --- meter/tasmota/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meter/tasmota/connection.go b/meter/tasmota/connection.go index 078aaecdd..f94b58d86 100644 --- a/meter/tasmota/connection.go +++ b/meter/tasmota/connection.go @@ -214,7 +214,7 @@ func (c *Connection) CurrentPower() (float64, error) { // TotalEnergy implements the api.MeterEnergy interface func (c *Connection) TotalEnergy() (float64, error) { res, err := c.statusSnsG.Get() - return res.StatusSNS.Energy.Total + res.StatusSNS.SML.TotalOut, err + return res.StatusSNS.Energy.Total + res.StatusSNS.SML.TotalIn, err } // Currents implements the api.PhaseCurrents interface