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

@@ -2511,7 +2511,20 @@
}
],
"title": "Elecprice Provider",
"description": "Electicity price provider id of provider to be used."
"description": "Electricity price provider id of provider to be used."
},
"elecprice_charges": {
"anyOf": [
{
"type": "number",
"minimum": 0.0
},
{
"type": "null"
}
],
"title": "Elecprice Charges",
"description": "Electricity price charges (\u20ac/kWh)."
},
"prediction_hours": {
"anyOf": [
@@ -5138,7 +5151,20 @@
}
],
"title": "Elecprice Provider",
"description": "Electicity price provider id of provider to be used."
"description": "Electricity price provider id of provider to be used."
},
"elecprice_charges": {
"anyOf": [
{
"type": "number",
"minimum": 0.0
},
{
"type": "null"
}
],
"title": "Elecprice Charges",
"description": "Electricity price charges (\u20ac/kWh)."
},
"prediction_hours": {
"anyOf": [