robinostlund / homeassistant-volkswagencarnet

Volkswagen Carnet Component for home assistant
GNU General Public License v3.0
303 stars 61 forks source link

KeyError: 'measurements' #598

Closed jthun closed 4 months ago

jthun commented 4 months ago

Before you post a new issue - you must first check the following (and check the boxes with an "X" below)

Environment

Describe the bug

Getting Error doing job: Task exception was never retrieved in the HA log. I can't say if it effects anything. The entities seem to work, except "Electric range" that is unavailable.

Steps to Reproduce

Occurs frequently. Probably on every poll.

Expected behavior

Screenshots

Traceback/Error logs

2024-03-06 17:43:59.942 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://emea.bff.cariad.digital/vehicle/v2/vehicles" returned with status code [200]
2024-03-06 17:43:59.942 DEBUG (MainThread) [volkswagencarnet.vw_connection] Found vehicle(s) associated with account.
2024-03-06 17:43:59.943 DEBUG (MainThread) [volkswagencarnet.vw_connection] Going to call vehicle updates
2024-03-06 17:43:59.943 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Attempting discovery of supported API endpoints for vehicle.
2024-03-06 17:43:59.944 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://emea.bff.cariad.digital/vehicle/v1/vehicles/<REDACTED>/capabilities"
2024-03-06 17:44:00.027 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://emea.bff.cariad.digital/vehicle/v1/vehicles/<REDACTED>/capabilities" returned with status code [200]
2024-03-06 17:44:00.027 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Discovered enabled service: fuelStatus
2024-03-06 17:44:00.027 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Discovered enabled service: charging
2024-03-06 17:44:00.027 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Discovered enabled service: climatisationTimers
2024-03-06 17:44:00.027 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Discovered enabled service: climatisation
2024-03-06 17:44:00.028 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] API endpoints: {'access': {'active': False}, 'batteryChargingCare': {'active': False}, 'batterySupport': {'active': False}, 'charging': {'active': True, 'expiration': datetime.datetime(2025, 4, 25, 23, 59, 59, tzinfo=datetime.timezone.utc), 'operations': ['getChargingMode', 'putChargingMode', 'getChargingSettings', 'postChargingStart', 'postChargingStop', 'getChargingCareStatus', 'getChargingRequestsByID', 'putChargingSettings', 'getChargingStatus'], 'parameters': [{'key': 'allowPlugUnlockACPermanent', 'value': 'true'}, {'key': 'allowPlugUnlockACOnce', 'value': 'true'}, {'key': 'allowPlugUnlockDCPermanent', 'value': 'false'}, {'key': 'allowPlugUnlockDCOnce', 'value': 'false'}, {'key': 'supportsTargetStateOfCharge', 'value': ''}, {'key': 'targetStateOfChargeMinimumAllowedValue', 'value': ''}, {'key': 'targetStateOfChargeStepSize', 'value': ''}]}, 'climatisation': {'active': True, 'expiration': datetime.datetime(2025, 4, 25, 23, 59, 59, tzinfo=datetime.timezone.utc), 'operations': ['postClimatisationStop', 'getClimatisationStatus', 'getClimatisationSettings', 'putClimatisationSettings', 'postClimatisationStart', 'getWindowheatingRequestsByID', 'postWindowheatingStart', 'postWindowheatingStop', 'getClimatisationRequestsByID'], 'parameters': [{'key': 'supportsTargetTemperatureInStartClimatisation', 'value': ''}, {'key': 'supportsTargetTemperatureInSettings', 'value': ''}, {'key': 'supportsClimatisationAtUnlock', 'value': 'false'}, {'key': 'supportsWindowHeatingEnabled', 'value': 'true'}, {'key': 'supportsZoneFrontLeftEnabled', 'value': ''}, {'key': 'supportsZoneFrontRightEnabled', 'value': ''}, {'key': 'supportsZoneRearLeftEnabled', 'value': ''}, {'key': 'supportsZoneRearRightEnabled', 'value': ''}, {'key': 'supportsClimatisationMode', 'value': ''}, {'key': 'supportsOffGridClimatisation', 'value': 'false'}, {'key': 'supportsStartParallelClimatisationWindowHeating', 'value': 'true'}]}, 'climatisationTimers': {'active': True, 'expiration': datetime.datetime(2025, 4, 25, 23, 59, 59, tzinfo=datetime.timezone.utc), 'operations': ['getClimatisationTimers', 'putClimatisationTimers'], 'parameters': [{'key': 'timerStepSizeInMinutes', 'value': ''}, {'key': 'supportsSingleTimer', 'value': 'true'}, {'key': 'supportsRepeatingTimer', 'value': ''}, {'key': 'allowedSchedulingIntervalInDays', 'value': ''}, {'key': 'multipleActiveTimersAllowed', 'value': ''}, {'key': 'timeZoneReference', 'value': ''}]}, 'departureProfiles': {'active': False}, 'departureTimers': {'active': False}, 'fuelStatus': {'active': True, 'expiration': datetime.datetime(2025, 4, 25, 23, 59, 59, tzinfo=datetime.timezone.utc), 'operations': ['getFuelStatus']}, 'honkAndFlash': {'active': False}, 'measurements': {'active': False}, 'parkingPosition': {'active': False}, 'tripStatistics': {'active': False}, 'userCapabilities': {'active': False}, 'parameters': {'customerversionInfo': '2.3', 'supportsStartWindowHeating': 'false', 'versionInfo': '2.3.0', 'RPC_zoneSettingSupportedDR': 'false', 'RPC_zoneSettingSupportedFL': 'true', 'RPT_supportsVehiclePositionedInProfileID': 'False', 'isVoLTE': 'false', 'RPC_zoneSettingSupportedDL': 'false', 'RPC_zoneSettingSupportedFR': 'true', 'RPC_zoneSettingSupportedRR': 'false', 'no_parallel_start_clima_wh': 'true', 'RPC_zoneSettingSupportedRL': 'false', 'isCdisEquipped': 'false', 'primaryEngine': 'electric'}}
2024-03-06 17:44:00.028 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://emea.bff.cariad.digital/vehicle/v1/vehicles/<REDACTED>/selectivestatus?jobs=access,batteryChargingCare,batterySupport,charging,climatisation,climatisationTimers,departureProfiles,departureTimers,fuelStatus,measurements,vehicleLights,vehicleHealthInspection,userCapabilities"
2024-03-06 17:44:00.032 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://emea.bff.cariad.digital/vehicle/v2/vehicles"
2024-03-06 17:44:01.250 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://emea.bff.cariad.digital/vehicle/v2/vehicles" returned with status code [200]
2024-03-06 17:44:02.123 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://emea.bff.cariad.digital/vehicle/v1/vehicles/<REDACTED>/selectivestatus?jobs=access,batteryChargingCare,batterySupport,charging,climatisation,climatisationTimers,departureProfiles,departureTimers,fuelStatus,measurements,vehicleLights,vehicleHealthInspection,userCapabilities" returned with status code [207]
2024-03-06 17:44:02.124 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service access. (This is expected for several service/car combinations)
2024-03-06 17:44:02.124 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service batteryChargingCare. (This is expected for several service/car combinations)
2024-03-06 17:44:02.124 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service batterySupport. (This is expected for several service/car combinations)
2024-03-06 17:44:02.124 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service departureProfiles. (This is expected for several service/car combinations)
2024-03-06 17:44:02.124 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service departureTimers. (This is expected for several service/car combinations)
2024-03-06 17:44:02.124 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service measurements. (This is expected for several service/car combinations)
2024-03-06 17:44:02.124 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service vehicleLights. (This is expected for several service/car combinations)
2024-03-06 17:44:02.124 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service vehicleHealthInspection. (This is expected for several service/car combinations)
2024-03-06 17:44:02.125 DEBUG (MainThread) [volkswagencarnet.vw_connection] Getting API status updates
2024-03-06 17:44:02.129 DEBUG (MainThread) [volkswagencarnet.vw_connection] Going to call vehicle updates
2024-03-06 17:44:02.129 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://emea.bff.cariad.digital/vehicle/v1/vehicles/<REDACTED>/selectivestatus?jobs=access,batteryChargingCare,batterySupport,charging,climatisation,climatisationTimers,departureProfiles,departureTimers,fuelStatus,measurements,vehicleLights,vehicleHealthInspection,userCapabilities"
2024-03-06 17:44:02.131 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://emea.bff.cariad.digital/vehicle/v2/vehicles"
2024-03-06 17:44:02.551 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://emea.bff.cariad.digital/vehicle/v2/vehicles" returned with status code [200]
2024-03-06 17:44:03.723 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://emea.bff.cariad.digital/vehicle/v1/vehicles/<REDACTED>/selectivestatus?jobs=access,batteryChargingCare,batterySupport,charging,climatisation,climatisationTimers,departureProfiles,departureTimers,fuelStatus,measurements,vehicleLights,vehicleHealthInspection,userCapabilities" returned with status code [207]
2024-03-06 17:44:03.724 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service access. (This is expected for several service/car combinations)
2024-03-06 17:44:03.724 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service batteryChargingCare. (This is expected for several service/car combinations)
2024-03-06 17:44:03.724 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service batterySupport. (This is expected for several service/car combinations)
2024-03-06 17:44:03.724 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service departureProfiles. (This is expected for several service/car combinations)
2024-03-06 17:44:03.724 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service departureTimers. (This is expected for several service/car combinations)
2024-03-06 17:44:03.724 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service measurements. (This is expected for several service/car combinations)
2024-03-06 17:44:03.724 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service vehicleLights. (This is expected for several service/car combinations)
2024-03-06 17:44:03.724 DEBUG (MainThread) [volkswagencarnet.vw_connection] Did not receive return data for requested service vehicleHealthInspection. (This is expected for several service/car combinations)
2024-03-06 17:44:03.727 DEBUG (MainThread) [volkswagencarnet.vw_connection] Getting API status updates
2024-03-06 17:44:03.729 DEBUG (MainThread) [custom_components.volkswagencarnet] Updating data from volkswagen WeConnect
2024-03-06 17:44:03.729 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] Setting up dashboard with config :{'mutable': True, 'spin': '', 'miles': False, 'scandinavian_miles': False}
2024-03-06 17:44:03.730 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Position (Position:position) is not supported
2024-03-06 17:44:03.731 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Battery target charge level is supported
2024-03-06 17:44:03.732 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Climatisation target temperature is supported
2024-03-06 17:44:03.734 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Door locked (DoorLock:door_locked) is not supported
2024-03-06 17:44:03.735 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Trunk locked (TrunkLock:trunk_locked) is not supported
2024-03-06 17:44:03.735 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Force data refresh is supported
2024-03-06 17:44:03.737 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Window Heater (WindowHeater:window_heater) is not supported
2024-03-06 17:44:03.737 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Climatisation from battery (BatteryClimatisation:climatisation_without_external_power) is not supported
2024-03-06 17:44:03.737 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Auxiliary air conditioning is supported
2024-03-06 17:44:03.739 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Automatic window heating is supported
2024-03-06 17:44:03.740 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Zone Front Left is supported
2024-03-06 17:44:03.742 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Zone Front Right is supported
2024-03-06 17:44:03.744 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Electric Climatisation is supported
2024-03-06 17:44:03.745 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Auxiliary Climatisation (AuxiliaryClimatisation:auxiliary_climatisation) is not supported
2024-03-06 17:44:03.745 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Charging is supported
2024-03-06 17:44:03.746 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Reduced AC Charging is supported
2024-03-06 17:44:03.747 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Auto-release AC connector is supported
2024-03-06 17:44:03.752 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Battery care mode (BatteryCareMode:battery_care_mode) is not supported
2024-03-06 17:44:03.752 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Optimised battery use (OptimisedBatteryUse:optimised_battery_use) is not supported
2024-03-06 17:44:03.753 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Departure Timer 1 (DepartureTimer:departure_timer1) is not supported
2024-03-06 17:44:03.753 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Departure Timer 2 (DepartureTimer:departure_timer2) is not supported
2024-03-06 17:44:03.753 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Departure Timer 3 (DepartureTimer:departure_timer3) is not supported
2024-03-06 17:44:03.753 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> AC Departure Timer 1 is supported
2024-03-06 17:44:03.755 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> AC Departure Timer 2 is supported
2024-03-06 17:44:03.755 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Request results is supported
2024-03-06 17:44:03.759 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Odometer (Sensor:distance) is not supported
2024-03-06 17:44:03.759 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Battery level is supported
2024-03-06 17:44:03.761 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Battery target charge level is supported
2024-03-06 17:44:03.761 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Adblue level (Sensor:adblue_level) is not supported
2024-03-06 17:44:03.761 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Fuel level (Sensor:fuel_level) is not supported
2024-03-06 17:44:03.761 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Service inspection days (Sensor:service_inspection) is not supported
2024-03-06 17:44:03.761 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Service inspection distance (Sensor:service_inspection_distance) is not supported
2024-03-06 17:44:03.761 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Oil inspection days (Sensor:oil_inspection) is not supported
2024-03-06 17:44:03.762 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Oil inspection distance (Sensor:oil_inspection_distance) is not supported
2024-03-06 17:44:03.762 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last connected is supported
2024-03-06 17:44:03.762 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Parking time (Sensor:parking_time) is not supported
2024-03-06 17:44:03.762 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Charging time left is supported
2024-03-06 17:44:03.762 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Electric range is supported
2024-03-06 17:44:03.762 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Combustion range (Sensor:combustion_range) is not supported
2024-03-06 17:44:03.762 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Combined range (Sensor:combined_range) is not supported
2024-03-06 17:44:03.762 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Battery cruising range is supported
2024-03-06 17:44:03.762 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Charger max AC setting is supported
2024-03-06 17:44:03.762 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Charger max AC ampere (Sensor:charge_max_ac_ampere) is not supported
2024-03-06 17:44:03.763 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Charging Power is supported
2024-03-06 17:44:03.763 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Charging Rate is supported
2024-03-06 17:44:03.763 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Charger Type is supported
2024-03-06 17:44:03.763 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Climatisation target temperature is supported
2024-03-06 17:44:03.763 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last trip average speed (Sensor:trip_last_average_speed) is not supported
2024-03-06 17:44:03.763 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last trip average electric engine consumption (Sensor:trip_last_average_electric_engine_consumption) is not supported
2024-03-06 17:44:03.763 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last trip average fuel consumption (Sensor:trip_last_average_fuel_consumption) is not supported
2024-03-06 17:44:03.763 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last trip duration (Sensor:trip_last_duration) is not supported
2024-03-06 17:44:03.763 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last trip length (Sensor:trip_last_length) is not supported
2024-03-06 17:44:03.763 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last trip recuperation (Sensor:trip_last_recuperation) is not supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last trip average recuperation (Sensor:trip_last_average_recuperation) is not supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last trip average auxillary consumption (Sensor:trip_last_average_auxillary_consumption) is not supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last trip average auxillary consumer consumption (Sensor:trip_last_average_aux_consumer_consumption) is not supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last trip total electric consumption (Sensor:trip_last_total_electric_consumption) is not supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Auxiliary Heater heating/ventilation duration (Sensor:auxiliary_duration) is not supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Auxiliary remaining climatisation time (Sensor:auxiliary_remaining_climatisation_time) is not supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Electric remaining climatisation time is supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Car Type is supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> API vehicles is supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> API capabilities is supported
2024-03-06 17:44:03.764 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> API trips (Sensor:api_trips_status) is not supported
2024-03-06 17:44:03.765 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> API selectivestatus is supported
2024-03-06 17:44:03.765 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> API parkingposition (Sensor:api_parkingposition_status) is not supported
2024-03-06 17:44:03.765 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> API token is supported
2024-03-06 17:44:03.765 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Last data refresh is supported
2024-03-06 17:44:03.765 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> External power is supported
2024-03-06 17:44:03.766 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Energy flow (BinarySensor:energy_flow) is not supported
2024-03-06 17:44:03.766 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Parking light (BinarySensor:parking_light) is not supported
2024-03-06 17:44:03.766 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Doors locked (BinarySensor:door_locked) is not supported
2024-03-06 17:44:03.766 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Doors locked (BinarySensor:door_locked_sensor) is not supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Door closed left front (BinarySensor:door_closed_left_front) is not supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Door closed right front (BinarySensor:door_closed_right_front) is not supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Door closed left back (BinarySensor:door_closed_left_back) is not supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Door closed right back (BinarySensor:door_closed_right_back) is not supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Trunk locked (BinarySensor:trunk_locked) is not supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Trunk locked (BinarySensor:trunk_locked_sensor) is not supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Trunk closed (BinarySensor:trunk_closed) is not supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Hood closed (BinarySensor:hood_closed) is not supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Charging cable connected is supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Charging cable locked is supported
2024-03-06 17:44:03.767 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Sunroof closed (BinarySensor:sunroof_closed) is not supported
2024-03-06 17:44:03.768 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Sunroof Rear closed (BinarySensor:sunroof_rear_closed) is not supported
2024-03-06 17:44:03.768 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Roof cover closed (BinarySensor:roof_cover_closed) is not supported
2024-03-06 17:44:03.768 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Windows closed (BinarySensor:windows_closed) is not supported
2024-03-06 17:44:03.768 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Window closed left front (BinarySensor:window_closed_left_front) is not supported
2024-03-06 17:44:03.768 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Window closed left back (BinarySensor:window_closed_left_back) is not supported
2024-03-06 17:44:03.768 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Window closed right front (BinarySensor:window_closed_right_front) is not supported
2024-03-06 17:44:03.768 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Window closed right back (BinarySensor:window_closed_right_back) is not supported
2024-03-06 17:44:03.768 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Vehicle Moving (BinarySensor:vehicle_moving) is not supported
2024-03-06 17:44:03.768 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] <REDACTED> Request in progress is supported
2024-03-06 17:44:03.769 DEBUG (MainThread) [custom_components.volkswagencarnet] Finished fetching volkswagencarnet data in 1.640 seconds (success: True)
2024-03-06 17:44:03.769 DEBUG (MainThread) [custom_components.volkswagencarnet] Async update finished for <REDACTED> (volkswagencarnet). Next update in 0:05:00.
2024-03-06 17:44:03.813 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of charging_cable_connected
2024-03-06 17:44:03.816 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of charging_cable_locked
2024-03-06 17:44:03.817 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of external_power
2024-03-06 17:44:03.819 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of request_in_progress
2024-03-06 17:44:03.820 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of automatic_window_heating
2024-03-06 17:44:03.821 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of refresh_data
2024-03-06 17:44:03.822 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of ac_departure_timer2
2024-03-06 17:44:03.823 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of electric_climatisation
2024-03-06 17:44:03.824 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of charging
2024-03-06 17:44:03.825 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of ac_departure_timer1
2024-03-06 17:44:03.826 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of auxiliary_air_conditioning
2024-03-06 17:44:03.827 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of auto_release_ac_connector
2024-03-06 17:44:03.828 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of reduced_ac_charging
2024-03-06 17:44:03.828 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of zone_front_right
2024-03-06 17:44:03.829 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of zone_front_left
2024-03-06 17:44:03.831 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of api_selectivestatus_status
2024-03-06 17:44:03.834 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of charging_power
2024-03-06 17:44:03.835 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of request_results
2024-03-06 17:44:03.838 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of climatisation_target_temperature
2024-03-06 17:44:03.840 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of battery_cruising_range
2024-03-06 17:44:03.841 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of battery_level
2024-03-06 17:44:03.843 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of battery_target_charge_level
2024-03-06 17:44:03.844 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of charging_time_left
2024-03-06 17:44:03.846 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of last_connected
2024-03-06 17:44:03.847 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of api_capabilities_status
2024-03-06 17:44:03.849 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of last_data_refresh
2024-03-06 17:44:03.851 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of api_vehicles_status
2024-03-06 17:44:03.852 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of charge_max_ac_setting
2024-03-06 17:44:03.854 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of electric_remaining_climatisation_time
2024-03-06 17:44:03.856 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of api_token_status
2024-03-06 17:44:03.858 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of charging_rate
2024-03-06 17:44:03.860 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of charger_type
2024-03-06 17:44:03.861 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of car_type
2024-03-06 17:44:03.876 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform volkswagencarnet
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 533, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 782, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1325, in add_to_platform_finish
self.async_write_ha_state()
File "/config/custom_components/volkswagencarnet/__init__.py", line 288, in async_write_ha_state
backend_refresh_time = self.instrument.last_refresh
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/volkswagencarnet/vw_dashboard.py", line 110, in last_refresh
if hasattr(self.vehicle, self.attr + "_last_updated"):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/volkswagencarnet/vw_vehicle.py", line 1336, in electric_range_last_updated
return find_path(self.attrs, f"{Services.MEASUREMENTS}.rangeStatus.value.carCapturedTimestamp")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/volkswagencarnet/vw_utilities.py", line 72, in find_path
return find_path(src[path[0]], path[1:])
~~~^^^^^^^^^
KeyError: 'measurements'
2024-03-06 17:44:03.919 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up volkswagencarnet platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 352, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 533, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 782, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1325, in add_to_platform_finish
self.async_write_ha_state()
File "/config/custom_components/volkswagencarnet/__init__.py", line 288, in async_write_ha_state
backend_refresh_time = self.instrument.last_refresh
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/volkswagencarnet/vw_dashboard.py", line 110, in last_refresh
if hasattr(self.vehicle, self.attr + "_last_updated"):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/volkswagencarnet/vw_vehicle.py", line 1336, in electric_range_last_updated
return find_path(self.attrs, f"{Services.MEASUREMENTS}.rangeStatus.value.carCapturedTimestamp")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/volkswagencarnet/vw_utilities.py", line 72, in find_path
return find_path(src[path[0]], path[1:])
~~~^^^^^^^^^
KeyError: 'measurements'

Debug information - all JSON responses from logfile

Additional context

stickpin commented 4 months ago

@jthun the fix will be available in the next version v4.5.8: https://github.com/robinostlund/homeassistant-volkswagencarnet/pull/599#top

jthun commented 4 months ago

Awesome!!

stickpin commented 4 months ago

@jthun v4.5.8 is online.