2025-11-13 22:53:46 +01:00
|
|
|
## Full example Config
|
|
|
|
|
|
|
|
|
|
<!-- pyml disable line-length -->
|
|
|
|
|
```json
|
|
|
|
|
{
|
2025-12-30 22:08:21 +01:00
|
|
|
"adapter": {
|
|
|
|
|
"provider": [
|
|
|
|
|
"HomeAssistant"
|
|
|
|
|
],
|
|
|
|
|
"homeassistant": {
|
|
|
|
|
"config_entity_ids": null,
|
|
|
|
|
"load_emr_entity_ids": null,
|
2025-12-31 12:34:33 +01:00
|
|
|
"grid_export_emr_entity_ids": null,
|
|
|
|
|
"grid_import_emr_entity_ids": null,
|
2025-12-30 22:08:21 +01:00
|
|
|
"pv_production_emr_entity_ids": null,
|
|
|
|
|
"device_measurement_entity_ids": null,
|
|
|
|
|
"device_instruction_entity_ids": null,
|
Add database support for measurements and historic prediction data. (#848)
The database supports backend selection, compression, incremental data load,
automatic data saving to storage, automatic vaccum and compaction.
Make SQLite3 and LMDB database backends available.
Update tests for new interface conventions regarding data sequences,
data containers, data providers. This includes the measurements provider and
the prediction providers.
Add database documentation.
The fix includes several bug fixes that are not directly related to the database
implementation but are necessary to keep EOS running properly and to test and
document the changes.
* fix: config eos test setup
Make the config_eos fixture generate a new instance of the config_eos singleton.
Use correct env names to setup data folder path.
* fix: startup with no config
Make cache and measurements complain about missing data path configuration but
do not bail out.
* fix: soc data preparation and usage for genetic optimization.
Search for soc measurments 48 hours around the optimization start time.
Only clamp soc to maximum in battery device simulation.
* fix: dashboard bailout on zero value solution display
Do not use zero values to calculate the chart values adjustment for display.
* fix: openapi generation script
Make the script also replace data_folder_path and data_output_path to hide
real (test) environment pathes.
* feat: add make repeated task function
make_repeated_task allows to wrap a function to be repeated cyclically.
* chore: removed index based data sequence access
Index based data sequence access does not make sense as the sequence can be backed
by the database. The sequence is now purely time series data.
* chore: refactor eos startup to avoid module import startup
Avoid module import initialisation expecially of the EOS configuration.
Config mutation, singleton initialization, logging setup, argparse parsing,
background task definitions depending on config and environment-dependent behavior
is now done at function startup.
* chore: introduce retention manager
A single long-running background task that owns the scheduling of all periodic
server-maintenance jobs (cache cleanup, DB autosave, …)
* chore: canonicalize timezone name for UTC
Timezone names that are semantically identical to UTC are canonicalized to UTC.
* chore: extend config file migration for default value handling
Extend the config file migration handling values None or nonexisting values
that will invoke a default value generation in the new config file. Also
adapt test to handle this situation.
* chore: extend datetime util test cases
* chore: make version test check for untracked files
Check for files that are not tracked by git. Version calculation will be
wrong if these files will not be commited.
* chore: bump pandas to 3.0.0
Pandas 3.0 now performs inference on the appropriate resolution (a.k.a. unit)
for the output dtype which may become datetime64[us] (before it was ns). Also
numeric dtype detection is now more strict which needs a different detection for
numerics.
* chore: bump pydantic-settings to 2.12.0
pydantic-settings 2.12.0 under pytest creates a different behaviour. The tests
were adapted and a workaround was introduced. Also ConfigEOS was adapted
to allow for fine grain initialization control to be able to switch
off certain settings such as file settings during test.
* chore: remove sci learn kit from dependencies
The sci learn kit is not strictly necessary as long as we have scipy.
* chore: add documentation mode guarding for sphinx autosummary
Sphinx autosummary excecutes functions. Prevent exceptions in case of pure doc
mode.
* chore: adapt docker-build CI workflow to stricter GitHub handling
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2026-02-22 14:12:42 +01:00
|
|
|
"solution_entity_ids": null
|
2025-12-30 22:08:21 +01:00
|
|
|
},
|
|
|
|
|
"nodered": {
|
|
|
|
|
"host": "127.0.0.1",
|
|
|
|
|
"port": 1880
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-11-13 22:53:46 +01:00
|
|
|
"cache": {
|
|
|
|
|
"subpath": "cache",
|
|
|
|
|
"cleanup_interval": 300.0
|
|
|
|
|
},
|
Add database support for measurements and historic prediction data. (#848)
The database supports backend selection, compression, incremental data load,
automatic data saving to storage, automatic vaccum and compaction.
Make SQLite3 and LMDB database backends available.
Update tests for new interface conventions regarding data sequences,
data containers, data providers. This includes the measurements provider and
the prediction providers.
Add database documentation.
The fix includes several bug fixes that are not directly related to the database
implementation but are necessary to keep EOS running properly and to test and
document the changes.
* fix: config eos test setup
Make the config_eos fixture generate a new instance of the config_eos singleton.
Use correct env names to setup data folder path.
* fix: startup with no config
Make cache and measurements complain about missing data path configuration but
do not bail out.
* fix: soc data preparation and usage for genetic optimization.
Search for soc measurments 48 hours around the optimization start time.
Only clamp soc to maximum in battery device simulation.
* fix: dashboard bailout on zero value solution display
Do not use zero values to calculate the chart values adjustment for display.
* fix: openapi generation script
Make the script also replace data_folder_path and data_output_path to hide
real (test) environment pathes.
* feat: add make repeated task function
make_repeated_task allows to wrap a function to be repeated cyclically.
* chore: removed index based data sequence access
Index based data sequence access does not make sense as the sequence can be backed
by the database. The sequence is now purely time series data.
* chore: refactor eos startup to avoid module import startup
Avoid module import initialisation expecially of the EOS configuration.
Config mutation, singleton initialization, logging setup, argparse parsing,
background task definitions depending on config and environment-dependent behavior
is now done at function startup.
* chore: introduce retention manager
A single long-running background task that owns the scheduling of all periodic
server-maintenance jobs (cache cleanup, DB autosave, …)
* chore: canonicalize timezone name for UTC
Timezone names that are semantically identical to UTC are canonicalized to UTC.
* chore: extend config file migration for default value handling
Extend the config file migration handling values None or nonexisting values
that will invoke a default value generation in the new config file. Also
adapt test to handle this situation.
* chore: extend datetime util test cases
* chore: make version test check for untracked files
Check for files that are not tracked by git. Version calculation will be
wrong if these files will not be commited.
* chore: bump pandas to 3.0.0
Pandas 3.0 now performs inference on the appropriate resolution (a.k.a. unit)
for the output dtype which may become datetime64[us] (before it was ns). Also
numeric dtype detection is now more strict which needs a different detection for
numerics.
* chore: bump pydantic-settings to 2.12.0
pydantic-settings 2.12.0 under pytest creates a different behaviour. The tests
were adapted and a workaround was introduced. Also ConfigEOS was adapted
to allow for fine grain initialization control to be able to switch
off certain settings such as file settings during test.
* chore: remove sci learn kit from dependencies
The sci learn kit is not strictly necessary as long as we have scipy.
* chore: add documentation mode guarding for sphinx autosummary
Sphinx autosummary excecutes functions. Prevent exceptions in case of pure doc
mode.
* chore: adapt docker-build CI workflow to stricter GitHub handling
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2026-02-22 14:12:42 +01:00
|
|
|
"database": {
|
|
|
|
|
"provider": "LMDB",
|
|
|
|
|
"compression_level": 0,
|
|
|
|
|
"initial_load_window_h": 48,
|
|
|
|
|
"keep_duration_h": 48,
|
|
|
|
|
"autosave_interval_sec": 5,
|
|
|
|
|
"compaction_interval_sec": 604800,
|
|
|
|
|
"batch_size": 100
|
|
|
|
|
},
|
2025-11-13 22:53:46 +01:00
|
|
|
"devices": {
|
|
|
|
|
"batteries": [
|
|
|
|
|
{
|
|
|
|
|
"device_id": "battery1",
|
|
|
|
|
"capacity_wh": 8000,
|
|
|
|
|
"charging_efficiency": 0.88,
|
|
|
|
|
"discharging_efficiency": 0.88,
|
|
|
|
|
"levelized_cost_of_storage_kwh": 0.0,
|
|
|
|
|
"max_charge_power_w": 5000,
|
|
|
|
|
"min_charge_power_w": 50,
|
2025-12-30 22:08:21 +01:00
|
|
|
"charge_rates": [
|
|
|
|
|
0.0,
|
|
|
|
|
0.1,
|
|
|
|
|
0.2,
|
|
|
|
|
0.3,
|
|
|
|
|
0.4,
|
|
|
|
|
0.5,
|
|
|
|
|
0.6,
|
|
|
|
|
0.7,
|
|
|
|
|
0.8,
|
|
|
|
|
0.9,
|
|
|
|
|
1.0
|
|
|
|
|
],
|
2025-11-13 22:53:46 +01:00
|
|
|
"min_soc_percentage": 0,
|
Add database support for measurements and historic prediction data. (#848)
The database supports backend selection, compression, incremental data load,
automatic data saving to storage, automatic vaccum and compaction.
Make SQLite3 and LMDB database backends available.
Update tests for new interface conventions regarding data sequences,
data containers, data providers. This includes the measurements provider and
the prediction providers.
Add database documentation.
The fix includes several bug fixes that are not directly related to the database
implementation but are necessary to keep EOS running properly and to test and
document the changes.
* fix: config eos test setup
Make the config_eos fixture generate a new instance of the config_eos singleton.
Use correct env names to setup data folder path.
* fix: startup with no config
Make cache and measurements complain about missing data path configuration but
do not bail out.
* fix: soc data preparation and usage for genetic optimization.
Search for soc measurments 48 hours around the optimization start time.
Only clamp soc to maximum in battery device simulation.
* fix: dashboard bailout on zero value solution display
Do not use zero values to calculate the chart values adjustment for display.
* fix: openapi generation script
Make the script also replace data_folder_path and data_output_path to hide
real (test) environment pathes.
* feat: add make repeated task function
make_repeated_task allows to wrap a function to be repeated cyclically.
* chore: removed index based data sequence access
Index based data sequence access does not make sense as the sequence can be backed
by the database. The sequence is now purely time series data.
* chore: refactor eos startup to avoid module import startup
Avoid module import initialisation expecially of the EOS configuration.
Config mutation, singleton initialization, logging setup, argparse parsing,
background task definitions depending on config and environment-dependent behavior
is now done at function startup.
* chore: introduce retention manager
A single long-running background task that owns the scheduling of all periodic
server-maintenance jobs (cache cleanup, DB autosave, …)
* chore: canonicalize timezone name for UTC
Timezone names that are semantically identical to UTC are canonicalized to UTC.
* chore: extend config file migration for default value handling
Extend the config file migration handling values None or nonexisting values
that will invoke a default value generation in the new config file. Also
adapt test to handle this situation.
* chore: extend datetime util test cases
* chore: make version test check for untracked files
Check for files that are not tracked by git. Version calculation will be
wrong if these files will not be commited.
* chore: bump pandas to 3.0.0
Pandas 3.0 now performs inference on the appropriate resolution (a.k.a. unit)
for the output dtype which may become datetime64[us] (before it was ns). Also
numeric dtype detection is now more strict which needs a different detection for
numerics.
* chore: bump pydantic-settings to 2.12.0
pydantic-settings 2.12.0 under pytest creates a different behaviour. The tests
were adapted and a workaround was introduced. Also ConfigEOS was adapted
to allow for fine grain initialization control to be able to switch
off certain settings such as file settings during test.
* chore: remove sci learn kit from dependencies
The sci learn kit is not strictly necessary as long as we have scipy.
* chore: add documentation mode guarding for sphinx autosummary
Sphinx autosummary excecutes functions. Prevent exceptions in case of pure doc
mode.
* chore: adapt docker-build CI workflow to stricter GitHub handling
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2026-02-22 14:12:42 +01:00
|
|
|
"max_soc_percentage": 100
|
2025-11-13 22:53:46 +01:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"max_batteries": 1,
|
|
|
|
|
"electric_vehicles": [
|
|
|
|
|
{
|
|
|
|
|
"device_id": "battery1",
|
|
|
|
|
"capacity_wh": 8000,
|
|
|
|
|
"charging_efficiency": 0.88,
|
|
|
|
|
"discharging_efficiency": 0.88,
|
|
|
|
|
"levelized_cost_of_storage_kwh": 0.0,
|
|
|
|
|
"max_charge_power_w": 5000,
|
|
|
|
|
"min_charge_power_w": 50,
|
2025-12-30 22:08:21 +01:00
|
|
|
"charge_rates": [
|
|
|
|
|
0.0,
|
|
|
|
|
0.1,
|
|
|
|
|
0.2,
|
|
|
|
|
0.3,
|
|
|
|
|
0.4,
|
|
|
|
|
0.5,
|
|
|
|
|
0.6,
|
|
|
|
|
0.7,
|
|
|
|
|
0.8,
|
|
|
|
|
0.9,
|
|
|
|
|
1.0
|
|
|
|
|
],
|
2025-11-13 22:53:46 +01:00
|
|
|
"min_soc_percentage": 0,
|
Add database support for measurements and historic prediction data. (#848)
The database supports backend selection, compression, incremental data load,
automatic data saving to storage, automatic vaccum and compaction.
Make SQLite3 and LMDB database backends available.
Update tests for new interface conventions regarding data sequences,
data containers, data providers. This includes the measurements provider and
the prediction providers.
Add database documentation.
The fix includes several bug fixes that are not directly related to the database
implementation but are necessary to keep EOS running properly and to test and
document the changes.
* fix: config eos test setup
Make the config_eos fixture generate a new instance of the config_eos singleton.
Use correct env names to setup data folder path.
* fix: startup with no config
Make cache and measurements complain about missing data path configuration but
do not bail out.
* fix: soc data preparation and usage for genetic optimization.
Search for soc measurments 48 hours around the optimization start time.
Only clamp soc to maximum in battery device simulation.
* fix: dashboard bailout on zero value solution display
Do not use zero values to calculate the chart values adjustment for display.
* fix: openapi generation script
Make the script also replace data_folder_path and data_output_path to hide
real (test) environment pathes.
* feat: add make repeated task function
make_repeated_task allows to wrap a function to be repeated cyclically.
* chore: removed index based data sequence access
Index based data sequence access does not make sense as the sequence can be backed
by the database. The sequence is now purely time series data.
* chore: refactor eos startup to avoid module import startup
Avoid module import initialisation expecially of the EOS configuration.
Config mutation, singleton initialization, logging setup, argparse parsing,
background task definitions depending on config and environment-dependent behavior
is now done at function startup.
* chore: introduce retention manager
A single long-running background task that owns the scheduling of all periodic
server-maintenance jobs (cache cleanup, DB autosave, …)
* chore: canonicalize timezone name for UTC
Timezone names that are semantically identical to UTC are canonicalized to UTC.
* chore: extend config file migration for default value handling
Extend the config file migration handling values None or nonexisting values
that will invoke a default value generation in the new config file. Also
adapt test to handle this situation.
* chore: extend datetime util test cases
* chore: make version test check for untracked files
Check for files that are not tracked by git. Version calculation will be
wrong if these files will not be commited.
* chore: bump pandas to 3.0.0
Pandas 3.0 now performs inference on the appropriate resolution (a.k.a. unit)
for the output dtype which may become datetime64[us] (before it was ns). Also
numeric dtype detection is now more strict which needs a different detection for
numerics.
* chore: bump pydantic-settings to 2.12.0
pydantic-settings 2.12.0 under pytest creates a different behaviour. The tests
were adapted and a workaround was introduced. Also ConfigEOS was adapted
to allow for fine grain initialization control to be able to switch
off certain settings such as file settings during test.
* chore: remove sci learn kit from dependencies
The sci learn kit is not strictly necessary as long as we have scipy.
* chore: add documentation mode guarding for sphinx autosummary
Sphinx autosummary excecutes functions. Prevent exceptions in case of pure doc
mode.
* chore: adapt docker-build CI workflow to stricter GitHub handling
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2026-02-22 14:12:42 +01:00
|
|
|
"max_soc_percentage": 100
|
2025-11-13 22:53:46 +01:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"max_electric_vehicles": 1,
|
|
|
|
|
"inverters": [],
|
|
|
|
|
"max_inverters": 1,
|
|
|
|
|
"home_appliances": [],
|
|
|
|
|
"max_home_appliances": 1
|
|
|
|
|
},
|
|
|
|
|
"elecprice": {
|
|
|
|
|
"provider": "ElecPriceAkkudoktor",
|
|
|
|
|
"charges_kwh": 0.21,
|
|
|
|
|
"vat_rate": 1.19,
|
2026-03-11 17:18:45 +01:00
|
|
|
"elecpricefixed": {
|
|
|
|
|
"time_windows": {
|
|
|
|
|
"windows": []
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-11-16 13:26:18 +01:00
|
|
|
"elecpriceimport": {
|
|
|
|
|
"import_file_path": null,
|
|
|
|
|
"import_json": null
|
|
|
|
|
},
|
|
|
|
|
"energycharts": {
|
|
|
|
|
"bidding_zone": "DE-LU"
|
2025-11-13 22:53:46 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"ems": {
|
|
|
|
|
"startup_delay": 5.0,
|
|
|
|
|
"interval": 300.0,
|
|
|
|
|
"mode": "OPTIMIZATION"
|
|
|
|
|
},
|
|
|
|
|
"feedintariff": {
|
|
|
|
|
"provider": "FeedInTariffFixed",
|
|
|
|
|
"provider_settings": {
|
|
|
|
|
"FeedInTariffFixed": null,
|
|
|
|
|
"FeedInTariffImport": null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"general": {
|
2026-04-15 08:48:56 +02:00
|
|
|
"config_save_mode": "AUTOMATIC",
|
|
|
|
|
"config_save_interval_sec": 60,
|
2026-03-07 14:46:30 +01:00
|
|
|
"version": "0.0.0",
|
Add database support for measurements and historic prediction data. (#848)
The database supports backend selection, compression, incremental data load,
automatic data saving to storage, automatic vaccum and compaction.
Make SQLite3 and LMDB database backends available.
Update tests for new interface conventions regarding data sequences,
data containers, data providers. This includes the measurements provider and
the prediction providers.
Add database documentation.
The fix includes several bug fixes that are not directly related to the database
implementation but are necessary to keep EOS running properly and to test and
document the changes.
* fix: config eos test setup
Make the config_eos fixture generate a new instance of the config_eos singleton.
Use correct env names to setup data folder path.
* fix: startup with no config
Make cache and measurements complain about missing data path configuration but
do not bail out.
* fix: soc data preparation and usage for genetic optimization.
Search for soc measurments 48 hours around the optimization start time.
Only clamp soc to maximum in battery device simulation.
* fix: dashboard bailout on zero value solution display
Do not use zero values to calculate the chart values adjustment for display.
* fix: openapi generation script
Make the script also replace data_folder_path and data_output_path to hide
real (test) environment pathes.
* feat: add make repeated task function
make_repeated_task allows to wrap a function to be repeated cyclically.
* chore: removed index based data sequence access
Index based data sequence access does not make sense as the sequence can be backed
by the database. The sequence is now purely time series data.
* chore: refactor eos startup to avoid module import startup
Avoid module import initialisation expecially of the EOS configuration.
Config mutation, singleton initialization, logging setup, argparse parsing,
background task definitions depending on config and environment-dependent behavior
is now done at function startup.
* chore: introduce retention manager
A single long-running background task that owns the scheduling of all periodic
server-maintenance jobs (cache cleanup, DB autosave, …)
* chore: canonicalize timezone name for UTC
Timezone names that are semantically identical to UTC are canonicalized to UTC.
* chore: extend config file migration for default value handling
Extend the config file migration handling values None or nonexisting values
that will invoke a default value generation in the new config file. Also
adapt test to handle this situation.
* chore: extend datetime util test cases
* chore: make version test check for untracked files
Check for files that are not tracked by git. Version calculation will be
wrong if these files will not be commited.
* chore: bump pandas to 3.0.0
Pandas 3.0 now performs inference on the appropriate resolution (a.k.a. unit)
for the output dtype which may become datetime64[us] (before it was ns). Also
numeric dtype detection is now more strict which needs a different detection for
numerics.
* chore: bump pydantic-settings to 2.12.0
pydantic-settings 2.12.0 under pytest creates a different behaviour. The tests
were adapted and a workaround was introduced. Also ConfigEOS was adapted
to allow for fine grain initialization control to be able to switch
off certain settings such as file settings during test.
* chore: remove sci learn kit from dependencies
The sci learn kit is not strictly necessary as long as we have scipy.
* chore: add documentation mode guarding for sphinx autosummary
Sphinx autosummary excecutes functions. Prevent exceptions in case of pure doc
mode.
* chore: adapt docker-build CI workflow to stricter GitHub handling
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2026-02-22 14:12:42 +01:00
|
|
|
"data_folder_path": "/home/user/.local/share/net.akkudoktoreos.net",
|
2025-11-13 22:53:46 +01:00
|
|
|
"data_output_subpath": "output",
|
|
|
|
|
"latitude": 52.52,
|
|
|
|
|
"longitude": 13.405
|
|
|
|
|
},
|
|
|
|
|
"load": {
|
|
|
|
|
"provider": "LoadAkkudoktor",
|
2026-02-26 18:31:47 +01:00
|
|
|
"loadakkudoktor": {
|
|
|
|
|
"loadakkudoktor_year_energy_kwh": null
|
|
|
|
|
},
|
|
|
|
|
"loadvrm": {
|
|
|
|
|
"load_vrm_token": "your-token",
|
|
|
|
|
"load_vrm_idsite": 12345
|
|
|
|
|
},
|
|
|
|
|
"loadimport": {
|
|
|
|
|
"import_file_path": null,
|
|
|
|
|
"import_json": null
|
2025-11-13 22:53:46 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"logging": {
|
|
|
|
|
"console_level": "TRACE",
|
|
|
|
|
"file_level": "TRACE"
|
|
|
|
|
},
|
|
|
|
|
"measurement": {
|
Add database support for measurements and historic prediction data. (#848)
The database supports backend selection, compression, incremental data load,
automatic data saving to storage, automatic vaccum and compaction.
Make SQLite3 and LMDB database backends available.
Update tests for new interface conventions regarding data sequences,
data containers, data providers. This includes the measurements provider and
the prediction providers.
Add database documentation.
The fix includes several bug fixes that are not directly related to the database
implementation but are necessary to keep EOS running properly and to test and
document the changes.
* fix: config eos test setup
Make the config_eos fixture generate a new instance of the config_eos singleton.
Use correct env names to setup data folder path.
* fix: startup with no config
Make cache and measurements complain about missing data path configuration but
do not bail out.
* fix: soc data preparation and usage for genetic optimization.
Search for soc measurments 48 hours around the optimization start time.
Only clamp soc to maximum in battery device simulation.
* fix: dashboard bailout on zero value solution display
Do not use zero values to calculate the chart values adjustment for display.
* fix: openapi generation script
Make the script also replace data_folder_path and data_output_path to hide
real (test) environment pathes.
* feat: add make repeated task function
make_repeated_task allows to wrap a function to be repeated cyclically.
* chore: removed index based data sequence access
Index based data sequence access does not make sense as the sequence can be backed
by the database. The sequence is now purely time series data.
* chore: refactor eos startup to avoid module import startup
Avoid module import initialisation expecially of the EOS configuration.
Config mutation, singleton initialization, logging setup, argparse parsing,
background task definitions depending on config and environment-dependent behavior
is now done at function startup.
* chore: introduce retention manager
A single long-running background task that owns the scheduling of all periodic
server-maintenance jobs (cache cleanup, DB autosave, …)
* chore: canonicalize timezone name for UTC
Timezone names that are semantically identical to UTC are canonicalized to UTC.
* chore: extend config file migration for default value handling
Extend the config file migration handling values None or nonexisting values
that will invoke a default value generation in the new config file. Also
adapt test to handle this situation.
* chore: extend datetime util test cases
* chore: make version test check for untracked files
Check for files that are not tracked by git. Version calculation will be
wrong if these files will not be commited.
* chore: bump pandas to 3.0.0
Pandas 3.0 now performs inference on the appropriate resolution (a.k.a. unit)
for the output dtype which may become datetime64[us] (before it was ns). Also
numeric dtype detection is now more strict which needs a different detection for
numerics.
* chore: bump pydantic-settings to 2.12.0
pydantic-settings 2.12.0 under pytest creates a different behaviour. The tests
were adapted and a workaround was introduced. Also ConfigEOS was adapted
to allow for fine grain initialization control to be able to switch
off certain settings such as file settings during test.
* chore: remove sci learn kit from dependencies
The sci learn kit is not strictly necessary as long as we have scipy.
* chore: add documentation mode guarding for sphinx autosummary
Sphinx autosummary excecutes functions. Prevent exceptions in case of pure doc
mode.
* chore: adapt docker-build CI workflow to stricter GitHub handling
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2026-02-22 14:12:42 +01:00
|
|
|
"historic_hours": 17520,
|
2025-11-13 22:53:46 +01:00
|
|
|
"load_emr_keys": [
|
|
|
|
|
"load0_emr"
|
|
|
|
|
],
|
|
|
|
|
"grid_export_emr_keys": [
|
|
|
|
|
"grid_export_emr"
|
|
|
|
|
],
|
|
|
|
|
"grid_import_emr_keys": [
|
|
|
|
|
"grid_import_emr"
|
|
|
|
|
],
|
|
|
|
|
"pv_production_emr_keys": [
|
|
|
|
|
"pv1_emr"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"optimization": {
|
|
|
|
|
"horizon_hours": 24,
|
|
|
|
|
"interval": 3600,
|
|
|
|
|
"algorithm": "GENETIC",
|
|
|
|
|
"genetic": {
|
|
|
|
|
"individuals": 400,
|
|
|
|
|
"generations": 400,
|
|
|
|
|
"seed": null,
|
|
|
|
|
"penalties": {
|
|
|
|
|
"ev_soc_miss": 10
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"prediction": {
|
|
|
|
|
"hours": 48,
|
|
|
|
|
"historic_hours": 48
|
|
|
|
|
},
|
|
|
|
|
"pvforecast": {
|
|
|
|
|
"provider": "PVForecastAkkudoktor",
|
|
|
|
|
"provider_settings": {
|
|
|
|
|
"PVForecastImport": null,
|
feat: add cloud PV forecast providers: pvnode.com, forecast-solar and solcast (#1150)
This PR adds three native PV power forecast providers, giving operators more
cloud forecast sources to choose from via pvforecast.provider, alongside the
existing PVForecastAkkudoktor, PVForecastVrm and PVForecastImport:
PVForecastPVNode — native 15-minute forecasts from the pvnode.com
V2 API. Saved-site mode (GET /v2/forecast/{site_id}) where the operator enters their API key +
site id, or inline mode (POST /v2/forecast/inline) using the configured planes.
PVForecastForecastSolar — the free Forecast.Solar API (no key
required for the public endpoint). Multi-plane systems issue one request per plane and the
instantaneous powers are summed per timestamp.
PVForecastSolcast — the Solcast rooftop-site API (API key + resource id).
Implementation notes
All three populate the existing pvforecast_ac_power (and mirror pvforecast_dc_power)
prediction keys, so they slot into the optimizer unchanged.
Timezone handling: pvnode and Forecast.Solar return site-local wall-clock timestamps with an
IANA timezone field, which are resolved to absolute instants before resampling; Solcast returns
UTC period_end and is normalised to the period start.
Each provider follows the existing provider pattern (provider_id(), _request_forecast() with
@cache_in_file, _update_data()), is registered in pvforecast.py and prediction.py, and is
upstream-neutral.
Validation
27 unit tests (timezone resolution, null/zero handling, kW→W and period-start conversion,
azimuth conversion, multi-plane summation, request URL/auth, HTTP-error handling).
ruff check (F/D/S/bandit) and ruff format clean.
Each provider was additionally validated against its live API with a real plant, confirming
the response shapes (pvnode: 288 native 15-min slots; Forecast.Solar: instantaneous watts;
Solcast: kW estimates with period_end/PT30M).
Documentation
Provider descriptions and configuration examples added to docs/akkudoktoreos/prediction.md.
CHANGELOG.md entry under Unreleased.
Regenerated docs/_generated/configpvforecast.md and configexample.md.
Notes for reviewers
Forecast.Solar's free endpoint is rate-limited (12 req/hour) and Solcast's free tier limits daily
calls; both providers rely on the standard 1-hour cache_in_file TTL to stay within budget.
Authors:
The code is created by Christin. Only minor adaptions by Bobby.
Signed-off-by: Christin <info@bikinibottom.capital>
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
Co-authored-by: Christin <info@bikinibottom.capital>
2026-07-17 16:51:00 +02:00
|
|
|
"PVForecastVrm": null,
|
|
|
|
|
"PVForecastPVNode": null,
|
|
|
|
|
"PVForecastForecastSolar": null,
|
|
|
|
|
"PVForecastSolcast": null
|
2025-11-13 22:53:46 +01:00
|
|
|
},
|
|
|
|
|
"planes": [
|
|
|
|
|
{
|
|
|
|
|
"surface_tilt": 10.0,
|
|
|
|
|
"surface_azimuth": 180.0,
|
|
|
|
|
"userhorizon": [
|
|
|
|
|
10.0,
|
|
|
|
|
20.0,
|
|
|
|
|
30.0
|
|
|
|
|
],
|
|
|
|
|
"peakpower": 5.0,
|
|
|
|
|
"pvtechchoice": "crystSi",
|
|
|
|
|
"mountingplace": "free",
|
|
|
|
|
"loss": 14.0,
|
|
|
|
|
"trackingtype": 0,
|
|
|
|
|
"optimal_surface_tilt": false,
|
|
|
|
|
"optimalangles": false,
|
|
|
|
|
"albedo": null,
|
|
|
|
|
"module_model": null,
|
|
|
|
|
"inverter_model": null,
|
|
|
|
|
"inverter_paco": 6000,
|
|
|
|
|
"modules_per_string": 20,
|
|
|
|
|
"strings_per_inverter": 2
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"surface_tilt": 20.0,
|
|
|
|
|
"surface_azimuth": 90.0,
|
|
|
|
|
"userhorizon": [
|
|
|
|
|
5.0,
|
|
|
|
|
15.0,
|
|
|
|
|
25.0
|
|
|
|
|
],
|
|
|
|
|
"peakpower": 3.5,
|
|
|
|
|
"pvtechchoice": "crystSi",
|
|
|
|
|
"mountingplace": "free",
|
|
|
|
|
"loss": 14.0,
|
|
|
|
|
"trackingtype": 1,
|
|
|
|
|
"optimal_surface_tilt": false,
|
|
|
|
|
"optimalangles": false,
|
|
|
|
|
"albedo": null,
|
|
|
|
|
"module_model": null,
|
|
|
|
|
"inverter_model": null,
|
|
|
|
|
"inverter_paco": 4000,
|
|
|
|
|
"modules_per_string": 20,
|
|
|
|
|
"strings_per_inverter": 2
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"max_planes": 1
|
|
|
|
|
},
|
|
|
|
|
"server": {
|
|
|
|
|
"host": "127.0.0.1",
|
|
|
|
|
"port": 8503,
|
|
|
|
|
"verbose": false,
|
|
|
|
|
"startup_eosdash": true,
|
|
|
|
|
"eosdash_host": "127.0.0.1",
|
2026-02-28 11:31:51 +01:00
|
|
|
"eosdash_port": 8504,
|
2026-03-11 17:18:45 +01:00
|
|
|
"eosdash_supervise_interval_sec": 10,
|
|
|
|
|
"run_as_user": null,
|
|
|
|
|
"reload": true
|
2025-11-13 22:53:46 +01:00
|
|
|
},
|
|
|
|
|
"utils": {},
|
|
|
|
|
"weather": {
|
|
|
|
|
"provider": "WeatherImport",
|
|
|
|
|
"provider_settings": {
|
|
|
|
|
"WeatherImport": null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
<!-- pyml enable line-length -->
|