feat: add bidding zone to energy charts price prediction (#765)

Energy charts supports bidding zones. Allow to specifiy the bidding zone in the configuration.

Extend and simplify ElecPrice configuration structure and setup config migration to automatically
update the configuration file.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
Bobby Noelte
2025-11-16 13:26:18 +01:00
committed by GitHub
parent edff649a5e
commit 4c2997dbd6
9 changed files with 177 additions and 122 deletions

View File

@@ -2469,7 +2469,10 @@
"$ref": "#/components/schemas/ElecPriceCommonSettings-Output",
"default": {
"vat_rate": 1.19,
"provider_settings": {}
"elecpriceimport": {},
"energycharts": {
"bidding_zone": "DE-LU"
}
}
},
"feedintariff": {
@@ -2975,27 +2978,6 @@
"title": "DevicesCommonSettings",
"description": "Base configuration for devices simulation settings."
},
"ElecPriceCommonProviderSettings": {
"properties": {
"ElecPriceImport": {
"anyOf": [
{
"$ref": "#/components/schemas/ElecPriceImportCommonSettings"
},
{
"type": "null"
}
],
"description": "ElecPriceImport settings",
"examples": [
null
]
}
},
"type": "object",
"title": "ElecPriceCommonProviderSettings",
"description": "Electricity Price Prediction Provider Configuration."
},
"ElecPriceCommonSettings-Input": {
"properties": {
"provider": {
@@ -3046,12 +3028,13 @@
1.19
]
},
"provider_settings": {
"$ref": "#/components/schemas/ElecPriceCommonProviderSettings",
"description": "Provider settings",
"examples": [
{}
]
"elecpriceimport": {
"$ref": "#/components/schemas/ElecPriceImportCommonSettings",
"description": "Import provider settings."
},
"energycharts": {
"$ref": "#/components/schemas/ElecPriceEnergyChartsCommonSettings",
"description": "Energy Charts provider settings."
}
},
"type": "object",
@@ -3108,18 +3091,34 @@
1.19
]
},
"provider_settings": {
"$ref": "#/components/schemas/ElecPriceCommonProviderSettings",
"description": "Provider settings",
"examples": [
{}
]
"elecpriceimport": {
"$ref": "#/components/schemas/ElecPriceImportCommonSettings",
"description": "Import provider settings."
},
"energycharts": {
"$ref": "#/components/schemas/ElecPriceEnergyChartsCommonSettings",
"description": "Energy Charts provider settings."
}
},
"type": "object",
"title": "ElecPriceCommonSettings",
"description": "Electricity Price Prediction Configuration."
},
"ElecPriceEnergyChartsCommonSettings": {
"properties": {
"bidding_zone": {
"$ref": "#/components/schemas/EnergyChartsBiddingZones",
"description": "Bidding Zone: 'AT', 'BE', 'CH', 'CZ', 'DE-LU', 'DE-AT-LU', 'DK1', 'DK2', 'FR', 'HU', 'IT-NORTH', 'NL', 'NO2', 'PL', 'SE4' or 'SI'",
"default": "DE-LU",
"examples": [
"AT"
]
}
},
"type": "object",
"title": "ElecPriceEnergyChartsCommonSettings",
"description": "Common settings for Energy Charts electricity price provider."
},
"ElecPriceImportCommonSettings": {
"properties": {
"import_file_path": {
@@ -3375,6 +3374,29 @@
"title": "ElectricVehicleResult",
"description": "Result class containing information related to the electric vehicle's charging and discharging behavior."
},
"EnergyChartsBiddingZones": {
"type": "string",
"enum": [
"AT",
"BE",
"CH",
"CZ",
"DE-LU",
"DE-AT-LU",
"DK1",
"DK2",
"FR",
"HU",
"IT-NORTH",
"NL",
"NO2",
"PL",
"SE4",
"SI"
],
"title": "EnergyChartsBiddingZones",
"description": "Energy Charts Bidding Zones."
},
"EnergyManagementCommonSettings": {
"properties": {
"startup_delay": {