fix warning residualpower in combination with battery (#9126)

* fix warning residualpower in combination with battery

da auch bei negativen Werten eine Warnung kommt ist der alleinige Hnweis "is missing" missverständlich

* add link to doku

* type

* set ResidualPower to 100 instead of warning

* wip

* wip

* wip

* 100 if missing, warning if negativ

so viel Aufwand, für einen Parameter ;)

Co-authored-by: StefanSchoof <4662023+StefanSchoof@users.noreply.github.com>

* wip

der Batterie Check war doppelt

* nur erweiterte Warnung

---------

Co-authored-by: StefanSchoof <4662023+StefanSchoof@users.noreply.github.com>
This commit is contained in:
VolkerK62 2023-09-18 09:31:39 +02:00 • committed by GitHub
parent 2ae8f72ca2
commit 63e73cdb06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ func NewSiteFromConfig(
}
if len(site.batteryMeters) > 0 && site.ResidualPower <= 0 {
site.log.WARN.Println("battery configured but residualPower is missing (add residualPower: 100 to site)")
site.log.WARN.Println("battery configured but residualPower is missing or <= 0 (add residualPower: 100 to site), see https://https://docs.evcc.io/docs/reference/configuration/site#residualpower")
}
// auxiliary meters