audiconnect / audi_connect_ha

Adds an audi connect integration to home assistant
MIT License
242 stars 98 forks source link

Climate not working #494

Open gomble opened 5 days ago

gomble commented 5 days ago

Describe the bug Climate service not working: getting following error:

Unable to start climate control of vehicle -----. Error: 404, message='Not Found', url='https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/climatisation/v1/Audi/DE/vehicles/WAUZZZFZXRP045097/climater/actions'
Traceback (most recent call last):
  File "/config/custom_components/audiconnect/audi_connect_account.py", line 314, in start_climate_control
    await self._audi_service.start_climate_control(
  File "/config/custom_components/audiconnect/audi_services.py", line 630, in start_climate_control
    res = await self._api.request(
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/audiconnect/audi_api.py", line 67, in request
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url='https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/climatisation/v1/Audi/DE/vehicles/-------/climater/actions'

To Reproduce Steps to reproduce the behavior: image

Expected behavior Climate does start

Screenshots

Logfile

2024-11-13 15:04:02.411 DEBUG (MainThread) [custom_components.audiconnect.audi_account] Starting refresh cloud data...
2024-11-13 15:04:04.435 DEBUG (MainThread) [custom_components.audiconnect.audi_services] Vehicle data returned for VIN: *************5097: {'access': {'accessStatus': {'value': {'overallStatus': 'safe', 'carCapturedTimestamp': '2024-11-13T00:47:08.346Z', '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, 11, 13, 14, 2, 58, tzinfo=datetime.timezone.utc), 'currentSOC_pct': 76, 'cruisingRangeElectric_km': 200}}, 'chargingStatus': {'value': {'carCapturedTimestamp': datetime.datetime(2024, 11, 13, 14, 2, 58, tzinfo=datetime.timezone.utc), 'remainingChargingTimeToComplete_min': 830, 'chargingState': 'charging', 'chargeMode': 'manual', 'chargePower_kW': 1.6, 'chargeRate_kmph': 5, 'chargeType': 'ac', 'chargingSettings': 'profile', 'chargingScenario': 'immediatelyChargingActive'}}, 'chargingSettings': {'value': {'carCapturedTimestamp': datetime.datetime(2024, 11, 13, 9, 16, 11, tzinfo=datetime.timezone.utc), 'targetSOC_pct': 100}}, 'plugStatus': {'value': {'carCapturedTimestamp': datetime.datetime(2024, 11, 13, 9, 16, tzinfo=datetime.timezone.utc), 'plugConnectionState': 'connected', 'plugLockState': 'locked', 'externalPower': 'active', 'ledColor': 'green'}}, 'chargeMode': {'value': {'preferredChargeMode': 'manual', 'availableChargeModes': ['manual', 'timer']}}, 'chargingCareSettings': {'value': {'batteryCareMode': 'deactivated'}}}, 'chargingTimers': {'chargingTimersStatus': {'value': {'carCapturedTimestamp': datetime.datetime(2024, 11, 13, 9, 16, 11, tzinfo=datetime.timezone.utc), 'timeInCar': datetime.datetime(2024, 11, 13, 10, 16, 11, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600))), 'timers': [{'id': 1, 'enabled': False, 'climatisation': False, 'recurringTimer': {'departureTime': '11:00', 'targetTime': '11: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': '11:00', 'targetTime': '11: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': '11:00', 'targetTime': '11: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': '11:00', 'targetTime': '11: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': '11:00', 'targetTime': '11: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-11-13T09:16:11.081Z', 'timeInCar': datetime.datetime(2024, 11, 13, 10, 16, 11, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600))), 'vehiclePositionedInProfileID': 1, 'nextChargingTimer': {'id': 0, 'targetSOCreachable': 'reachable'}, 'profiles': []}}}, 'climatisation': {'climatisationSettings': {'value': {'carCapturedTimestamp': datetime.datetime(2024, 11, 13, 0, 46, 10, tzinfo=datetime.timezone.utc), 'targetTemperature_C': 28, 'targetTemperature_F': 84, 'unitInCar': 'celsius', 'climatizationAtUnlock': True, 'windowHeatingEnabled': True, 'zoneFrontLeftEnabled': True, 'zoneFrontRightEnabled': True}}, 'climatisationStatus': {'value': {'carCapturedTimestamp': datetime.datetime(2024, 11, 13, 0, 46, 11, tzinfo=datetime.timezone.utc), 'remainingClimatisationTime_min': 0, 'climatisationState': 'off'}}, 'climatisationTemperatureOutside': {'error': {'message': 'Bad Gateway', 'errorTimeStamp': datetime.datetime(2024, 11, 13, 14, 4, 3, tzinfo=datetime.timezone.utc), 'info': 'Something went wrong. Please try to re-login. If the problem persists, please contact our support.', 'code': 4003, 'group': 3, 'retry': True}}, 'windowHeatingStatus': {'value': {'carCapturedTimestamp': datetime.datetime(2024, 11, 13, 0, 46, 11, tzinfo=datetime.timezone.utc), 'windowHeatingStatus': [{'windowLocation': 'front', 'windowHeatingState': 'off'}, {'windowLocation': 'rear', 'windowHeatingState': 'off'}]}}}, 'climatisationTimers': {'climatisationTimersStatus': {'value': {'carCapturedTimestamp': datetime.datetime(2024, 11, 13, 0, 46, 7, tzinfo=datetime.timezone.utc), 'timeInCar': datetime.datetime(2024, 11, 13, 1, 46, 8, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600))), 'timers': [{'id': 1, 'enabled': False, 'singleTimer': {'startDateTime': datetime.datetime(2024, 11, 11, 4, 20, tzinfo=datetime.timezone.utc), 'targetDateTime': datetime.datetime(2024, 11, 11, 4, 20, tzinfo=datetime.timezone.utc)}}, {'id': 2, 'enabled': False, 'singleTimer': {'startDateTime': datetime.datetime(2024, 11, 11, 23, 0, tzinfo=datetime.timezone.utc), 'targetDateTime': datetime.datetime(2024, 11, 11, 23, 0, tzinfo=datetime.timezone.utc)}}]}}}, 'fuelStatus': {'rangeStatus': {'value': {'carCapturedTimestamp': datetime.datetime(2024, 11, 13, 14, 2, 58, tzinfo=datetime.timezone.utc), 'carType': 'electric', 'primaryEngine': {'type': 'electric', 'currentSOC_pct': 76, 'remainingRange_km': 200}, 'totalRange_km': 200}}}, 'measurements': {'rangeStatus': {'value': {'carCapturedTimestamp': '2024-11-13T13:56:40.604Z', 'electricRange': 200, 'totalRange_km': 200}}, 'odometerStatus': {'value': {'carCapturedTimestamp': '2024-11-13T13:56:39.714Z', 'odometer': 26800}}, 'temperatureBatteryStatus': {'value': {'carCapturedTimestamp': '2024-11-13T13:51:41.019Z', 'temperatureHvBatteryMin_K': '285.65', 'temperatureHvBatteryMax_K': '287.15'}}, 'fuelLevelStatus': {'value': {'carCapturedTimestamp': '2024-11-13T13:56:40.805Z', 'currentSOC_pct': 76, 'primaryEngineType': 'electric', 'carType': 'electric'}}, 'temperatureOutsideStatus': {'value': {'carCapturedTimestamp': '2024-11-13T09:16:38.814Z', 'temperatureOutside_K': '283.65'}}}, 'readiness': {'readinessStatus': {'value': {'connectionState': {'isOnline': True, 'isActive': False, 'batteryPowerLevel': 'comfort', 'dailyPowerBudgetAvailable': True}, 'connectionWarning': {'insufficientBatteryLevelWarning': False, 'dailyPowerBudgetWarning': False}}}}, 'vehicleLights': {'lightsStatus': {'value': {'carCapturedTimestamp': '2024-11-13T00:46:07.838Z', 'lights': [{'name': 'right', 'status': 'off'}, {'name': 'left', 'status': 'off'}]}}}, 'vehicleHealthWarnings': {'warningLights': {'value': {'carCapturedTimestamp': '2024-11-13T00:18:49.853Z', 'mileage_km': 26800}}}}
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Searching for 'TOTAL_RANGE' at location=['fuelStatus', 'rangeStatus', 'value', 'totalRange_km']
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Found 'TOTAL_RANGE' with value=200, loc=['fuelStatus', 'rangeStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Searching for 'TANK_LEVEL_IN_PERCENTAGE' at location=['measurements', 'fuelLevelStatus', 'value', 'currentFuelLevel_pct']
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Value for 'TANK_LEVEL_IN_PERCENTAGE' is None or missing; not appending field.
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Searching for 'UTC_TIME_AND_KILOMETER_STATUS' at location=['measurements', 'odometerStatus', 'value', 'odometer']
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Found 'UTC_TIME_AND_KILOMETER_STATUS' with value=26800, loc=['measurements', 'odometerStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13T13:56:39.714Z
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Searching for 'MAINTENANCE_INTERVAL_TIME_TO_INSPECTION' at location=['vehicleHealthInspection', 'maintenanceStatus', 'value', 'inspectionDue_days']
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Value for 'MAINTENANCE_INTERVAL_TIME_TO_INSPECTION' is None or missing; not appending field.
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Searching for 'MAINTENANCE_INTERVAL_DISTANCE_TO_INSPECTION' at location=['vehicleHealthInspection', 'maintenanceStatus', 'value', 'inspectionDue_km']
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Value for 'MAINTENANCE_INTERVAL_DISTANCE_TO_INSPECTION' is None or missing; not appending field.
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Searching for 'MAINTENANCE_INTERVAL_TIME_TO_OIL_CHANGE' at location=['vehicleHealthInspection', 'maintenanceStatus', 'value', 'oilServiceDue_days']
2024-11-13 15:04:04.436 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Value for 'MAINTENANCE_INTERVAL_TIME_TO_OIL_CHANGE' is None or missing; not appending field.
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Searching for 'MAINTENANCE_INTERVAL_DISTANCE_TO_OIL_CHANGE' at location=['vehicleHealthInspection', 'maintenanceStatus', 'value', 'oilServiceDue_km']
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Value for 'MAINTENANCE_INTERVAL_DISTANCE_TO_OIL_CHANGE' is None or missing; not appending field.
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Searching for 'OIL_LEVEL_DIPSTICKS_PERCENTAGE' at location=['oilLevel', 'oilLevelStatus', 'value', 'value']
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Value for 'OIL_LEVEL_DIPSTICKS_PERCENTAGE' is None or missing; not appending field.
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Searching for 'ADBLUE_RANGE' at location=['measurements', 'rangeStatus', 'value', 'adBlueRange']
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Value for 'ADBLUE_RANGE' is None or missing; not appending field.
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Searching for 'LIGHT_STATUS' at location=['vehicleLights', 'lightsStatus', 'value', 'lights']
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND FIELD: Found 'LIGHT_STATUS' with value=[{'name': 'right', 'status': 'off'}, {'name': 'left', 'status': 'off'}], loc=['vehicleLights', 'lightsStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13T00:46:07.838Z
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Starting to append windows...
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Timestamp captured from car: 2024-11-13T00:47:08.346Z
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Processing window: sunRoof with status: ['unsupported']
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Skipping unsupported window or not mapped in OLDAPI_MAPPING: sunRoof
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Processing window: roofCover with status: ['unsupported']
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Skipping unsupported window or not mapped in OLDAPI_MAPPING: roofCover
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Processing window: sunRoofRear with status: ['unsupported']
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Skipping unsupported window or not mapped in OLDAPI_MAPPING: sunRoofRear
2024-11-13 15:04:04.437 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Processing window: frontLeft with status: ['closed']
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Appended window field: {'textId': 'STATE_LEFT_FRONT_WINDOW', 'value': '3', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Processing window: frontRight with status: ['closed']
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Appended window field: {'textId': 'STATE_RIGHT_FRONT_WINDOW', 'value': '3', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Processing window: rearLeft with status: ['closed']
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Appended window field: {'textId': 'STATE_LEFT_REAR_WINDOW', 'value': '3', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Processing window: rearRight with status: ['closed']
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Appended window field: {'textId': 'STATE_RIGHT_REAR_WINDOW', 'value': '3', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND WINDOW: Finished appending windows
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Starting to append doors...
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Timestamp captured from car: 2024-11-13T00:47:08.346Z
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Processing door: bonnet with status: ['closed']
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door lock field: {'textId': 'LOCK_STATE_HOOD', 'value': '0', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door open field: {'textId': 'OPEN_STATE_HOOD', 'value': '3', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.438 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Processing door: trunk with status: ['closed', 'locked']
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door lock field: {'textId': 'LOCK_STATE_TRUNK_LID', 'value': '2', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door open field: {'textId': 'OPEN_STATE_TRUNK_LID', 'value': '3', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Processing door: rearRight with status: ['closed', 'locked']
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door lock field: {'textId': 'LOCK_STATE_RIGHT_REAR_DOOR', 'value': '2', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door open field: {'textId': 'OPEN_STATE_RIGHT_REAR_DOOR', 'value': '3', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Processing door: rearLeft with status: ['closed', 'locked']
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door lock field: {'textId': 'LOCK_STATE_LEFT_REAR_DOOR', 'value': '2', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door open field: {'textId': 'OPEN_STATE_LEFT_REAR_DOOR', 'value': '3', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Processing door: frontRight with status: ['closed', 'locked']
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door lock field: {'textId': 'LOCK_STATE_RIGHT_FRONT_DOOR', 'value': '2', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door open field: {'textId': 'OPEN_STATE_RIGHT_FRONT_DOOR', 'value': '3', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Processing door: frontLeft with status: ['closed', 'locked']
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door lock field: {'textId': 'LOCK_STATE_LEFT_FRONT_DOOR', 'value': '2', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.439 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Appended door open field: {'textId': 'OPEN_STATE_LEFT_FRONT_DOOR', 'value': '3', 'tsCarCaptured': '2024-11-13T00:47:08.346Z'}
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] APPEND DOOR: Finished appending doors
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'carType' at location=['fuelStatus', 'rangeStatus', 'value', 'carType'], tsoff=-1
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'carType' with value=electric, tsoff=-1, loc=['fuelStatus', 'rangeStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'engineTypeFirstEngine' at location=['fuelStatus', 'rangeStatus', 'value', 'primaryEngine', 'type'], tsoff=-2
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'engineTypeFirstEngine' with value=electric, tsoff=-2, loc=['fuelStatus', 'rangeStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'primaryEngineRange' at location=['fuelStatus', 'rangeStatus', 'value', 'primaryEngine', 'remainingRange_km'], tsoff=-2
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'primaryEngineRange' with value=200, tsoff=-2, loc=['fuelStatus', 'rangeStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'primaryEngineRangePercent' at location=['fuelStatus', 'rangeStatus', 'value', 'primaryEngine', 'currentSOC_pct'], tsoff=-2
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'primaryEngineRangePercent' with value=76, tsoff=-2, loc=['fuelStatus', 'rangeStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'engineTypeSecondEngine' at location=['fuelStatus', 'rangeStatus', 'value', 'secondaryEngine', 'type'], tsoff=-2
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Value for 'engineTypeSecondEngine' is None; not appending state.
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'secondaryEngineRange' at location=['fuelStatus', 'rangeStatus', 'value', 'secondaryEngine', 'remainingRange_km'], tsoff=-2
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Value for 'secondaryEngineRange' is None; not appending state.
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'secondaryEngineRangePercent' at location=['fuelStatus', 'rangeStatus', 'value', 'secondaryEngine', 'currentSOC_pct'], tsoff=-2
2024-11-13 15:04:04.440 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Value for 'secondaryEngineRangePercent' is None; not appending state.
2024-11-13 15:04:04.441 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'hybridRange' at location=['fuelStatus', 'rangeStatus', 'value', 'totalRange_km'], tsoff=-1
2024-11-13 15:04:04.441 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'hybridRange' with value=200, tsoff=-1, loc=['fuelStatus', 'rangeStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.441 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'stateOfCharge' at location=['charging', 'batteryStatus', 'value', 'currentSOC_pct'], tsoff=-1
2024-11-13 15:04:04.441 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'stateOfCharge' with value=76, tsoff=-1, loc=['charging', 'batteryStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.441 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'chargingState' at location=['charging', 'chargingStatus', 'value', 'chargingState'], tsoff=-1
2024-11-13 15:04:04.441 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'chargingState' with value=charging, tsoff=-1, loc=['charging', 'chargingStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'chargeMode' at location=['charging', 'chargingStatus', 'value', 'chargeMode'], tsoff=-1
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'chargeMode' with value=manual, tsoff=-1, loc=['charging', 'chargingStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'chargingPower' at location=['charging', 'chargingStatus', 'value', 'chargePower_kW'], tsoff=-1
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'chargingPower' with value=1.6, tsoff=-1, loc=['charging', 'chargingStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'actualChargeRate' at location=['charging', 'chargingStatus', 'value', 'chargeRate_kmph'], tsoff=-1
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'actualChargeRate' with value=5, tsoff=-1, loc=['charging', 'chargingStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'chargingMode' at location=['charging', 'chargingStatus', 'value', 'chargeType'], tsoff=-1
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'chargingMode' with value=ac, tsoff=-1, loc=['charging', 'chargingStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'targetstateOfCharge' at location=['charging', 'chargingSettings', 'value', 'targetSOC_pct'], tsoff=-1
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'targetstateOfCharge' with value=100, tsoff=-1, loc=['charging', 'chargingSettings', 'value', 'carCapturedTimestamp'], ts=2024-11-13 09:16:11+00:00
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'plugState' at location=['charging', 'plugStatus', 'value', 'plugConnectionState'], tsoff=-1
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'plugState' with value=connected, tsoff=-1, loc=['charging', 'plugStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 09:16:00+00:00
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'remainingChargingTime' at location=['charging', 'chargingStatus', 'value', 'remainingChargingTimeToComplete_min'], tsoff=-1
2024-11-13 15:04:04.442 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'remainingChargingTime' with value=830, tsoff=-1, loc=['charging', 'chargingStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 14:02:58+00:00
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'plugLockState' at location=['charging', 'plugStatus', 'value', 'plugLockState'], tsoff=-1
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'plugLockState' with value=locked, tsoff=-1, loc=['charging', 'plugStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 09:16:00+00:00
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'externalPower' at location=['charging', 'plugStatus', 'value', 'externalPower'], tsoff=-1
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'externalPower' with value=active, tsoff=-1, loc=['charging', 'plugStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 09:16:00+00:00
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'plugledColor' at location=['charging', 'plugStatus', 'value', 'ledColor'], tsoff=-1
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'plugledColor' with value=green, tsoff=-1, loc=['charging', 'plugStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 09:16:00+00:00
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'climatisationState' at location=['climatisation', 'auxiliaryHeatingStatus', 'value', 'climatisationState'], tsoff=-1
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Value for 'climatisationState' is None; not appending state.
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'climatisationState' at location=['climatisation', 'climatisationStatus', 'value', 'climatisationState'], tsoff=-1
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'climatisationState' with value=off, tsoff=-1, loc=['climatisation', 'climatisationStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 00:46:11+00:00
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Searching for 'remainingClimatisationTime' at location=['climatisation', 'climatisationStatus', 'value', 'remainingClimatisationTime_min'], tsoff=-1
2024-11-13 15:04:04.443 DEBUG (MainThread) [custom_components.audiconnect.audi_models] TRY APPEND STATE: Found 'remainingClimatisationTime' with value=0, tsoff=-1, loc=['climatisation', 'climatisationStatus', 'value', 'carCapturedTimestamp'], ts=2024-11-13 00:46:11+00:00
2024-11-13 15:04:04.445 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] TRIP DATA: Trip data support is disabled for VIN: *************5097. Exiting update process.
2024-11-13 15:04:04.445 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] TRIP DATA: Trip data support is disabled for VIN: *************5097. Exiting update process.
2024-11-13 15:04:04.445 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] POSITION: Starting update_vehicle_position for VIN: *************5097
2024-11-13 15:04:04.445 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] POSITION: Attempting to retrieve stored vehicle position for VIN: *************5097
2024-11-13 15:04:05.353 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] POSITION: Vehicle position data received for VIN: *************5097, lat: ##.####, lon: #.######, timestamp: 2024-11-13 00:46:07+00:00, parktime: 2024-11-13 00:46:07+00:00
2024-11-13 15:04:05.353 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] POSITION: Vehicle position updated successfully for VIN: *************5097
2024-11-13 15:04:05.356 DEBUG (MainThread) [custom_components.audiconnect.audi_account] Successfully refreshed cloud data

Your Vehicle Details Model: Q4-45 ETRON Year:2024 Type (Gas/Hybrid/Electric):Electric Region (EU/US/CA/CN):EU

pergolafabio commented 5 days ago

Duplicate , there is already another issue pending, Q4 endpoint is changed

gomble commented 5 days ago

Duplicate , there is already another issue pending, Q4 endpoint is changed

Can you link the pending issue?

pergolafabio commented 5 days ago

Sure... https://github.com/audiconnect/audi_connect_ha/issues/450

I copy pasted some example code that you can overwrite, to make it work again ...