Optimizer: add static grid export limit (#32541)

This commit is contained in:
andig 2026-08-07 12:58:14 +02:00 • committed by GitHub
parent f2c45b0d84
commit 3093539af5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 373 additions and 44 deletions

View file

@ -151,6 +151,7 @@ func (s *HTTPd) RegisterSiteHandlers(site site.API) {
"batterymodedelete": {"DELETE", "/batterymode", updateBatteryMode(site)},
"prioritysoc": {"POST", "/prioritysoc/{value:[0-9.]+}", floatHandler(site.SetPrioritySoc, site.GetPrioritySoc)},
"residualpower": {"POST", "/residualpower/{value:-?[0-9.]+}", floatHandler(site.SetResidualPower, site.GetResidualPower)},
"gridexportlimit": {"POST", "/gridexportlimit/{value:[0-9.]+}", floatHandler(site.SetGridExportLimit, site.GetGridExportLimit)},
"solaradjusted": {"POST", "/solaradjusted/{value:[01truefalse]+}", boolHandler(pass(site.SetSolarAdjusted), site.GetSolarAdjusted)},
"smartcost": {"POST", "/smartcostlimit/{value:-?[0-9.]+}", updateSmartCostLimit(site, smartCostLimit)},
"smartcostdelete": {"DELETE", "/smartcostlimit", updateSmartCostLimit(site, smartCostLimit)},