audi_connect_ha: Audi Q4 e-tron "SOC" Missing

Discussed in https://github.com/audiconnect/audi_connect_ha/discussions/338

<div type='discussions-op-text'>

Originally posted by horstvogel April 7, 2024 Hello, for my Audi Q4 e-tron the soc is missing </div>

`2024-04-10 07:41:32.595 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Unable to obtain the vehicle status report of WAUZZZxxxxx: ‘>’ not supported between instances of ‘str’ and ‘datetime.datetime’ Traceback (most recent call last): File “/config/custom_components/audiconnect/audi_connect_account.py”, line 494, in update_vehicle_statusreport self._vehicle.state[“last_update_time”] = max( ^^^^ TypeError: ‘>’ not supported between instances of ‘str’ and ‘datetime.datetime’ 2024-04-10 07:41:33.491 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Unable to update the vehicle position of WAUZZZxxxxx: 404, message=‘Not Found’, url=URL(‘https://emea.bff.cariad.digital/vehicle/v1/vehicles/WAUZZZxxxxx/parkingposition’) Traceback (most recent call last): File “/config/custom_components/audiconnect/audi_connect_account.py”, line 533, in update_vehicle_position resp = await self._audi_service.get_stored_position(self._vehicle.vin) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/audiconnect/audi_services.py”, line 224, in get_stored_position return await self._api.get( ^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/audiconnect/audi_api.py”, line 84, in get r = await self.request( ^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/audiconnect/audi_api.py”, line 67, in request raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 404, message=‘Not Found’, url=URL(‘https://emea.bff.cariad.digital/vehicle/v1/vehicles/WAUZZZxxxxx/parkingposition’) 2024-04-10 07:41:49.863 WARNING (MainThread) [py.warnings] /config/custom_components/alfen_wallbox/alfen.py:84: RuntimeWarning: coroutine ‘ClientSession._request’ was never awaited self._session.request(

2024-04-10 07:46:33.913 DEBUG (MainThread) [custom_components.audiconnect] User option for CONF_SCAN_INTERVAL is 0:10:00 2024-04-10 07:46:33.913 DEBUG (MainThread) [custom_components.audiconnect] User option for CONF_SCAN_INITIAL is True. 2024-04-10 07:46:33.913 DEBUG (MainThread) [custom_components.audiconnect] User option for CONF_SCAN_ACTIVE is True. 2024-04-10 07:46:33.914 INFO (MainThread) [custom_components.audiconnect] Scheduling cloud update every 10 minutes. 2024-04-10 07:46:33.917 INFO (MainThread) [custom_components.audiconnect] Requesting initial cloud update… 2024-04-10 07:46:33.917 INFO (MainThread) [custom_components.audiconnect.audi_account] Running update for Audi Connect service at 2024-04-10 05:46:33.917314+00:00 2024-04-10 07:46:43.718 DEBUG (MainThread) [custom_components.audiconnect.audi_services] audiconnect - Car Data: {‘access’: {‘accessStatus’: {‘value’: {‘overallStatus’: ‘safe’, ‘carCapturedTimestamp’: ‘2023-10-25T03:16:23.833Z’, ‘doors’: [{‘name’: ‘bonnet’, ‘status’: [‘closed’]}, {‘name’: ‘trunk’, ‘status’: [‘closed’, ‘locked’]}, {‘name’: ‘rearRight’, ‘status’: [‘closed’, ‘locked’]}, {‘name’: ‘rearLeft’, ‘status’: [‘closed’, ‘locked’]}, {‘name’: ‘frontRight’, ‘status’: [‘closed’, ‘locked’]}, {‘name’: ‘frontLeft’, ‘status’: [‘closed’, ‘locked’]}], ‘windows’: [{‘name’: ‘sunRoof’, ‘status’: [‘unsupported’]}, {‘name’: ‘roofCover’, ‘status’: [‘unsupported’]}, {‘name’: ‘sunRoofRear’, ‘status’: [‘unsupported’]}, {‘name’: ‘frontLeft’, ‘status’: [‘closed’]}, {‘name’: ‘frontRight’, ‘status’: [‘closed’]}, {‘name’: ‘rearLeft’, ‘status’: [‘closed’]}, {‘name’: ‘rearRight’, ‘status’: [‘closed’]}], ‘doorLockStatus’: ‘locked’}}}, ‘batteryChargingCare’: {‘chargingCareSettings’: {‘value’: {‘batteryCareMode’: ‘deactivated’}}}, ‘charging’: {‘batteryStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 49, tzinfo=datetime.timezone.utc), ‘currentSOC_pct’: 66, ‘cruisingRangeElectric_km’: 177}}, ‘chargingStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 49, tzinfo=datetime.timezone.utc), ‘remainingChargingTimeToComplete_min’: 0, ‘chargingState’: ‘notReadyForCharging’, ‘chargeMode’: ‘manual’, ‘chargePower_kW’: 0, ‘chargeRate_kmph’: 0, ‘chargeType’: ‘invalid’, ‘chargingSettings’: ‘profile’}}, ‘chargingSettings’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 45, tzinfo=datetime.timezone.utc), ‘targetSOC_pct’: 90}}, ‘plugStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 16, 30, tzinfo=datetime.timezone.utc), ‘plugConnectionState’: ‘disconnected’, ‘plugLockState’: ‘unlocked’, ‘externalPower’: ‘unavailable’, ‘ledColor’: ‘none’}}, ‘chargeMode’: {‘value’: {‘preferredChargeMode’: ‘manual’, ‘availableChargeModes’: [‘manual’, ‘timer’]}}, ‘chargingCareSettings’: {‘value’: {‘batteryCareMode’: ‘deactivated’}}}, ‘chargingTimers’: {‘chargingTimersStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 45, tzinfo=datetime.timezone.utc), ‘timeInCar’: datetime.datetime(2024, 4, 10, 6, 15, 46, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200))), ‘timers’: [{‘id’: 1, ‘enabled’: False, ‘climatisation’: False, ‘recurringTimer’: {‘departureTime’: ‘10:00’, ‘targetTime’: ‘10:00’, ‘repetitionDays’: [‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’, ‘sunday’], ‘recurringOn’: {‘mondays’: True, ‘tuesdays’: True, ‘wednesdays’: True, ‘thursdays’: True, ‘fridays’: True, ‘saturdays’: True, ‘sundays’: True}}}, {‘id’: 2, ‘enabled’: False, ‘climatisation’: False, ‘recurringTimer’: {‘departureTime’: ‘10:00’, ‘targetTime’: ‘10:00’, ‘repetitionDays’: [‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’, ‘sunday’], ‘recurringOn’: {‘mondays’: True, ‘tuesdays’: True, ‘wednesdays’: True, ‘thursdays’: True, ‘fridays’: True, ‘saturdays’: True, ‘sundays’: True}}}, {‘id’: 3, ‘enabled’: False, ‘climatisation’: False, ‘recurringTimer’: {‘departureTime’: ‘10:00’, ‘targetTime’: ‘10:00’, ‘repetitionDays’: [‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’, ‘sunday’], ‘recurringOn’: {‘mondays’: True, ‘tuesdays’: True, ‘wednesdays’: True, ‘thursdays’: True, ‘fridays’: True, ‘saturdays’: True, ‘sundays’: True}}}, {‘id’: 4, ‘enabled’: False, ‘climatisation’: False, ‘recurringTimer’: {‘departureTime’: ‘10:00’, ‘targetTime’: ‘10:00’, ‘repetitionDays’: [‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’, ‘sunday’], ‘recurringOn’: {‘mondays’: True, ‘tuesdays’: True, ‘wednesdays’: True, ‘thursdays’: True, ‘fridays’: True, ‘saturdays’: True, ‘sundays’: True}}}, {‘id’: 5, ‘enabled’: False, ‘climatisation’: False, ‘recurringTimer’: {‘departureTime’: ‘10:00’, ‘targetTime’: ‘10:00’, ‘repetitionDays’: [‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’, ‘sunday’], ‘recurringOn’: {‘mondays’: True, ‘tuesdays’: True, ‘wednesdays’: True, ‘thursdays’: True, ‘fridays’: True, ‘saturdays’: True, ‘sundays’: True}}}]}}}, ‘chargingProfiles’: {‘chargingProfilesStatus’: {‘value’: {‘carCapturedTimestamp’: ‘2024-04-10T04:15:45.909Z’, ‘timeInCar’: datetime.datetime(2024, 4, 10, 6, 15, 46, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200))), ‘nextChargingTimer’: {‘id’: 0, ‘targetSOCreachable’: ‘calculating’}, ‘profiles’: [{‘id’: 2, ‘name’: ‘zu Hause’, ‘maxChargingCurrent’: ‘max’, ‘minSOC_pct’: 0, ‘targetSOC_pct’: 100, ‘options’: {‘autoUnlockPlugWhenCharged’: ‘permanent’, ‘usePrivateCurrentEnabled’: False}, ‘preferredChargingTimes’: [{‘id’: 5, ‘enabled’: True, ‘startTime’: ‘08:00’, ‘endTime’: ‘16:00’}], ‘timers’: [], ‘minSOC_enabled’: False}]}}}, ‘climatisation’: {‘climatisationSettings’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 48, tzinfo=datetime.timezone.utc), ‘targetTemperature_C’: 21, ‘targetTemperature_F’: 70, ‘unitInCar’: ‘celsius’, ‘climatizationAtUnlock’: False, ‘windowHeatingEnabled’: False, ‘zoneFrontLeftEnabled’: False, ‘zoneFrontRightEnabled’: False}}, ‘climatisationStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 49, tzinfo=datetime.timezone.utc), ‘climatisationState’: ‘off’}}, ‘windowHeatingStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 49, tzinfo=datetime.timezone.utc), ‘windowHeatingStatus’: [{‘windowLocation’: ‘front’, ‘windowHeatingState’: ‘off’}, {‘windowLocation’: ‘rear’, ‘windowHeatingState’: ‘off’}]}}}, ‘climatisationTimers’: {‘climatisationTimersStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 45, tzinfo=datetime.timezone.utc), ‘timeInCar’: datetime.datetime(2024, 4, 10, 6, 15, 46, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200))), ‘timers’: [{‘id’: 1, ‘enabled’: False, ‘singleTimer’: {‘startDateTime’: datetime.datetime(2023, 11, 13, 6, 15, tzinfo=datetime.timezone.utc), ‘targetDateTime’: datetime.datetime(2023, 11, 13, 6, 15, tzinfo=datetime.timezone.utc)}}, {‘id’: 2, ‘enabled’: False, ‘singleTimer’: {‘startDateTime’: datetime.datetime(1999, 12, 31, 22, 0, tzinfo=datetime.timezone.utc), ‘targetDateTime’: datetime.datetime(1999, 12, 31, 22, 0, tzinfo=datetime.timezone.utc)}}]}}}, ‘fuelStatus’: {‘rangeStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 49, tzinfo=datetime.timezone.utc), ‘carType’: ‘electric’, ‘primaryEngine’: {‘type’: ‘electric’, ‘currentSOC_pct’: 66, ‘remainingRange_km’: 177}, ‘totalRange_km’: 177}}}, ‘measurements’: {‘rangeStatus’: {‘value’: {‘carCapturedTimestamp’: ‘2024-04-10T04:14:41.973Z’, ‘electricRange’: 177, ‘totalRange_km’: 177}}, ‘odometerStatus’: {‘value’: {‘carCapturedTimestamp’: ‘2024-04-10T04:12:03.168Z’, ‘odometer’: 15985}}, ‘fuelLevelStatus’: {‘value’: {‘carCapturedTimestamp’: ‘2024-04-10T04:15:08.731Z’, ‘currentSOC_pct’: 66, ‘primaryEngineType’: ‘electric’, ‘carType’: ‘electric’}}}, ‘readiness’: {‘readinessStatus’: {‘value’: {‘connectionState’: {‘isOnline’: True, ‘isActive’: False, ‘batteryPowerLevel’: ‘comfort’, ‘dailyPowerBudgetAvailable’: True}, ‘connectionWarning’: {‘insufficientBatteryLevelWarning’: False, ‘dailyPowerBudgetWarning’: False}}}}, ‘vehicleLights’: {‘lightsStatus’: {‘value’: {‘carCapturedTimestamp’: ‘2023-10-25T03:16:23.82Z’, ‘lights’: [{‘name’: ‘right’, ‘status’: ‘off’}, {‘name’: ‘left’, ‘status’: ‘off’}]}}}, ‘vehicleHealthWarnings’: {‘warningLights’: {‘value’: {‘carCapturedTimestamp’: ‘2024-04-10T03:18:07.203Z’, ‘mileage_km’: 15985}}}} 2024-04-10 07:46:43.718 DEBUG (MainThread) [custom_components.audiconnect.audi_models] Data that will be used for _tryAppendStateWithTs: {‘access’: {‘accessStatus’: {‘value’: {‘overallStatus’: ‘safe’, ‘carCapturedTimestamp’: ‘2023-10-25T03:16:23.833Z’, ‘doors’: [{‘name’: ‘bonnet’, ‘status’: [‘closed’]}, {‘name’: ‘trunk’, ‘status’: [‘closed’, ‘locked’]}, {‘name’: ‘rearRight’, ‘status’: [‘closed’, ‘locked’]}, {‘name’: ‘rearLeft’, ‘status’: [‘closed’, ‘locked’]}, {‘name’: ‘frontRight’, ‘status’: [‘closed’, ‘locked’]}, {‘name’: ‘frontLeft’, ‘status’: [‘closed’, ‘locked’]}], ‘windows’: [{‘name’: ‘sunRoof’, ‘status’: [‘unsupported’]}, {‘name’: ‘roofCover’, ‘status’: [‘unsupported’]}, {‘name’: ‘sunRoofRear’, ‘status’: [‘unsupported’]}, {‘name’: ‘frontLeft’, ‘status’: [‘closed’]}, {‘name’: ‘frontRight’, ‘status’: [‘closed’]}, {‘name’: ‘rearLeft’, ‘status’: [‘closed’]}, {‘name’: ‘rearRight’, ‘status’: [‘closed’]}], ‘doorLockStatus’: ‘locked’}}}, ‘batteryChargingCare’: {‘chargingCareSettings’: {‘value’: {‘batteryCareMode’: ‘deactivated’}}}, ‘charging’: {‘batteryStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 49, tzinfo=datetime.timezone.utc), ‘currentSOC_pct’: 66, ‘cruisingRangeElectric_km’: 177}}, ‘chargingStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 49, tzinfo=datetime.timezone.utc), ‘remainingChargingTimeToComplete_min’: 0, ‘chargingState’: ‘notReadyForCharging’, ‘chargeMode’: ‘manual’, ‘chargePower_kW’: 0, ‘chargeRate_kmph’: 0, ‘chargeType’: ‘invalid’, ‘chargingSettings’: ‘profile’}}, ‘chargingSettings’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 45, tzinfo=datetime.timezone.utc), ‘targetSOC_pct’: 90}}, ‘plugStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 16, 30, tzinfo=datetime.timezone.utc), ‘plugConnectionState’: ‘disconnected’, ‘plugLockState’: ‘unlocked’, ‘externalPower’: ‘unavailable’, ‘ledColor’: ‘none’}}, ‘chargeMode’: {‘value’: {‘preferredChargeMode’: ‘manual’, ‘availableChargeModes’: [‘manual’, ‘timer’]}}, ‘chargingCareSettings’: {‘value’: {‘batteryCareMode’: ‘deactivated’}}}, ‘chargingTimers’: {‘chargingTimersStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 45, tzinfo=datetime.timezone.utc), ‘timeInCar’: datetime.datetime(2024, 4, 10, 6, 15, 46, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200))), ‘timers’: [{‘id’: 1, ‘enabled’: False, ‘climatisation’: False, ‘recurringTimer’: {‘departureTime’: ‘10:00’, ‘targetTime’: ‘10:00’, ‘repetitionDays’: [‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’, ‘sunday’], ‘recurringOn’: {‘mondays’: True, ‘tuesdays’: True, ‘wednesdays’: True, ‘thursdays’: True, ‘fridays’: True, ‘saturdays’: True, ‘sundays’: True}}}, {‘id’: 2, ‘enabled’: False, ‘climatisation’: False, ‘recurringTimer’: {‘departureTime’: ‘10:00’, ‘targetTime’: ‘10:00’, ‘repetitionDays’: [‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’, ‘sunday’], ‘recurringOn’: {‘mondays’: True, ‘tuesdays’: True, ‘wednesdays’: True, ‘thursdays’: True, ‘fridays’: True, ‘saturdays’: True, ‘sundays’: True}}}, {‘id’: 3, ‘enabled’: False, ‘climatisation’: False, ‘recurringTimer’: {‘departureTime’: ‘10:00’, ‘targetTime’: ‘10:00’, ‘repetitionDays’: [‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’, ‘sunday’], ‘recurringOn’: {‘mondays’: True, ‘tuesdays’: True, ‘wednesdays’: True, ‘thursdays’: True, ‘fridays’: True, ‘saturdays’: True, ‘sundays’: True}}}, {‘id’: 4, ‘enabled’: False, ‘climatisation’: False, ‘recurringTimer’: {‘departureTime’: ‘10:00’, ‘targetTime’: ‘10:00’, ‘repetitionDays’: [‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’, ‘sunday’], ‘recurringOn’: {‘mondays’: True, ‘tuesdays’: True, ‘wednesdays’: True, ‘thursdays’: True, ‘fridays’: True, ‘saturdays’: True, ‘sundays’: True}}}, {‘id’: 5, ‘enabled’: False, ‘climatisation’: False, ‘recurringTimer’: {‘departureTime’: ‘10:00’, ‘targetTime’: ‘10:00’, ‘repetitionDays’: [‘monday’, ‘tuesday’, ‘wednesday’, ‘thursday’, ‘friday’, ‘saturday’, ‘sunday’], ‘recurringOn’: {‘mondays’: True, ‘tuesdays’: True, ‘wednesdays’: True, ‘thursdays’: True, ‘fridays’: True, ‘saturdays’: True, ‘sundays’: True}}}]}}}, ‘chargingProfiles’: {‘chargingProfilesStatus’: {‘value’: {‘carCapturedTimestamp’: ‘2024-04-10T04:15:45.909Z’, ‘timeInCar’: datetime.datetime(2024, 4, 10, 6, 15, 46, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200))), ‘nextChargingTimer’: {‘id’: 0, ‘targetSOCreachable’: ‘calculating’}, ‘profiles’: [{‘id’: 2, ‘name’: ‘zu Hause’, ‘maxChargingCurrent’: ‘max’, ‘minSOC_pct’: 0, ‘targetSOC_pct’: 100, ‘options’: {‘autoUnlockPlugWhenCharged’: ‘permanent’, ‘usePrivateCurrentEnabled’: False}, ‘preferredChargingTimes’: [{‘id’: 5, ‘enabled’: True, ‘startTime’: ‘08:00’, ‘endTime’: ‘16:00’}], ‘timers’: [], ‘minSOC_enabled’: False}]}}}, ‘climatisation’: {‘climatisationSettings’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 48, tzinfo=datetime.timezone.utc), ‘targetTemperature_C’: 21, ‘targetTemperature_F’: 70, ‘unitInCar’: ‘celsius’, ‘climatizationAtUnlock’: False, ‘windowHeatingEnabled’: False, ‘zoneFrontLeftEnabled’: False, ‘zoneFrontRightEnabled’: False}}, ‘climatisationStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 49, tzinfo=datetime.timezone.utc), ‘climatisationState’: ‘off’}}, ‘windowHeatingStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 49, tzinfo=datetime.timezone.utc), ‘windowHeatingStatus’: [{‘windowLocation’: ‘front’, ‘windowHeatingState’: ‘off’}, {‘windowLocation’: ‘rear’, ‘windowHeatingState’: ‘off’}]}}}, ‘climatisationTimers’: {‘climatisationTimersStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 45, tzinfo=datetime.timezone.utc), ‘timeInCar’: datetime.datetime(2024, 4, 10, 6, 15, 46, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200))), ‘timers’: [{‘id’: 1, ‘enabled’: False, ‘singleTimer’: {‘startDateTime’: datetime.datetime(2023, 11, 13, 6, 15, tzinfo=datetime.timezone.utc), ‘targetDateTime’: datetime.datetime(2023, 11, 13, 6, 15, tzinfo=datetime.timezone.utc)}}, {‘id’: 2, ‘enabled’: False, ‘singleTimer’: {‘startDateTime’: datetime.datetime(1999, 12, 31, 22, 0, tzinfo=datetime.timezone.utc), ‘targetDateTime’: datetime.datetime(1999, 12, 31, 22, 0, tzinfo=datetime.timezone.utc)}}]}}}, ‘fuelStatus’: {‘rangeStatus’: {‘value’: {‘carCapturedTimestamp’: datetime.datetime(2024, 4, 10, 4, 15, 49, tzinfo=datetime.timezone.utc), ‘carType’: ‘electric’, ‘primaryEngine’: {‘type’: ‘electric’, ‘currentSOC_pct’: 66, ‘remainingRange_km’: 177}, ‘totalRange_km’: 177}}}, ‘measurements’: {‘rangeStatus’: {‘value’: {‘carCapturedTimestamp’: ‘2024-04-10T04:14:41.973Z’, ‘electricRange’: 177, ‘totalRange_km’: 177}}, ‘odometerStatus’: {‘value’: {‘carCapturedTimestamp’: ‘2024-04-10T04:12:03.168Z’, ‘odometer’: 8999}}, ‘fuelLevelStatus’: {‘value’: {‘carCapturedTimestamp’: ‘2024-04-10T04:15:08.731Z’, ‘currentSOC_pct’: 66, ‘primaryEngineType’: ‘electric’, ‘carType’: ‘electric’}}}, ‘readiness’: {‘readinessStatus’: {‘value’: {‘connectionState’: {‘isOnline’: True, ‘isActive’: False, ‘batteryPowerLevel’: ‘comfort’, ‘dailyPowerBudgetAvailable’: True}, ‘connectionWarning’: {‘insufficientBatteryLevelWarning’: False, ‘dailyPowerBudgetWarning’: False}}}}, ‘vehicleLights’: {‘lightsStatus’: {‘value’: {‘carCapturedTimestamp’: ‘2023-10-25T03:16:23.82Z’, ‘lights’: [{‘name’: ‘right’, ‘status’: ‘off’}, {‘name’: ‘left’, ‘status’: ‘off’}]}}}, ‘vehicleHealthWarnings’: {‘warningLights’: {‘value’: {‘carCapturedTimestamp’: ‘2024-04-10T03:18:07.203Z’, ‘mileage_km’: 15985}}}} 2024-04-10 07:46:43.718 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendFieldWithTs: textId:TOTAL_RANGE loc:[‘fuelStatus’, ‘rangeStatus’, ‘value’, ‘carCapturedTimestamp’]: val:177 ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.719 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendFieldWithTs: textId:TANK_LEVEL_IN_PERCENTAGE loc:[‘measurements’, ‘fuelLevelStatus’, ‘value’, ‘currentFuelLevel_pct’]: val:None ts:None 2024-04-10 07:46:43.719 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendFieldWithTs: textId:UTC_TIME_AND_KILOMETER_STATUS loc:[‘measurements’, ‘odometerStatus’, ‘value’, ‘carCapturedTimestamp’]: val:15985 ts:2024-04-10T04:12:03.168Z 2024-04-10 07:46:43.719 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendFieldWithTs: textId:MAINTENANCE_INTERVAL_TIME_TO_INSPECTION loc:[‘vehicleHealthInspection’, ‘maintenanceStatus’, ‘value’, ‘inspectionDue_days’]: val:None ts:None 2024-04-10 07:46:43.719 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendFieldWithTs: textId:MAINTENANCE_INTERVAL_DISTANCE_TO_INSPECTION loc:[‘vehicleHealthInspection’, ‘maintenanceStatus’, ‘value’, ‘inspectionDue_km’]: val:None ts:None 2024-04-10 07:46:43.719 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendFieldWithTs: textId:MAINTENANCE_INTERVAL_TIME_TO_OIL_CHANGE loc:[‘vehicleHealthInspection’, ‘maintenanceStatus’, ‘value’, ‘oilServiceDue_days’]: val:None ts:None 2024-04-10 07:46:43.719 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendFieldWithTs: textId:MAINTENANCE_INTERVAL_DISTANCE_TO_OIL_CHANGE loc:[‘vehicleHealthInspection’, ‘maintenanceStatus’, ‘value’, ‘oilServiceDue_km’]: val:None ts:None 2024-04-10 07:46:43.719 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendFieldWithTs: textId:OIL_LEVEL_DIPSTICKS_PERCENTAGE loc:[‘oilLevel’, ‘oilLevelStatus’, ‘value’, ‘value’]: val:None ts:None 2024-04-10 07:46:43.719 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendFieldWithTs: textId:ADBLUE_RANGE loc:[‘measurements’, ‘rangeStatus’, ‘value’, ‘adBlueRange’]: val:None ts:None 2024-04-10 07:46:43.719 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendFieldWithTs: textId:LIGHT_STATUS loc:[‘vehicleLights’, ‘lightsStatus’, ‘value’, ‘carCapturedTimestamp’]: val:[{‘name’: ‘right’, ‘status’: ‘off’}, {‘name’: ‘left’, ‘status’: ‘off’}] ts:2023-10-25T03:16:23.82Z 2024-04-10 07:46:43.719 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:carType tsoff:-1 loc:[‘fuelStatus’, ‘rangeStatus’, ‘value’, ‘carCapturedTimestamp’]: val:electric ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:engineTypeFirstEngine tsoff:-2 loc:[‘fuelStatus’, ‘rangeStatus’, ‘value’, ‘carCapturedTimestamp’]: val:electric ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:primaryEngineRange tsoff:-2 loc:[‘fuelStatus’, ‘rangeStatus’, ‘value’, ‘carCapturedTimestamp’]: val:177 ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:primaryEngineRangePercent tsoff:-2 loc:[‘fuelStatus’, ‘rangeStatus’, ‘value’, ‘carCapturedTimestamp’]: val:66 ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:engineTypeSecondEngine tsoff:-2 loc:[‘fuelStatus’, ‘rangeStatus’, ‘value’, ‘secondaryEngine’, ‘type’]: val:None ts:None 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:secondaryEngineRange tsoff:-2 loc:[‘fuelStatus’, ‘rangeStatus’, ‘value’, ‘secondaryEngine’, ‘remainingRange_km’]: val:None ts:None 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:secondaryEngineRangePercent tsoff:-2 loc:[‘fuelStatus’, ‘rangeStatus’, ‘value’, ‘secondaryEngine’, ‘currentSOC_pct’]: val:None ts:None 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:hybridRange tsoff:-1 loc:[‘fuelStatus’, ‘rangeStatus’, ‘value’, ‘carCapturedTimestamp’]: val:177 ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:stateOfCharge tsoff:-1 loc:[‘charging’, ‘batteryStatus’, ‘value’, ‘carCapturedTimestamp’]: val:66 ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:chargingMode tsoff:-1 loc:[‘charging’, ‘chargingStatus’, ‘value’, ‘carCapturedTimestamp’]: val:invalid ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:actualChargeRate tsoff:-1 loc:[‘charging’, ‘chargingStatus’, ‘value’, ‘carCapturedTimestamp’]: val:0 ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.720 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:chargingPower tsoff:-1 loc:[‘charging’, ‘chargingStatus’, ‘value’, ‘carCapturedTimestamp’]: val:0 ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.721 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:chargeMode tsoff:-1 loc:[‘charging’, ‘chargingStatus’, ‘value’, ‘carCapturedTimestamp’]: val:manual ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.721 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:chargingState tsoff:-1 loc:[‘charging’, ‘chargingStatus’, ‘value’, ‘carCapturedTimestamp’]: val:notReadyForCharging ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.721 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:plugState tsoff:-1 loc:[‘charging’, ‘plugStatus’, ‘value’, ‘carCapturedTimestamp’]: val:disconnected ts:2024-04-10 04:16:30+00:00 2024-04-10 07:46:43.721 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:remainingChargingTime tsoff:-1 loc:[‘charging’, ‘chargingStatus’, ‘value’, ‘carCapturedTimestamp’]: val:0 ts:2024-04-10 04:15:49+00:00 2024-04-10 07:46:43.721 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:plugLockState tsoff:-1 loc:[‘charging’, ‘plugStatus’, ‘value’, ‘carCapturedTimestamp’]: val:unlocked ts:2024-04-10 04:16:30+00:00 2024-04-10 07:46:43.721 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:externalPower tsoff:-1 loc:[‘charging’, ‘plugStatus’, ‘value’, ‘carCapturedTimestamp’]: val:unavailable ts:2024-04-10 04:16:30+00:00 2024-04-10 07:46:43.721 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:plugledColor tsoff:-1 loc:[‘charging’, ‘plugStatus’, ‘value’, ‘carCapturedTimestamp’]: val:none ts:2024-04-10 04:16:30+00:00 2024-04-10 07:46:43.721 DEBUG (MainThread) [custom_components.audiconnect.audi_models] audi_models.py - _tryAppendStateWithTs: name:climatisationState tsoff:-1 loc:[‘climatisation’, ‘auxiliaryHeatingStatus’, ‘value’, ‘climatisationState’]: val:None ts:None 2024-04-10 07:46:43.721 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Unable to obtain the vehicle status report of WAUZZZxxxxx: ‘>’ not supported between instances of ‘str’ and ‘datetime.datetime’ Traceback (most recent call last): File “/config/custom_components/audiconnect/audi_connect_account.py”, line 494, in update_vehicle_statusreport self._vehicle.state[“last_update_time”] = max( ^^^^ TypeError: ‘>’ not supported between instances of ‘str’ and ‘datetime.datetime’ 2024-04-10 07:46:44.117 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] Unable to update the vehicle position of WAUZZZxxxxx: 404, message=‘Not Found’, url=URL(‘https://emea.bff.cariad.digital/vehicle/v1/vehicles/WAUZZZxxxxx/parkingposition’) Traceback (most recent call last): File “/config/custom_components/audiconnect/audi_connect_account.py”, line 533, in update_vehicle_position resp = await self._audi_service.get_stored_position(self._vehicle.vin) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/audiconnect/audi_services.py”, line 224, in get_stored_position return await self._api.get( ^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/audiconnect/audi_api.py”, line 84, in get r = await self.request( ^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/audiconnect/audi_api.py”, line 67, in request raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 404, message=‘Not Found’, url=URL(‘https://emea.bff.cariad.digital/vehicle/v1/vehicles/WAUZZZxxxxx/parkingposition’) 2024-04-10 07:46:44.849 INFO (MainThread) [custom_components.audiconnect.audi_account] Discovered 1 vehicle(s) 2024-04-10 07:46:44.851 INFO (MainThread) [custom_components.audiconnect.audi_account] Successfully updated Audi Connect service `

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

EU (Belgium)

it is running!!!

image

Can you please retest as https://github.com/audiconnect/audi_connect_ha/pull/372 is submitted and integrated in v1.5.3?