Null values lead to crash
It seems that null values in the history lead to an crash of the optimization run. Are null values filled for example with the last known value?
Lol, I'm having the same problem right now.
i have the same Problem and a other Problem since last night
i have the same Problem and a other Problem since last night
Mine started at about 3am this morning.
i have the same Problem and a other Problem since last night
Mine started at about 3am this morning.
i have the problem since 3 am too
Same problem in 0.1.22, 0.1.23, and 0.2.24.
Same here, could it be related to problems fetching the data from HA:
[LOAD-IF] Skipping invalid sensor data for 'sensor.warpcurrent_watt' at 2025-10-11 08:41:31: state 'unknown' cannot be processed (could not convert string to float: 'unknown'). This may indicate missing or corrupted data in the database. (check: http://XXXXXXX:8123/history?entity_id=sensor.warpcurrent_watt&start_date=2025-10-11T06%3A41%3A31.273278%2B00%3A00&end_date=2025-10-11T10%3A41%3A31.273278%2B00%3A00)
If I copy this URL HA is unable to process this request. Changing the URL to http://XXXXXXX:8123/history?entity_id=sensor.warpcurrent_watt&start_date=2025-10-11T06:41:31.273278&end_date=2025-10-11T10:41:31.273278 gives me results.
Hope this helps
i have the same Problem and a other Problem since last night
Mine started at about 3am this morning.
i have the problem since 3 am too
dito
Me too... 😅... Unfortunately no time for the next few hours to investigate... But will check it asap.
To have much as possible different logs of your findings, maybe you can use the create bug function and press only copy (not create a new one) and put this to your posts (edit your existing not a new post)...
So, we can collect in more detail.
To have much as possible different logs of your findings, maybe you can use the create bug function and press only copy (not create a new one) and put this to your posts (edit your existing not a new post)...
So, we can collect in more detail.
How to do that? Where is this function?
Bug Report
Bug Report
![]()
As I have restarted EOS-connect I can't access this screen anmore. I can only see this screen:
so, first review and yes it is a problem but 2 days earlier with DST/ time change
-
at first: the "problem" with skipping invalid sensor data is an INFO - and will be already covered ... but due to the misleading here - I will catch it earlier
-
all the data from EOS connect are sent correctly to EOS ... But EOS shows the error (in EOS own logfile)
File "/opt/eos/src/akkudoktoreos/devices/battery.py", line 180, in set_charge_per_hour
raise ValueError(f"Charge array must have exactly {self.hours} elements.")
ValueError: Charge array must have exactly 49 elements."
that leads to the point since 3 am in the morning we requesting an optimization for the next 48 hours - but the time change will happen on Sunday at 3am assumption: So, seems to be expecting for this time frame until after the time change 49 hours ...
so a question to all that have this problem today:
**
Do you using HA addon of EOS or an standard image as the EOS instance for EOS connect? What is the setted timezone on the server where EOS is running? **
- means for those that have not the problem the server is not in a timezone with timechange and therefore no problem ...
- untested: set the eos instance server to a timezone without timechange - could be lead to a running environment
nvertheless I will implement the ( d+++n ;-) ) time change catch up to have in this period a 49 values array (if it is the real cause...)
ok, tested,
spontanous small fix for everybody who have this problem ... set server of eos (at my side also the HA) to
and everything runs fine again ...
as already mentioned - problem itself will be fixed soon inner EOS connect to react also on DST/ time change
ok, tested,
spontanous small fix for everybody who have this problem ... set server of eos (at my side also the HA) to
and everything runs fine again ...
as already mentioned - problem itself will be fixed soon inner EOS connect to react also on DST/ time change
how is it possible? my eos run in ha as addon
ok, tested, spontanous small fix for everybody who have this problem ... set server of eos (at my side also the HA) to
and everything runs fine again ... as already mentioned - problem itself will be fixed soon inner EOS connect to react also on DST/ time change
how is it possible? my eos run in ha as addon
setttings -> system -> general
means the whole HA will be set to this ...
Danke hat bei mir auch funktioniert
Yep, it's up and running again—thanks for the quick analysis @ohAnd ! Nice!
So, after some tests with eos ...
Unfortunately it seems there is a bug at EOS.
Means there is a detection of upcoming DST/ time change, so that exoecation for input is (at autumn) for 49 values when configured with 48 ... BUT it seems that is not consistantly propagated in the further functions ... so that then error will be raised by creating the internal battery charge array - that is still further expecting 48 values...
Currently no time for more deep dive on eos code - but from the outside as EOS_connect is a user of EOS I see no possibility to catch that.
In short: above mentioned "small fix" is currently the only fix... until Sunday, 26th October 4 o'clock.
Longer: If you experiences that the optimization fails AND in the next 48 hours there is a DST/ time change AND your server where EOS is running is set to a timezone with DST/ time change -> then, currently, you can only fix it, with setting your server timezone to a non DST/ time changing time zone - e.g. GMT 0 (no daylight saving).
I still notice a similar (or the same? Not sure...) issue right now. As the error look quite similar I'm commenting on this issue. First the Debug-Log:
2025-10-29 07:52:36 INFO [EOS] OPTIMIZE request optimization with: http://10.51.15.101:8503/optimize?start_hour=7 - and with timeout: 180
2025-10-29 07:52:36 INFO [EOS] OPTIMIZE response retrieved successfully in 0 min 0.02 sec for current run
2025-10-29 07:52:36 ERROR [EOS] OPTIMIZE Request failed: 400 Client Error: Bad Request for url: http://10.51.15.101:8503/optimize?start_hour=7
2025-10-29 07:52:36 ERROR [EOS] OPTIMIZE Response status: 400
2025-10-29 07:52:36 DEBUG [EOS] OPTIMIZE ERROR - response of EOS is:
---RESPONSE-------------------------------------------------
{"detail":"Optimize error: 'NoneType' object has no attribute 'individuals'."}
------------------------------------------------------------
2025-10-29 07:52:36 DEBUG [EOS] OPTIMIZE ERROR - payload for the request was:
---REQUEST--------------------------------------------------
{'ems': {'pv_prognose_wh': [0, 0, 0, 0, 0, 0, 0, 14.461866576616421, 267.2485449310099, 867.0728474112371, 1107.4075893484264, 1017.036603571217, 1180.7908113923033, 1097.8266930159841, 464.2285164022285, 213.9346179721963, 66.69079020623752, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27.335267200074625, 688.4663907972929, 1005.4491229338391, 1009.9840471995147, 995.2223270086613, 1083.672233444647, 785.6106765879725, 527.0991216865513, 147.29395574057065, 60.532514366096, 0, 0, 0, 0, 0, 0, 0], 'strompreis_euro_pro_wh': [0.0002446, 0.000239, 0.0002392, 0.0002417, 0.0002398, 0.000254, 0.0002882, 0.0003026, 0.000294, 0.0002768, 0.0002603, 0.0002582, 0.000259, 0.0002664, 0.0002804, 0.0003132, 0.0003249, 0.0003258, 0.0003279, 0.0003098, 0.0002968, 0.0002895, 0.000287, 0.0002784, 0.0002446, 0.000239, 0.0002392, 0.0002417, 0.0002398, 0.000254, 0.0002882, 0.0003026, 0.000294, 0.0002768, 0.0002603, 0.0002582, 0.000259, 0.0002664, 0.0002804, 0.0003132, 0.0003249, 0.0003258, 0.0003279, 0.0003098, 0.0002968, 0.0002895, 0.000287, 0.0002784], 'einspeiseverguetung_euro_pro_wh': [0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011, 0.00011], 'preis_euro_pro_wh_akku': 0.0, 'gesamtlast': [762.8074999999999, 474.3687, 548.56585, 419.08285, 394.9488, 613.5179, 538.26335, 1374.1005, 526.96655, 442.48744999999997, 362.6159, 325.61005, 443.71825, 450.31435, 403.79255, 383.83655, 499.5075, 592.73135, 846.6455000000001, 759.61755, 566.327, 487.34434999999996, 470.8836, 396.1783, 385.9665, 392.92769999999996, 399.74694999999997, 419.00175, 391.90065000000004, 575.4481499999999, 920.91125, 1294.36735, 539.32635, 455.98810000000003, 1036.4865, 671.0427, 418.67460000000005, 320.85425, 785.1011000000001, 613.2978499999999, 450.60654999999997, 529.1623, 443.45714999999996, 1288.45845, 665.3677, 741.77555, 794.6551499999998, 515.5790499999997]}, 'pv_akku': {'device_id': 'battery1', 'capacity_wh': 15000, 'charging_efficiency': 0.85, 'discharging_efficiency': 0.85, 'max_charge_power_w': 2300, 'initial_soc_percentage': 51, 'min_soc_percentage': 30, 'max_soc_percentage': 100}, 'inverter': {'device_id': 'inverter1', 'max_power_wh': 2300, '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': [10.1, 10.1, 10.3, 10.3, 10.2, 10.6, 11, 11.3, 11.7, 12.7, 13.6, 14.1, 14.6, 14.8, 14.4, 14, 13.1, 12.2, 12.1, 12.4, 13.1, 13.2, 13, 12.7, 12.8, 12.1, 11.5, 11.3, 10.9, 10, 9.3, 8.7, 9.2, 10, 10.6, 11.1, 11.8, 11.9, 12.1, 11.9, 11, 9.8, 8.9, 8.4, 8.2, 8.1, 7.9, 0], 'start_solution': None}
------------------------------------------------------------
2025-10-29 07:52:36 ERROR [OPTIMIZATION] Error while updating state: not enough values to unpack (expected 2, got 1)
2025-10-29 07:52:53 DEBUG [BATTERY-IF] successfully fetched SOC = 51.0 %
Is this related to the DST topic? I'm unsure as the DST change is now more than 48h ago and shouldn't interfere anymore with the EOS runs?
My Setup in short words: EOS_Connect (0.2.24) and EOS (main) as docker-container on a different host.
I already tried to apply the workaround about changing timezone on the EOS container but this did not work out (or I did not do it correctly).

and everything runs fine again ...