Shelly: use TotalIn for sml totalenergy (#20826)
This commit is contained in:
parent
0260c63cf4
commit
c96df5ac25
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue