Ok, das hatte ich mir schon gedacht. Die http-Abfragen sind aber da, und zwar habe ich gerade festgestellt, dass die sogar dann erfolgen, wenn ein anderes Fahrzeug lädt.
Vielleicht kurz zu meinem Setup: Ich habe in der openwb drei Fahrzeuge: Das Standard-Fahrzeug ohne SoC-Modul, den Corsa-e mit psacc-Modul und den IONIQ5 mit Kia/Hyundai-Modul. Im psacc-Modul habe ich als Zeitintervall 2 Minuten während der Ladung und 720 Minuten ohne Ladung eingestellt.
Jetzt aktuell lädt zwar der Corsa, es ist aber das Standard-Fahrzeug in der openwb ausgewählt (meine Frau hat vergessen, beim Einstöpseln den Corsa auszuwählen). Trotzdem sehe ich im Log des PSA Car Controllers alle 2 Minuten SoC-Abfragen, und auch im SoC-Log der openwb steht:
Code: Alles auswählen
2025-01-30 11:28:25,287 - {modules.common.configurable_vehicle:56} - {DEBUG:fetch soc_ev3} - Vehicle Instance <class 'modules.vehicles.psacc.config.PSACCVehicleSoc'>
2025-01-30 11:28:25,293 - {modules.common.configurable_vehicle:57} - {DEBUG:fetch soc_ev3} - Calculated SoC-State CalculatedSocState(imported_start=None, manual_soc=None, soc_start=47.0)
2025-01-30 11:28:25,296 - {modules.common.configurable_vehicle:58} - {DEBUG:fetch soc_ev3} - Vehicle Update Data VehicleUpdateData(plug_state=False, charge_state=False, imported=None, battery_capacity=42000, efficiency=90, soc_from_cp=None, timestamp_soc_from_cp=None, soc_timestamp=1737109851.754224)
2025-01-30 11:28:25,299 - {modules.common.configurable_vehicle:59} - {DEBUG:fetch soc_ev3} - General Config GeneralVehicleConfig(use_soc_from_cp=False, request_interval_charging=120, request_interval_not_charging=43200, request_only_plugged=False)
2025-01-30 11:28:25,302 - {modules.common.component_context:26} - {DEBUG:fetch soc_ev3} - Update Komponente ['PSA Car Controller']
2025-01-30 11:28:25,313 - {urllib3.connectionpool:227} - {DEBUG:fetch soc_ev3} - Starting new HTTP connection (1): pitahaya.fritz.box:5000
2025-01-30 11:28:25,313 - {urllib3.connectionpool:227} - {DEBUG:fetch soc_ev3} - Starting new HTTP connection (1): pitahaya.fritz.box:5000
2025-01-30 11:28:25,655 - {urllib3.connectionpool:452} - {DEBUG:fetch soc_ev3} - http://pitahaya.fritz.box:5000 "GET /get_vehicleinfo/VXKUH... HTTP/1.1" 200 2012
2025-01-30 11:28:25,655 - {urllib3.connectionpool:452} - {DEBUG:fetch soc_ev3} - http://pitahaya.fritz.box:5000 "GET /get_vehicleinfo/VXKUH... HTTP/1.1" 200 2012
2025-01-30 11:28:25,663 - {modules.common.req:32} - {DEBUG:fetch soc_ev3} - Get-Response: {"embedded": null, "links": {"_self": {"deprecation": null, "href": "https://api.groupe-psa.com/connectedcar/v4/user/vehicles/.../status?profile=endUser", "hreflang": null, "name": null, "profile": null, "templated": null, "title": null, "type": null}, "vehicle": {"deprecation": null, "href": "https://api.groupe-psa.com/connectedcar/v4/user/vehicles/...", "hreflang": null, "name": null, "profile": null, "templated": null, "title": null, "type": null}}, "battery": {"current": null, "voltage": 82.5}, "doors_state": null, "energy": [{"updated_at": "2025-01-30 10:19:26+00:00", "autonomy": 206.0, "battery": null, "charging": {"charging_mode": "Slow", "charging_rate": 56, "next_delayed_time": "PT0S", "plugged": true, "remaining_time": "PT0S", "status": "InProgress"}, "consumption": null, "level": 75.0, "residual": null, "type": "Electric"}], "environment": {"created_at": null, "air": {"temp": 6.5}, "luminosity": {"day": true}}, "ignition": {"type": "Stop"}, "kinetic": {"acceleration": null, "moving": false, "pace": null, "speed": null}, "last_position": {"type": "Feature", "geometry": {"coordinates": [8.55609, 51.73253, 91.0], "type": "Point"}, "properties": {"heading": 69.0, "signal_quality": 9.0, "type": "Acquire", "updated_at": "2025-01-30 08:26:50+00:00"}}, "preconditionning": {"air_conditioning": {"failure_cause": null, "status": "Disabled", "updated_at": "2025-01-30 10:19:23+00:00", "created_at": "2025-01-30 10:19:23+00:00"}}, "privacy": {"state": "None"}, "safety": null, "service": {"type": "Electric", "updated_at": null}, "timed_odometer": {"updated_at": "2025-01-30 10:19:23+00:00", "mileage": 47979.5}}
2025-01-30 11:28:25,681 - {modules.vehicles.json.soc:35} - {DEBUG:fetch soc_ev3} - parse_data: data='{'embedded': None, 'links': {'_self': {'deprecation': None, 'href': 'https://api.groupe-psa.com/connectedcar/v4/user/vehicles/.../status?profile=endUser', 'hreflang': None, 'name': None, 'profile': None, 'templated': None, 'title': None, 'type': None}, 'vehicle': {'deprecation': None, 'href': 'https://api.groupe-psa.com/connectedcar/v4/user/vehicles/...', 'hreflang': None, 'name': None, 'profile': None, 'templated': None, 'title': None, 'type': None}}, 'battery': {'current': None, 'voltage': 82.5}, 'doors_state': None, 'energy': [{'updated_at': '2025-01-30 10:19:26+00:00', 'autonomy': 206.0, 'battery': None, 'charging': {'charging_mode': 'Slow', 'charging_rate': 56, 'next_delayed_time': 'PT0S', 'plugged': True, 'remaining_time': 'PT0S', 'status': 'InProgress'}, 'consumption': None, 'level': 75.0, 'residual': None, 'type': 'Electric'}], 'environment': {'created_at': None, 'air': {'temp': 6.5}, 'luminosity': {'day': True}}, 'ignition': {'type': 'Stop'}, 'kinetic': {'acceleration': None, 'moving': False, 'pace': None, 'speed': None}, 'last_position': {'type': 'Feature', 'geometry': {'coordinates': [8.55609, 51.73253, 91.0], 'type': 'Point'}, 'properties': {'heading': 69.0, 'signal_quality': 9.0, 'type': 'Acquire', 'updated_at': '2025-01-30 08:26:50+00:00'}}, 'preconditionning': {'air_conditioning': {'failure_cause': None, 'status': 'Disabled', 'updated_at': '2025-01-30 10:19:23+00:00', 'created_at': '2025-01-30 10:19:23+00:00'}}, 'privacy': {'state': 'None'}, 'safety': None, 'service': {'type': 'Electric', 'updated_at': None}, 'timed_odometer': {'updated_at': '2025-01-30 10:19:23+00:00', 'mileage': 47979.5}}' pattern='.energy[0].level'
2025-01-30 11:28:26,076 - {modules.vehicles.json.soc:44} - {DEBUG:fetch soc_ev3} - result='75'
2025-01-30 11:28:26,084 - {modules.vehicles.json.soc:35} - {DEBUG:fetch soc_ev3} - parse_data: data='{'embedded': None, 'links': {'_self': {'deprecation': None, 'href': 'https://api.groupe-psa.com/connectedcar/v4/user/vehicles/.../status?profile=endUser', 'hreflang': None, 'name': None, 'profile': None, 'templated': None, 'title': None, 'type': None}, 'vehicle': {'deprecation': None, 'href': 'https://api.groupe-psa.com/connectedcar/v4/user/vehicles/...', 'hreflang': None, 'name': None, 'profile': None, 'templated': None, 'title': None, 'type': None}}, 'battery': {'current': None, 'voltage': 82.5}, 'doors_state': None, 'energy': [{'updated_at': '2025-01-30 10:19:26+00:00', 'autonomy': 206.0, 'battery': None, 'charging': {'charging_mode': 'Slow', 'charging_rate': 56, 'next_delayed_time': 'PT0S', 'plugged': True, 'remaining_time': 'PT0S', 'status': 'InProgress'}, 'consumption': None, 'level': 75.0, 'residual': None, 'type': 'Electric'}], 'environment': {'created_at': None, 'air': {'temp': 6.5}, 'luminosity': {'day': True}}, 'ignition': {'type': 'Stop'}, 'kinetic': {'acceleration': None, 'moving': False, 'pace': None, 'speed': None}, 'last_position': {'type': 'Feature', 'geometry': {'coordinates': [8.55609, 51.73253, 91.0], 'type': 'Point'}, 'properties': {'heading': 69.0, 'signal_quality': 9.0, 'type': 'Acquire', 'updated_at': '2025-01-30 08:26:50+00:00'}}, 'preconditionning': {'air_conditioning': {'failure_cause': None, 'status': 'Disabled', 'updated_at': '2025-01-30 10:19:23+00:00', 'created_at': '2025-01-30 10:19:23+00:00'}}, 'privacy': {'state': 'None'}, 'safety': None, 'service': {'type': 'Electric', 'updated_at': None}, 'timed_odometer': {'updated_at': '2025-01-30 10:19:23+00:00', 'mileage': 47979.5}}' pattern='.energy[0].autonomy'
2025-01-30 11:28:26,457 - {modules.vehicles.json.soc:44} - {DEBUG:fetch soc_ev3} - result='206'
2025-01-30 11:28:26,459 - {modules.vehicles.json.soc:72} - {DEBUG:fetch soc_ev3} - timestamp_pattern='.energy[0].updated_at'
2025-01-30 11:28:26,464 - {modules.vehicles.json.soc:35} - {DEBUG:fetch soc_ev3} - parse_data: data='{'embedded': None, 'links': {'_self': {'deprecation': None, 'href': 'https://api.groupe-psa.com/connectedcar/v4/user/vehicles/.../status?profile=endUser', 'hreflang': None, 'name': None, 'profile': None, 'templated': None, 'title': None, 'type': None}, 'vehicle': {'deprecation': None, 'href': 'https://api.groupe-psa.com/connectedcar/v4/user/vehicles/...', 'hreflang': None, 'name': None, 'profile': None, 'templated': None, 'title': None, 'type': None}}, 'battery': {'current': None, 'voltage': 82.5}, 'doors_state': None, 'energy': [{'updated_at': '2025-01-30 10:19:26+00:00', 'autonomy': 206.0, 'battery': None, 'charging': {'charging_mode': 'Slow', 'charging_rate': 56, 'next_delayed_time': 'PT0S', 'plugged': True, 'remaining_time': 'PT0S', 'status': 'InProgress'}, 'consumption': None, 'level': 75.0, 'residual': None, 'type': 'Electric'}], 'environment': {'created_at': None, 'air': {'temp': 6.5}, 'luminosity': {'day': True}}, 'ignition': {'type': 'Stop'}, 'kinetic': {'acceleration': None, 'moving': False, 'pace': None, 'speed': None}, 'last_position': {'type': 'Feature', 'geometry': {'coordinates': [8.55609, 51.73253, 91.0], 'type': 'Point'}, 'properties': {'heading': 69.0, 'signal_quality': 9.0, 'type': 'Acquire', 'updated_at': '2025-01-30 08:26:50+00:00'}}, 'preconditionning': {'air_conditioning': {'failure_cause': None, 'status': 'Disabled', 'updated_at': '2025-01-30 10:19:23+00:00', 'created_at': '2025-01-30 10:19:23+00:00'}}, 'privacy': {'state': 'None'}, 'safety': None, 'service': {'type': 'Electric', 'updated_at': None}, 'timed_odometer': {'updated_at': '2025-01-30 10:19:23+00:00', 'mileage': 47979.5}}' pattern='.energy[0].updated_at'
2025-01-30 11:28:26,855 - {modules.vehicles.json.soc:44} - {DEBUG:fetch soc_ev3} - result='2025-01-30 10:19:26+00:00'
2025-01-30 11:28:26,858 - {modules.common.configurable_vehicle:67} - {DEBUG:fetch soc_ev3} - Requested start soc from api: 75.0%
2025-01-30 11:28:26,861 - {modules.common.store._api:26} - {DEBUG:fetch soc_ev3} - Raw data CarState(soc=75.0, range=206, soc_timestamp=1738232366)
2025-01-30 11:28:26,893 - {modules.common.store._api:31} - {INFO:store soc_ev3} - Saving CarState(soc=75.0, range=206, soc_timestamp=1738232366)
Irgendwas stimmt da also nicht. Die SoC-Abfragen sollten nicht alle zwei Minuten kommen, schon gar nicht, wenn der Corsa gar nicht als Fahrzeug in der openwb beim Laden ausgewählt ist.