mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-07-24 02:38:11 +00:00
Configuration for some providers was given in the sub-field `provider_settings` combining the settings of several providers. Pydantic does not understand this very well and the configuration became cumbersome, especially in EOSdash. All provider settings from the `provider-settings` sub-field are now lifted to the top level field of the configuration. The changes are automatically migrated in the configuration. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
3.6 KiB
3.6 KiB
Feed In Tariff Prediction Configuration
:::{table} feedintariff :widths: 10 20 10 5 5 30 :align: left
| Name | Environment Variable | Type | Read-Only | Default | Description |
|---|---|---|---|---|---|
| feedintarifffixed | EOS_FEEDINTARIFF__FEEDINTARIFFFIXED |
FeedInTariffFixedCommonSettings |
rw |
required |
Fixed feed in tariff provider settings. |
| feedintariffimport | EOS_FEEDINTARIFF__FEEDINTARIFFIMPORT |
FeedInTariffImportCommonSettings |
rw |
required |
Feed in tarif import provider settings. |
| provider | EOS_FEEDINTARIFF__PROVIDER |
Optional[str] |
rw |
None |
Feed in tariff provider id of provider to be used. |
| providers | list[str] |
ro |
N/A |
Available feed in tariff provider ids. | |
| ::: |
Example Input
{
"feedintariff": {
"provider": "FeedInTariffFixed",
"feedintarifffixed": {
"feed_in_tariff_kwh": null
},
"feedintariffimport": {
"import_file_path": null,
"import_json": null
}
}
}
Example Output
{
"feedintariff": {
"provider": "FeedInTariffFixed",
"feedintarifffixed": {
"feed_in_tariff_kwh": null
},
"feedintariffimport": {
"import_file_path": null,
"import_json": null
},
"providers": [
"FeedInTariffFixed",
"FeedInTariffImport"
]
}
}
Common settings for feed in tariff data import from file or JSON string
:::{table} feedintariff::feedintariffimport :widths: 10 10 5 5 30 :align: left
| Name | Type | Read-Only | Default | Description |
|---|---|---|---|---|
| import_file_path | Union[str, pathlib.Path, NoneType] |
rw |
None |
Path to the file to import feed in tariff data from. |
| import_json | Optional[str] |
rw |
None |
JSON string, dictionary of feed in tariff forecast value lists. |
| ::: |
Example Input/Output
{
"feedintariff": {
"feedintariffimport": {
"import_file_path": null,
"import_json": "{\"fead_in_tariff_wh\": [0.000078, 0.000078, 0.000023]}"
}
}
}
Common settings for elecprice fixed price
:::{table} feedintariff::feedintarifffixed :widths: 10 10 5 5 30 :align: left
| Name | Type | Read-Only | Default | Description |
|---|---|---|---|---|
| feed_in_tariff_kwh | Optional[float] |
rw |
None |
Electricity price feed in tariff [amount/kWh]. |
| ::: |
Example Input/Output
{
"feedintariff": {
"feedintarifffixed": {
"feed_in_tariff_kwh": 0.078
}
}
}