Api: add charge meter total readings (#4849)
This commit is contained in:
parent
7e2d8b709b
commit
dcd5281cca
1 changed files with 3 additions and 0 deletions
|
|
@ -1506,6 +1506,9 @@ func (lp *LoadPoint) publishChargeProgress() {
|
|||
|
||||
lp.publish("chargedEnergy", lp.chargedEnergy)
|
||||
lp.publish("chargeDuration", lp.chargeDuration)
|
||||
if _, ok := lp.chargeMeter.(api.MeterEnergy); ok {
|
||||
lp.publish("chargeTotalImport", lp.chargeMeterTotal())
|
||||
}
|
||||
}
|
||||
|
||||
// socPollAllowed validates charging state against polling mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue