2024-12-15 14:40:03 +01:00
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
from pydantic import Field
|
|
|
|
|
|
|
|
from akkudoktoreos.config.configabc import SettingsBaseModel
|
2025-01-12 05:19:37 +01:00
|
|
|
from akkudoktoreos.prediction.elecpriceimport import ElecPriceImportCommonSettings
|
2024-12-15 14:40:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ElecPriceCommonSettings(SettingsBaseModel):
|
|
|
|
elecprice_provider: Optional[str] = Field(
|
2024-12-30 00:50:54 +01:00
|
|
|
default=None, description="Electricity price provider id of provider to be used."
|
|
|
|
)
|
2024-12-30 21:29:50 +01:00
|
|
|
elecprice_charges_kwh: Optional[float] = Field(
|
2024-12-30 00:50:54 +01:00
|
|
|
default=None, ge=0, description="Electricity price charges (€/kWh)."
|
2024-12-15 14:40:03 +01:00
|
|
|
)
|
2025-01-12 05:19:37 +01:00
|
|
|
|
|
|
|
provider_settings: Optional[ElecPriceImportCommonSettings] = None
|