Loadpoint: log smart cost active

This commit is contained in:
andig 2025-01-23 12:29:53 +01:00
parent e761b3d553
commit 3de6e9d272

View file

@ -1850,7 +1850,9 @@ func (lp *Loadpoint) Update(sitePower, batteryBoostPower float64, rates api.Rate
case mode == api.ModeMinPV || mode == api.ModePV:
// cheap tariff
rate, _ := rates.Current(time.Now())
if smartCostActive {
lp.log.DEBUG.Printf("smart cost active: %.2f", rate.Price)
err = lp.fastCharging()
lp.resetPhaseTimer()
lp.elapsePVTimer() // let PV mode disable immediately afterwards