EOS_connect
EOS_connect copied to clipboard
Optimize error: Charge array must have exactly 49 elements..
Hi, hab die aktuelle Dev-Version laufen 0.2.25.145 und bekomme nach einen Systemneustart jetzt diese Fehlermeldung
Verstehe auch gerade nicht warum EOS 49 Werte verlangt, sind ja immer nur 48h prognose und entsprechend die Anzahl der Werte.
2025-10-24 19:28:23 INFO [EOS] OPTIMIZE request optimization with: http://192.168.2.16:8503/optimize?start_hour=19 - and with timeout: 180
2025-10-24 19:28:23 INFO [EOS] OPTIMIZE response retrieved successfully in 0 min 0.01 sec for current run
2025-10-24 19:28:23 ERROR [EOS] OPTIMIZE Request failed: 400 Client Error: Bad Request for url: http://192.168.2.16:8503/optimize?start_hour=19
2025-10-24 19:28:23 ERROR [EOS] OPTIMIZE Response status: 400
2025-10-24 19:28:23 DEBUG [EOS] OPTIMIZE ERROR - response of EOS is:
---RESPONSE-------------------------------------------------
{"detail":"Optimize error: Charge array must have exactly 49 elements.."}
------------------------------------------------------------
2025-10-24 19:28:23 DEBUG [EOS] OPTIMIZE ERROR - payload for the request was:
---REQUEST--------------------------------------------------
{'ems': {'pv_prognose_wh': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 125.625, 565.25, 1462.375, 2077.625, 2278.125, 2935.375, 2399.25, 2110.125, 1366.75, 917.875, 375.625, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'strompreis_euro_pro_wh': [0.0002397, 0.0002343, 0.0002304, 0.0002238, 0.0002252, 0.0002316, 0.0002504, 0.0003, 0.0003236, 0.0003137, 0.000292, 0.0002619, 0.0002241, 0.0002226, 0.0002226, 0.0002248, 0.000267, 0.0003014, 0.0003114, 0.0003114, 0.0002905, 0.000272, 0.000257, 0.0002345, 0.0002268, 0.0002242, 0.0002237, 0.0002226, 0.0002226, 0.0002228, 0.0002232, 0.0002238, 0.0002274, 0.0002316, 0.0002306, 0.0002283, 0.0002299, 0.0002278, 0.0002274, 0.0002273, 0.0002292, 0.0002528, 0.0002884, 0.0002955, 0.0002631, 0.0002394, 0.0002425, 0.0002324], 'einspeiseverguetung_euro_pro_wh': [8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05, 8e-05], 'preis_euro_pro_wh_akku': 0.0, 'gesamtlast': [605.06805, 459.62465, 414.1367, 316.24905, 596.07875, 212.3664, 389.78425, 291.1445, 224.3091, 802.05745, 721.79575, 974.17145, 1596.80695, 388.4483, 387.3732, 544.91065, 381.36265000000003, 760.95785, 661.8105, 415.10769999999997, 558.3911, 244.73225000000002, 837.7879, 309.41505, 636.1536, 729.89465, 409.41675, 749.66065, 476.1197, 516.0486, 752.3007, 264.8793, 3282.8721, 4958.900549999999, 5781.904, 6012.77675, 2648.3013, 605.12445, 1370.80845, 1473.27905, 929.5880999999999, 282.39535, 1113.68715, 343.20475, 817.1327, 541.74855, 1374.89135, 1068.08475]}, 'pv_akku': {'device_id': 'battery1', 'capacity_wh': 10000, 'charging_efficiency': 0.95, 'discharging_efficiency': 0.95, 'max_charge_power_w': 5000, 'initial_soc_percentage': 46, 'min_soc_percentage': 2, 'max_soc_percentage': 100}, 'inverter': {'device_id': 'inverter1', 'max_power_wh': 5000, 'battery_id': 'battery1'}, 'eauto': {'device_id': 'ev1', 'capacity_wh': 27000, 'charging_efficiency': 0.9, 'discharging_efficiency': 0.95, 'max_charge_power_w': 7360, 'initial_soc_percentage': 50, 'min_soc_percentage': 5, 'max_soc_percentage': 100}, 'dishwasher': {'device_id': 'additional_load_1', 'consumption_wh': 1, 'duration_h': 1}, 'temperature_forecast': [11.7, 12.2, 11.9, 11.7, 11.6, 11.1, 10.5, 10.5, 10.4, 10.3, 10.3, 9.6, 9.8, 11.1, 10.9, 10.9, 10.3, 9.6, 9.1, 8.6, 8.5, 8.3, 8.2, 8.1, 8.5, 8.5, 8.2, 8.2, 8.4, 8.3, 8.1, 8.4, 8.4, 9.3, 10.5, 11.7, 12.6, 12.9, 13.1, 12.6, 11.7, 10.9, 10.5, 10.5, 10.1, 10.1, 10.2, 0], 'start_solution': None}
------------------------------------------------------------
2025-10-24 19:28:23 ERROR [OPTIMIZATION] Error while updating state: not enough values to unpack (expected 2, got 1)
hier noch meine EOS config
{
"server": {
"startup_eosdash": true,
"host": "0.0.0.0",
"port": 8503,
"eosdash_host": "0.0.0.0",
"eosdash_port": 8504
},
"prediction": {
"hours_ahead": 48
},
"optimization": {
"hours_ahead": 48
}
}
```
Siehe hier #130