Self consumption predictor

* Inverter: Self consumption interpolator for better discharge_hour results
 * Small penalty when EV 100% and charge >0
 * Price Forceast (use mean of last 7 days instead of repeat)
 * Price Prediction as JSON simulation output, config fixed electricty fees configurable + MyPy & Ruff
This commit is contained in:
Andreas
2024-12-19 14:45:20 +01:00
committed by Dominique Lasserre
parent 1c75060d8a
commit 410a23e375
15 changed files with 1243 additions and 820 deletions

View File

@@ -1,16 +1,16 @@
{
"ac_charge": [
0.0,
0.0,
0.875,
0.0,
1.0,
0.0,
0.0,
0.0,
0.375,
0.0,
0.875,
0.0,
0.375,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
@@ -102,21 +102,33 @@
"discharge_allowed": [
1,
0,
0,
1,
0,
0,
0,
1,
1,
0,
1,
0,
0,
1,
0,
0,
1,
0,
0,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
@@ -134,46 +146,34 @@
1,
1,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1
],
"eautocharge_hours_float": [
0.75,
0.75,
0.5,
0.0,
1.0,
0.625,
0.0,
0.875,
0.75,
1.0,
0.0,
0.75,
1.0,
1.0,
1.0,
0.875,
0.375,
0.0,
1.0,
0.75,
0.5,
0.5,
1.0,
0.625,
0.875,
0.0,
0.375,
0.5,
0.75,
0.375,
0.0,
0.5,
0.625,
1.0,
0.625,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
@@ -201,15 +201,15 @@
],
"result": {
"Last_Wh_pro_Stunde": [
1053.07,
6297.07,
8929.91,
11808.56,
11620.03,
14151.67,
7609.82,
9082.22,
6347.78,
1756.12,
5253.5599999999995,
3632.0299999999997,
8907.67,
7731.82,
11704.22,
7658.78,
1129.12,
1178.71,
1050.98,
988.56,
@@ -241,44 +241,44 @@
592.97
],
"EAuto_SoC_pro_Stunde": [
5.0,
18.11,
35.589999999999996,
13.74,
26.85,
33.405,
33.405,
42.144999999999996,
53.06999999999999,
70.55,
77.105,
90.215,
98.955,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475,
81.475
],
"Einnahmen_Euro_pro_Stunde": [
0.0,
@@ -320,17 +320,17 @@
0.0,
0.0
],
"Gesamt_Verluste": 7248.648818181819,
"Gesamtbilanz_Euro": 8.568052366,
"Gesamt_Verluste": 6757.733989740087,
"Gesamtbilanz_Euro": 6.952642478544519,
"Gesamteinnahmen_Euro": 0.0,
"Gesamtkosten_Euro": 8.568052366,
"Gesamtkosten_Euro": 6.952642478544519,
"Home_appliance_wh_per_hour": [
0.0,
0.0,
0.0,
2500.0,
2500.0,
0.0,
2500.0,
2500.0,
0.0,
0.0,
0.0,
@@ -365,18 +365,14 @@
0.0
],
"Kosten_Euro_pro_Stunde": [
0.0,
1.22362812,
1.7445291920000001,
2.2398909259999997,
1.9651220859999998,
1.4948178300000001,
0.0,
1.1236923319999998,
0.0,
0.0,
0.0,
0.0,
0.0,
0.4641768859999999,
0.53097063,
0.0,
1.7000079319999999,
1.0534661399999998,
0.0,
0.0,
0.0,
@@ -387,10 +383,14 @@
0.0,
0.0,
0.0,
0.182970359,
0.0,
0.0,
0.0,
0.0,
0.0326838476973626,
0.007989913613567745,
0.012219458233588555,
0.0,
0.0,
0.0,
@@ -405,18 +405,14 @@
0.0
],
"Netzbezug_Wh_pro_Stunde": [
0.0,
5366.79,
7886.66,
10701.82,
10458.34,
8132.85,
0.0,
5112.339999999999,
0.0,
0.0,
0.0,
0.0,
0.0,
2470.3399999999997,
2888.8500000000004,
0.0,
7734.339999999999,
4640.82,
0.0,
0.0,
0.0,
@@ -427,10 +423,14 @@
0.0,
0.0,
0.0,
556.31,
0.0,
0.0,
0.0,
0.0,
134.50143085334403,
35.04348076126204,
55.24167375040034,
0.0,
0.0,
0.0,
@@ -485,15 +485,15 @@
0.0
],
"Verluste_Pro_Stunde": [
16.744090909090914,
276.0,
414.0,
772.4754545454543,
0.0,
276.0,
646.7386363636365,
552.0,
552.0,
552.0,
492.1022727272725,
414.0,
730.0663636363638,
55.434,
345.0,
101.0335466817773,
23.391818181818195,
99.72409090909093,
133.72909090909081,
@@ -503,21 +503,21 @@
118.37045454545455,
94.68272727272722,
83.01681818181817,
75.86045454545456,
0.0,
66.66681818181814,
69.12409090909085,
109.0704545454546,
109.96227272727276,
47.952272727272714,
15.439199999999985,
53.855999999999995,
159.6443999999999,
21.032399999999996,
538.2984000000001,
441.924,
260.0003999999999,
169.97160000000008,
59.721600000000024,
29.61116851999853,
11.233982308648535,
48.41330768174524,
161.62968357967037,
21.962728535423857,
538.2984000000038,
441.95211196761403,
260.56941082122324,
171.99990368477063,
62.214291413756285,
35.132727272727266,
77.27590909090907,
134.59227272727276,
@@ -525,44 +525,84 @@
80.85954545454547
],
"akku_soc_pro_stunde": [
79.4714617768595,
79.4714617768595,
79.4714617768595,
79.4714617768595,
79.4714617768595,
70.47202134986226,
70.47202134986226,
56.13911845730028,
56.76228512396694,
56.02390702479339,
52.876050619834714,
48.654804063360885,
44.72754855371902,
41.69461983471075,
39.47195282369147,
35.73551170798899,
32.746789256198355,
30.126308884297526,
27.731723829201112,
25.627341942148767,
23.445394628099184,
20.002514118457306,
16.531482782369153,
15.017837809917364,
15.446704476584031,
16.94270447658403,
21.377271143250695,
21.961504476584032,
36.91423780991737,
49.189904476584026,
56.41213780991736,
61.133571143250684,
62.79250447658402,
61.68351687327823,
59.2442520661157,
54.99575860881543,
51.836366391184576,
49.28398174931129
80.0,
80.0,
62.150396005509634,
62.150396005509634,
62.150396005509634,
52.62581783746556,
52.62581783746556,
52.62581783746556,
53.77091326251142,
53.03253516333787,
49.884678758379195,
45.663432201905366,
41.73617669226349,
38.70324797325523,
36.48058096223595,
32.74413984653347,
29.75541739474284,
27.134937022842013,
27.134937022842013,
25.030555135789673,
22.848607821740085,
19.405727312098207,
15.934695976010055,
15.0,
15.312055064129126,
16.07020564583707,
19.578139530578447,
19.728141236897873,
34.68087457022947,
46.94341995234899,
53.90006700591099,
57.67478788705125,
58.17025540478875,
57.06126780148296,
54.622002994320425,
50.373509537020155,
47.214117319389295,
44.661732677516014
],
"Electricity_price": [
0.000228,
0.0002212,
0.0002093,
0.0001879,
0.0001838,
0.0002004,
0.0002198,
0.000227,
0.0002997,
0.0003195,
0.0003081,
0.0002969,
0.0002921,
0.000278,
0.0003384,
0.0003318,
0.0003284,
0.0003283,
0.0003289,
0.0003334,
0.000329,
0.0003302,
0.0003042,
0.000243,
0.000228,
0.0002212,
0.0002093,
0.0001879,
0.0001838,
0.0002004,
0.0002198,
0.000227,
0.0002997,
0.0003195,
0.0003081,
0.0002969,
0.0002921,
0.000278
]
},
"eauto_obj": {
@@ -671,82 +711,76 @@
"capacity_wh": 60000,
"charging_efficiency": 0.95,
"max_charge_power_w": 11040,
"soc_wh": 60000.0,
"soc_wh": 48885.0,
"initial_soc_percentage": 5
},
"start_solution": [
12.0,
7.0,
4.0,
11.0,
15.0,
13.0,
19.0,
9.0,
20.0,
14.0,
6.0,
9.0,
8.0,
19.0,
7.0,
2.0,
2.0,
1.0,
3.0,
8.0,
14.0,
15.0,
5.0,
11.0,
10.0,
1.0,
2.0,
8.0,
1.0,
2.0,
13.0,
14.0,
1.0,
9.0,
7.0,
9.0,
10.0,
12.0,
11.0,
13.0,
11.0,
12.0,
8.0,
13.0,
13.0,
7.0,
7.0,
6.0,
13.0,
7.0,
7.0,
10.0,
10.0,
11.0,
12.0,
9.0,
9.0,
11.0,
13.0,
7.0,
11.0,
9.0,
10.0,
10.0,
11.0,
10.0,
8.0,
7.0,
13.0,
11.0,
8.0,
3.0,
5.0,
5.0,
1.0,
7.0,
2.0,
11.0,
11.0,
14.0,
11.0,
5.0,
10.0,
9.0,
13.0,
10.0,
9.0,
8.0,
4.0,
4.0,
2.0,
0.0,
6.0,
3.0,
0.0,
5.0,
4.0,
6.0,
0.0,
4.0,
6.0,
6.0,
6.0,
1.0,
2.0,
4.0,
1.0,
0.0,
2.0,
2.0,
6.0,
3.0,
5.0,
3.0,
6.0,
3.0,
0.0,
0.0,
0.0,
@@ -771,7 +805,13 @@
0.0,
0.0,
0.0,
14.0
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
13.0
],
"washingstart": 14
"washingstart": 13
}