EOS_connect icon indicating copy to clipboard operation
EOS_connect copied to clipboard

Zeitumstellungsproblem

Open stefan-juergens opened this issue 1 month ago • 4 comments

Moin, kann es sein das EOS connect + EOS addon in HomeAssistant noch ein Problem bei der Zeitumstellung haben?

Seit heute morgen mag das EOS addon anscheinend nicht mehr die Requests von EOS connect.

Ich benutze folgenden Versionen: EOS addon 1.2.4 EOS connect 0.3.40

EOS connect bekommt immer einen 400 Fehler. Hier ein Auszug vom EOS addon:

2026-10-23 10:46:00.294 | TRACE | akkudoktoreos.utils.datetimeutil:to_duration:278 - Invalid Pendulum time string format '48 hours': Unable to parse string [48 hours] 2026-10-23 10:46:00.295 | DEBUG | akkudoktoreos.devices.devicesabc:end_datetime:64 - Pre: 2026-10-23 10:00:00+02:00..2026-10-25 09:00:00+01:00: DST change: -1.0 2026-10-23 10:46:00.295 | TRACE | akkudoktoreos.utils.datetimeutil:to_duration:278 - Invalid Pendulum time string format '1 hours': Unable to parse string [1 hours] 2026-10-23 10:46:00.296 | DEBUG | akkudoktoreos.devices.devicesabc:end_datetime:71 - Pst: 2026-10-23 10:00:00+02:00..2026-10-25 10:00:00+01:00: DST change: -1.0 2026-10-23 10:46:00.297 | TRACE | akkudoktoreos.utils.datetimeutil:to_duration:278 - Invalid Pendulum time string format '48 hours': Unable to parse string [48 hours] 2026-10-23 10:46:00.298 | DEBUG | akkudoktoreos.devices.devicesabc:end_datetime:64 - Pre: 2026-10-23 10:00:00+02:00..2026-10-25 09:00:00+01:00: DST change: -1.0 2026-10-23 10:46:00.298 | TRACE | akkudoktoreos.utils.datetimeutil:to_duration:278 - Invalid Pendulum time string format '1 hours': Unable to parse string [1 hours] 2026-10-23 10:46:00.299 | DEBUG | akkudoktoreos.devices.devicesabc:end_datetime:71 - Pst: 2026-10-23 10:00:00+02:00..2026-10-25 10:00:00+01:00: DST change: -1.0 2026-10-23 10:46:00.302 | INFO | logging:callHandlers:1737 - 172.30.32.1:33182 - "POST /optimize?start_hour=10 HTTP/1.1" 400

Ist das bekannt? Habe ich wohl etwas falsch eingestellt irgendwo?

Danke und Gruß Stefan

stefan-juergens avatar Oct 23 '26 08:10 stefan-juergens

Die TRACE und DEBUG Nachrichten sind alle ok. "Unable to parse" im TRACE ist kein Fehler sondern schaltet nur auf einen anderen Parser um. EOS hat die Zeitumstellung -1 erkannt. ERROR oder WARNING Nachrichten wären interessant.

b0661 avatar Oct 23 '26 11:10 b0661

Alles klar,

hier der Log von EOS connect: 2026-10-23 14:32:59 INFO [Main] Starting EOS Connect web server... 2026-10-23 14:32:59 INFO [OPT-EOS] OPTIMIZE response retrieved successfully in 0 min 0.09 sec for current run 2026-10-23 14:32:59 ERROR [OPT-EOS] OPTIMIZE Request failed: 400 Client Error: Bad Request for url: http://192.168.178.127:8503/optimize?start_hour=14 2026-10-23 14:32:59 ERROR [OPT-EOS] OPTIMIZE Response status: 400 2026-10-23 14:32:59 DEBUG [OPT-EOS] OPTIMIZE ERROR - response of EOS is: {"detail":"Optimize error: Charge array must have exactly 49 elements.."} 2026-10-23 14:32:59 DEBUG [OPT-EOS] OPTIMIZE ERROR - payload for the request was: {'ems': {'pv_prognose_wh': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 31.9, 262.1, 632.6, 1430.6, 2413.0, 3273.8, 2807.0, 707.7, 574.0, 143.9, 7.7, 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, 54.3, 465.2, 762.6, 1749.4, 1757.8, 1254.7, 945.1, 1648.0, 1416.8, 817.9, 64.3, 0.0, 0.0, 0.0, 0.0, 0.0], 'strompreis_euro_pro_wh': [0.000372363, 0.00035844, 0.000356536, 0.000357964, 0.000352728, 0.00035725, 0.000379622, 0.000401161, 0.000417821, 0.000386524, 0.000350348, 0.000327976, 0.000308103, 0.000301439, 0.000304295, 0.000307389, 0.000315481, 0.000327976, 0.000326072, 0.000324882, 0.000283351, 0.000267405, 0.000275973, 0.000258599, 0.000372363, 0.00035844, 0.000356536, 0.000357964, 0.000352728, 0.00035725, 0.000379622, 0.000401161, 0.000417821, 0.000386524, 0.000350348, 0.000327976, 0.000308103, 0.000301439, 0.000304295, 0.000307389, 0.000315481, 0.000327976, 0.000326072, 0.000324882, 0.000283351, 0.000267405, 0.000275973, 0.000258599], 'einspeiseverguetung_euro_pro_wh': [7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07, 7e-07], 'preis_euro_pro_wh_akku': 2.0943610652423863e-05, 'gesamtlast': [538.694, 511.803, 467.822, 427.447, 918.243, 849.018, 1009.181, 1075.44, 1041.151, 1676.353, 1245.621, 1377.753, 2942.987, 2032.915, 1072.02, 1290.114, 1021.582, 1573.868, 1433.3, 1542.464, 1267.138, 1099.807, 892.463, 322.12, 271.933, 302.086, 241.409, 239.353, 299.247, 988.935, 810.976, 1158.503, 882.922, 1200.099, 895.565, 1339.377, 2083.905, 2421.733, 2108.232, 2572.215, 1597.36, 1244.525, 1949.464, 1323.568, 1081.38, 828.284, 765.388, 708.858]}, 'pv_akku': {'device_id': 'battery1', 'capacity_wh': 20650, 'charging_efficiency': 0.95, 'discharging_efficiency': 0.95, 'max_charge_power_w': 12000, 'initial_soc_percentage': 42, 'min_soc_percentage': 15, 'max_soc_percentage': 90}, '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': [8.8, 8.6, 8.5, 9.1, 9.6, 10.0, 10.3, 10.5, 10.6, 10.5, 10.7, 11.2, 11.8, 13.1, 14.1, 14.0, 13.2, 12.2, 11.9, 11.8, 11.7, 11.1, 11.0, 10.6, 9.7, 8.7, 8.3, 7.9, 7.8, 7.9, 8.3, 9.0, 9.0, 8.8, 8.8, 8.7, 9.1, 9.3, 9.2, 9.9, 10.1, 10.2, 9.3, 8.2, 8.4, 8.9, 9.5, 9.8], 'start_solution': None} 2026-10-23 14:32:59 WARNING [Main] optimize() returned no avg_runtime; keeping previous value: 120 2026-10-23 14:32:59 ERROR [OPTIMIZATION] No control data in optimized response

Also ist der Error wohl: ERROR - response of EOS is: {"detail":"Optimize error: Charge array must have exactly 49 elements..

Aber was läuft wo schief?

Gruß Stefan

stefan-juergens avatar Oct 23 '26 12:10 stefan-juergens

Wegen der Zeitumstellung muss das Array eine Stunde mehr abdecken. Es gibt ja eine Stunde mehr, wenn man von z.B. vom 23.10 10:00 bis 25.10 10:00 optimiert. Startet die Optimierung nach der Zeitumstellung sind es wieder 48 Werte. Ob das so sinnvoll ist muss in EOS geklärt werden. Ist was für Andreas. Vielleicht doppelst du das Issue in EOS.

b0661 avatar Oct 23 '26 18:10 b0661

Danke dir!

Dann weiß ich erst einmal Bescheid.

Ein Issue in EOS habe ich gerade erstellt.

Danke schon mal!

stefan-juergens avatar Oct 23 '26 18:10 stefan-juergens