ich habe am Wochenende die aktuelle Master-Version installiert und habe ein Problem mit der Octopus Energy-Integration. Ich bin seit 1.5. im Dynamic-Octopus-Tarif mit intelligenter Messeinrichtung. Bei Zielladen wird nicht der günstigste Slot gewählt, sondern der spätest mögliche. Auszug aus dem Debug:
Code: Alles auswählen
2025-05-05 23:00:01,598 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=days, do=inner, args=(), kwargs={})
2025-05-05 23:00:01,689 - {modules.common.component_context:31} - {DEBUG:electricity tariff} - Update Komponente ['Octopus Energy Deutschland']
2025-05-05 23:00:01,693 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=handler10Sec, args=(), kwargs={})
2025-05-05 23:00:01,695 - {root:70} - {INFO:MainThread} - # ***Start***
2025-05-05 23:00:01,702 - {urllib3.connectionpool:973} - {DEBUG:electricity tariff} - Starting new HTTPS connection (1): api.oeg-kraken.energy:443
2025-05-05 23:00:01,706 - {root:71} - {DEBUG:MainThread} - Threads: [<_MainThread(MainThread, started 1992677760)>, <Thread(Thread-1, started daemon 1967744064)>, <Thread(Internal RFID, started 1953100864)>, <Thread(Internal GPIO, started 1876636736)>, <Thread(Subdata, started 1866462272)>, <Thread(Setdata, started 1855976512)>, <Thread(Commands, started 1845490752)>, <Thread(SoC, started 1835004992)>, <Thread(Internal Chargepoint, started 1824519232)>, <Thread(Modbus Control Server, started 1816126528)>, <Thread(ChargepointStateUpdate cp 3, started 1807733824)>, <Thread(asyncio_0, started 1755296832)>, <Thread(electricity tariff, started 1779422272)>]
2025-05-05 23:00:01,773 - {modules.common.component_context:66} - {DEBUG:device0} - Update Komponenten ['SMA Home Manager Zähler']
2025-05-05 23:00:01,776 - {modules.common.component_context:66} - {DEBUG:device1} - Update Komponenten ['Sma Sunny Boy/Tripower Wechselrichter']
2025-05-05 23:00:01,779 - {modules.common.component_context:31} - {DEBUG:set values cp3} - Update Komponente ['Ladepunkt']
2025-05-05 23:00:01,877 - {modules.common.simcount._simcount:42} - {DEBUG:device1} - Previous state: SimCounterState(timestamp=1746478790.5141885, power=0, imported=0.0, exported=17361367.55210877)
2025-05-05 23:00:01,879 - {modules.common.simcount._calculate:11} - {DEBUG:device1} - time passed: 0.00315647, power1: 0, power2: 0
2025-05-05 23:00:01,880 - {modules.common.simcount._calculate:27} - {DEBUG:device1} - power did not change sign. Total energy: 0
2025-05-05 23:00:01,881 - {modules.common.simcount._simcount:65} - {DEBUG:device1} - imported: 0 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1746478801.877472, power=0, imported=0.0, exported=17361367.55210877)
2025-05-05 23:00:01,883 - {modules.devices.sma.sma_sunny_boy.inverter:95} - {DEBUG:device1} - WR 192.168.2.28: InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=17361397, imported=0.0, dc_power=4294967296)
2025-05-05 23:00:01,885 - {modules.common.store._api:26} - {DEBUG:device1} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=17361397, imported=0.0, dc_power=4294967296)
2025-05-05 23:00:02,027 - {urllib3.connectionpool:452} - {DEBUG:electricity tariff} - https://api.oeg-kraken.energy:443 "POST /v1/graphql/ HTTP/1.1" 200 None
2025-05-05 23:00:02,032 - {modules.common.req:53} - {DEBUG:electricity tariff} - Get-Response: {"data":{"obtainKrakenToken":{"token": "***REDACTED***"}}}
2025-05-05 23:00:02,175 - {urllib3.connectionpool:452} - {DEBUG:electricity tariff} - https://api.oeg-kraken.energy:443 "POST /v1/graphql/ HTTP/1.1" 200 None
2025-05-05 23:00:02,194 - {modules.common.req:53} - {DEBUG:electricity tariff} - Get-Response: {"data":{"account":{"properties":[{"id":"1106833","occupancyPeriods":[{"effectiveFrom":"2025-04-01T22:00:00+00:00","effectiveTo":null}]}]}}}
2025-05-05 23:00:02,320 - {urllib3.connectionpool:452} - {DEBUG:electricity tariff} - https://api.oeg-kraken.energy:443 "POST /v1/graphql/ HTTP/1.1" 200 None
2025-05-05 23:00:02,325 - {modules.common.req:53} - {DEBUG:electricity tariff} - Get-Response: {"data":{"account":{"property":{"electricityMalos":[{"agreements":[{"id":***REDACTED***,"unitRateInformation":{"__typename":"TimeOfUseProductUnitRateInformation","rates":[{"latestGrossUnitRateCentsPerKwh":"19.6469","timeslotName":"STANDARD","timeslotActivationRules":[{"activeFromTime":"00:00:00","activeToTime":"00:00:00"}]}]},"validFrom":"2025-04-30T22:00:00+00:00","validTo":null},{"id":1718800,"unitRateInformation":{"__typename":"SimpleProductUnitRateInformation","latestGrossUnitRateCentsPerKwh":"29.2383"},"validFrom":"2025-04-30T22:00:00+00:00","validTo":"2025-04-30T22:00:00+00:00"}]}]}}}}
2025-05-05 23:00:02,331 - {modules.common.component_context:31} - {DEBUG:device0} - Update Komponente ['SMA Home Manager Zähler']
2025-05-05 23:00:02,334 - {modules.common.store._api:26} - {DEBUG:device0} - Raw data CounterState(currents=[0.505, 2.35, 1.592], powers=[27.5, 515.1, 233.3], voltages=[244.988, 244.562, 245.063], power_factors=[0.23, 0.923, 0.664], imported=21174508.7, exported=9470314.700000001, power=775.8, frequency=49.961)
2025-05-05 23:00:02,337 - {modules.common.fault_state:49} - {ERROR:electricity tariff} - Octopus Energy Deutschland: FaultState FaultStateLevel.ERROR, FaultStr <class 'AttributeError'> ("'NoneType' object has no attribute 'replace'",), Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/configurable_tariff.py", line 27, in update
tariff_state = self._component_updater()
File "/var/www/html/openWB/packages/modules/electricity_tariffs/octopusenergy/tariff.py", line 169, in updater
return fetch(config.configuration)
File "/var/www/html/openWB/packages/modules/electricity_tariffs/octopusenergy/tariff.py", line 162, in fetch
prices = build_tariff_state(tariffs)
File "/var/www/html/openWB/packages/modules/electricity_tariffs/octopusenergy/tariff.py", line 151, in build_tariff_state
process_agreement(agreement, hour_time, prices)
File "/var/www/html/openWB/packages/modules/electricity_tariffs/octopusenergy/tariff.py", line 130, in process_agreement
valid_to = parse_datetime(agreement['validTo'])
File "/var/www/html/openWB/packages/modules/electricity_tariffs/octopusenergy/tariff.py", line 110, in parse_datetime
return datetime.fromisoformat(datetime_str.replace('Z', '+00:00'))
AttributeError: 'NoneType' object has no attribute 'replace'
2025-05-05 23:00:02,343 - {modules.devices.sma.sma_shm.device:28} - {DEBUG:device0} - All components updated
2025-05-05 23:00:02,352 - {modules.common.component_context:31} - {DEBUG:component2} - Update Komponente ['Sma Sunny Boy/Tripower Wechselrichter']
2025-05-05 23:00:02,361 - {modules.common.store._api:26} - {DEBUG:component2} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=17361397, imported=0, dc_power=None)
2025-05-05 23:00:02,363 - {modules.common.store._api:31} - {INFO:component2} - Saving InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=17361397, imported=0, dc_power=None)
2025-05-05 23:00:02,364 - {modules.common.component_context:31} - {DEBUG:update values cp3} - Update Komponente ['Ladepunkt']
2025-05-05 23:00:02,501 - {modules.common.component_context:31} - {DEBUG:component0} - Update Komponente ['SMA Home Manager Zähler']
2025-05-05 23:00:02,502 - {modules.common.store._api:31} - {INFO:component0} - Saving CounterState(currents=[0.505, 2.35, 1.592], powers=[27.5, 515.1, 233.3], voltages=[244.988, 244.562, 245.063], power_factors=[0.23, 0.923, 0.664], imported=21174508.7, exported=9470314.700000001, power=775.8, frequency=49.961)
2025-05-05 23:00:02,753 - {control.counter:160} - {INFO:MainThread} - Verbleibende Ströme an Zähler 0: [34.49, 32.65, 33.41]A
2025-05-05 23:00:02,755 - {control.counter:187} - {INFO:MainThread} - Verbleibende Leistung an Zähler 0: 23224.2W
2025-05-05 23:00:02,763 - {control.ev.ev:454} - {DEBUG:MainThread} - RFID 0014091609 wird EV 6 zugeordnet.
2025-05-05 23:00:02,767 - {control.chargepoint.chargepoint:541} - {DEBUG:MainThread} - EV-Phasenzahl beschränkt die nutzbaren Phasen auf 3
2025-05-05 23:00:02,770 - {helpermodules.timecheck:189} - {DEBUG:MainThread} - delta 1:10:26.086957 start_time 2025-05-05 05:49:33.913043 end 2025-05-05 07:00:00 now 2025-05-05 23:00:02.769618
2025-05-05 23:00:02,772 - {helpermodules.timecheck:189} - {DEBUG:MainThread} - delta 1:10:26.086957 start_time 2025-05-06 05:49:33.913043 end 2025-05-06 07:00:00 now 2025-05-05 23:00:02.769618
2025-05-05 23:00:02,776 - {control.ev.charge_template:348} - {DEBUG:MainThread} - Plan-Nr. 1: Differenz zum Start 24571.143425s, Dauer 1.1739130434782612h, Termin heute verpasst: False
2025-05-05 23:00:02,778 - {control.ev.charge_template:414} - {DEBUG:MainThread} - Verwendeter Plan: Zielladen-Plan95
2025-05-05 23:00:02,782 - {control.chargepoint.chargepoint:691} - {INFO:MainThread} - LP 3, EV: i3-Ziel95 (EV-Nr.6): Theoretisch benötigter Strom 6A, Lademodus scheduled_charging, Submodus: Chargemode.PV_CHARGING, Phasen: 3, Priorität: False, max. Ist-Strom: 0.0
2025-05-05 23:00:02,785 - {control.chargepoint.chargepoint:81} - {INFO:MainThread} - LP 3: Laden startet am 06.05 um 5:49 Uhr. Falls vorhanden, wird mit Überschuss geladen.
2025-05-05 23:00:02,787 - {modules.common.simcount._simcount:42} - {DEBUG:MainThread} - Previous state: SimCounterState(timestamp=1746478791.6897209, power=418.8, imported=7317207.503006327, exported=26.025121063868205)
2025-05-05 23:00:02,790 - {modules.common.simcount._calculate:11} - {DEBUG:MainThread} - time passed: 0.00308284, power1: 418.8, power2: 775.8
2025-05-05 23:00:02,791 - {modules.common.simcount._calculate:27} - {DEBUG:MainThread} - power did not change sign. Total energy: 1.84138
2025-05-05 23:00:02,795 - {modules.common.simcount._simcount:65} - {DEBUG:MainThread} - imported: 1.84138 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1746478802.7879288, power=775.8, imported=7317209.344383996, exported=26.025121063868205)
Ich muss dazu sagen, dass mir die Strompreisverläufe im Web-Portal zwar korrekt angezeigt werden, in der iOS-App allerdings nur ein statischer Preis in Höhe des Basispreises. Ich kann also nicht aussschließen, dass es anbieterseitig ein Problem mit dem API gibt. Gibt das Log diesbezüglich etwas her?