Optimize states (#256)

* optimization states for AC, DC and IDLE now similar probab. Also AC states taken from config. Maybe a single config option for AC and E-Auto States is sensefull.
 * Ruff
 * test_class_optimize: Update testdata
 * Write pdf and json to test/testdata/new.... so it can be analyzed
   manually or just copied as new expected result.
 * workflow: Upload pytest optimization result artifacts (pdf, json)

---------

Co-authored-by: Andreas <drbacke@gmx.de>
This commit is contained in:
Dominique Lasserre
2024-12-16 13:37:16 +01:00
committed by GitHub
parent a5e637ab4c
commit 79ecf71353
8 changed files with 842 additions and 871 deletions

View File

@@ -307,7 +307,9 @@
}
},
"type": "object",
"required": ["kapazitaet_wh"],
"required": [
"kapazitaet_wh"
],
"title": "EAutoParameters"
},
"EAutoResult": {
@@ -453,7 +455,10 @@
}
},
"type": "object",
"required": ["temperature", "pvpower"],
"required": [
"temperature",
"pvpower"
],
"title": "ForecastResponse"
},
"GesamtlastRequest": {
@@ -475,7 +480,11 @@
}
},
"type": "object",
"required": ["year_energy", "measured_data", "hours"],
"required": [
"year_energy",
"measured_data",
"hours"
],
"title": "GesamtlastRequest"
},
"HTTPValidationError": {
@@ -507,7 +516,10 @@
}
},
"type": "object",
"required": ["consumption_wh", "duration_h"],
"required": [
"consumption_wh",
"duration_h"
],
"title": "HomeApplianceParameters"
},
"OptimizationParameters": {
@@ -576,7 +588,11 @@
}
},
"type": "object",
"required": ["ems", "pv_akku", "eauto"],
"required": [
"ems",
"pv_akku",
"eauto"
],
"title": "OptimizationParameters"
},
"OptimizeResponse": {
@@ -671,7 +687,7 @@
"eauto_obj"
],
"title": "OptimizeResponse",
"description": "**Note**: The first value of \"Last_Wh_pro_Stunde\", \"Netzeinspeisung_Wh_pro_Stunde\" and \"Netzbezug_Wh_pro_Stunde\", will be set to null in the JSON output and represented as NaN or None in the corresponding classes' data returns. This approach is adopted to ensure that the current hour's processing remains unchanged."
"description": "**Note**: The first value of \"Last_Wh_per_hour\", \"Netzeinspeisung_Wh_per_hour\", and \"Netzbezug_Wh_per_hour\", will be set to null in the JSON output and represented as NaN or None in the corresponding classes' data returns. This approach is adopted to ensure that the current hour's processing remains unchanged."
},
"PVAkkuParameters": {
"properties": {
@@ -735,7 +751,9 @@
}
},
"type": "object",
"required": ["kapazitaet_wh"],
"required": [
"kapazitaet_wh"
],
"title": "PVAkkuParameters"
},
"SimulationResult": {
@@ -941,7 +959,11 @@
}
},
"type": "object",
"required": ["loc", "msg", "type"],
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
},
"WechselrichterParameters": {
@@ -958,4 +980,4 @@
}
}
}
}
}