Api: add charge meter total readings (#4849)

This commit is contained in:
Paul Frank 2022-10-18 18:00:59 +02:00 • committed by GitHub
parent 7e2d8b709b
commit dcd5281cca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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