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):
|
2025-01-15 00:54:45 +01:00
|
|
|
"""Electricity Price Prediction Configuration."""
|
|
|
|
|
2024-12-15 14:40:03 +01:00
|
|
|
elecprice_provider: Optional[str] = Field(
|
2025-01-15 00:54:45 +01:00
|
|
|
default=None,
|
|
|
|
description="Electricity price provider id of provider to be used.",
|
|
|
|
examples=["ElecPriceAkkudoktor"],
|
2024-12-30 00:50:54 +01:00
|
|
|
)
|
2024-12-30 21:29:50 +01:00
|
|
|
elecprice_charges_kwh: Optional[float] = Field(
|
2025-01-15 00:54:45 +01:00
|
|
|
default=None, ge=0, description="Electricity price charges (€/kWh).", examples=[0.21]
|
2024-12-15 14:40:03 +01:00
|
|
|
)
|
2025-01-12 05:19:37 +01:00
|
|
|
|
2025-01-15 00:54:45 +01:00
|
|
|
provider_settings: Optional[ElecPriceImportCommonSettings] = Field(
|
|
|
|
default=None, description="Provider settings", examples=[None]
|
|
|
|
)
|