Fix charge power estimate in status B not zero when only PV meter installed
This commit is contained in:
parent
97a29d31d7
commit
617b8ea9b5
1 changed files with 3 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ func (lp *LoadPoint) evChargeCurrentHandler(m *wrapper.ChargeMeter) func(para ..
|
|||
if !lp.enabled {
|
||||
current = 0
|
||||
}
|
||||
if lp.status != api.StatusB && lp.status != api.StatusC {
|
||||
if lp.status != api.StatusC {
|
||||
current = 0
|
||||
}
|
||||
m.SetChargeCurrent(current)
|
||||
|
|
@ -289,6 +289,8 @@ func (lp *LoadPoint) updateChargeStatus() api.ChargeStatus {
|
|||
log.INFO.Printf("%s car disconnected", lp.Name)
|
||||
}
|
||||
|
||||
lp.bus.Publish(evChargeCurrent, lp.targetCurrent)
|
||||
|
||||
// start/stop charging cycle
|
||||
lp.chargingCycle(status == api.StatusC)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue