mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-10-11 11:56:17 +00:00
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:
@@ -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)."
|
||||
)
|
||||
|
Reference in New Issue
Block a user