Fix electricity price prediction. (#295)

The electricity price prediction provided prices in Eurocent/ kWh despite claiming
the price to be in €/ kWh. Also the addition of charges was not possible.

Now prices are provided in €/kWh. Charges can be configured by the `elecprice_charges`
configuration option.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
Bobby Noelte
2024-12-30 00:50:54 +01:00
committed by GitHub
parent 830af85fca
commit 1c75060d8a
3 changed files with 39 additions and 8 deletions

View File

@@ -7,5 +7,8 @@ from akkudoktoreos.config.configabc import SettingsBaseModel
class ElecPriceCommonSettings(SettingsBaseModel):
elecprice_provider: Optional[str] = Field(
default=None, description="Electicity price provider id of provider to be used."
default=None, description="Electricity price provider id of provider to be used."
)
elecprice_charges: Optional[float] = Field(
default=None, ge=0, description="Electricity price charges (€/kWh)."
)