mirror of https://github.com/home-assistant/core
327 lines
14 KiB
Plaintext
327 lines
14 KiB
Plaintext
# serializer version: 1
|
|
# name: test_config_entry_diagnostics
|
|
dict({
|
|
'config_entry': dict({
|
|
'country': 'USA',
|
|
'device_id': '**REDACTED**',
|
|
'password': '**REDACTED**',
|
|
'pin': '**REDACTED**',
|
|
'username': '**REDACTED**',
|
|
}),
|
|
'data': list([
|
|
dict({
|
|
'vehicle_status': dict({
|
|
'AVG_FUEL_CONSUMPTION': 51.1,
|
|
'DISTANCE_TO_EMPTY_FUEL': 170,
|
|
'DOOR_BOOT_POSITION': 'CLOSED',
|
|
'DOOR_ENGINE_HOOD_POSITION': 'CLOSED',
|
|
'DOOR_FRONT_LEFT_POSITION': 'CLOSED',
|
|
'DOOR_FRONT_RIGHT_POSITION': 'CLOSED',
|
|
'DOOR_REAR_LEFT_POSITION': 'CLOSED',
|
|
'DOOR_REAR_RIGHT_POSITION': 'CLOSED',
|
|
'EV_CHARGER_STATE_TYPE': 'CHARGING',
|
|
'EV_CHARGE_SETTING_AMPERE_TYPE': 'MAXIMUM',
|
|
'EV_CHARGE_VOLT_TYPE': 'CHARGE_LEVEL_1',
|
|
'EV_DISTANCE_TO_EMPTY': 1,
|
|
'EV_IS_PLUGGED_IN': 'UNLOCKED_CONNECTED',
|
|
'EV_STATE_OF_CHARGE_MODE': 'EV_MODE',
|
|
'EV_STATE_OF_CHARGE_PERCENT': 20,
|
|
'EV_TIME_TO_FULLY_CHARGED_UTC': '2020-07-24T03:06:40+00:00',
|
|
'LATITUDE': '**REDACTED**',
|
|
'LONGITUDE': '**REDACTED**',
|
|
'ODOMETER': '**REDACTED**',
|
|
'TIMESTAMP': 1595560000.0,
|
|
'TRANSMISSION_MODE': 'UNKNOWN',
|
|
'TYRE_PRESSURE_FRONT_LEFT': 0.0,
|
|
'TYRE_PRESSURE_FRONT_RIGHT': 31.9,
|
|
'TYRE_PRESSURE_REAR_LEFT': 32.6,
|
|
'TYRE_PRESSURE_REAR_RIGHT': None,
|
|
'VEHICLE_STATE_TYPE': 'IGNITION_OFF',
|
|
'WINDOW_BACK_STATUS': 'UNKNOWN',
|
|
'WINDOW_FRONT_LEFT_STATUS': 'VENTED',
|
|
'WINDOW_FRONT_RIGHT_STATUS': 'VENTED',
|
|
'WINDOW_REAR_LEFT_STATUS': 'UNKNOWN',
|
|
'WINDOW_REAR_RIGHT_STATUS': 'UNKNOWN',
|
|
'WINDOW_SUNROOF_STATUS': 'UNKNOWN',
|
|
}),
|
|
}),
|
|
]),
|
|
'options': dict({
|
|
'update_enabled': True,
|
|
}),
|
|
})
|
|
# ---
|
|
# name: test_device_diagnostics
|
|
dict({
|
|
'config_entry': dict({
|
|
'country': 'USA',
|
|
'device_id': '**REDACTED**',
|
|
'password': '**REDACTED**',
|
|
'pin': '**REDACTED**',
|
|
'username': '**REDACTED**',
|
|
}),
|
|
'data': dict({
|
|
'vehicle_status': dict({
|
|
'AVG_FUEL_CONSUMPTION': 51.1,
|
|
'DISTANCE_TO_EMPTY_FUEL': 170,
|
|
'DOOR_BOOT_POSITION': 'CLOSED',
|
|
'DOOR_ENGINE_HOOD_POSITION': 'CLOSED',
|
|
'DOOR_FRONT_LEFT_POSITION': 'CLOSED',
|
|
'DOOR_FRONT_RIGHT_POSITION': 'CLOSED',
|
|
'DOOR_REAR_LEFT_POSITION': 'CLOSED',
|
|
'DOOR_REAR_RIGHT_POSITION': 'CLOSED',
|
|
'EV_CHARGER_STATE_TYPE': 'CHARGING',
|
|
'EV_CHARGE_SETTING_AMPERE_TYPE': 'MAXIMUM',
|
|
'EV_CHARGE_VOLT_TYPE': 'CHARGE_LEVEL_1',
|
|
'EV_DISTANCE_TO_EMPTY': 1,
|
|
'EV_IS_PLUGGED_IN': 'UNLOCKED_CONNECTED',
|
|
'EV_STATE_OF_CHARGE_MODE': 'EV_MODE',
|
|
'EV_STATE_OF_CHARGE_PERCENT': 20,
|
|
'EV_TIME_TO_FULLY_CHARGED_UTC': '2020-07-24T03:06:40+00:00',
|
|
'LATITUDE': '**REDACTED**',
|
|
'LONGITUDE': '**REDACTED**',
|
|
'ODOMETER': '**REDACTED**',
|
|
'TIMESTAMP': 1595560000.0,
|
|
'TRANSMISSION_MODE': 'UNKNOWN',
|
|
'TYRE_PRESSURE_FRONT_LEFT': 0.0,
|
|
'TYRE_PRESSURE_FRONT_RIGHT': 31.9,
|
|
'TYRE_PRESSURE_REAR_LEFT': 32.6,
|
|
'TYRE_PRESSURE_REAR_RIGHT': None,
|
|
'VEHICLE_STATE_TYPE': 'IGNITION_OFF',
|
|
'WINDOW_BACK_STATUS': 'UNKNOWN',
|
|
'WINDOW_FRONT_LEFT_STATUS': 'VENTED',
|
|
'WINDOW_FRONT_RIGHT_STATUS': 'VENTED',
|
|
'WINDOW_REAR_LEFT_STATUS': 'UNKNOWN',
|
|
'WINDOW_REAR_RIGHT_STATUS': 'UNKNOWN',
|
|
'WINDOW_SUNROOF_STATUS': 'UNKNOWN',
|
|
}),
|
|
}),
|
|
'options': dict({
|
|
'update_enabled': True,
|
|
}),
|
|
'raw_data': dict({
|
|
'climatePresetSettings': dict({
|
|
'data': list([
|
|
'{"name": "Auto", "runTimeMinutes": "10", "climateZoneFrontTemp": "74", "climateZoneFrontAirMode": "AUTO", "climateZoneFrontAirVolume": "AUTO", "outerAirCirculation": "auto", "heatedRearWindowActive": "false", "airConditionOn": "false", "heatedSeatFrontLeft": "off", "heatedSeatFrontRight": "off", "startConfiguration": "START_ENGINE_ALLOW_KEY_IN_IGNITION", "canEdit": "true", "disabled": "false", "vehicleType": "gas", "presetType": "subaruPreset" }',
|
|
'{"name":"Full Cool","runTimeMinutes":"10","climateZoneFrontTemp":"60","climateZoneFrontAirMode":"feet_face_balanced","climateZoneFrontAirVolume":"7","airConditionOn":"true","heatedSeatFrontLeft":"high_cool","heatedSeatFrontRight":"high_cool","heatedRearWindowActive":"false","outerAirCirculation":"outsideAir","startConfiguration":"START_ENGINE_ALLOW_KEY_IN_IGNITION","canEdit":"true","disabled":"true","vehicleType":"gas","presetType":"subaruPreset"}',
|
|
'{"name": "Full Heat", "runTimeMinutes": "10", "climateZoneFrontTemp": "85", "climateZoneFrontAirMode": "feet_window", "climateZoneFrontAirVolume": "7", "airConditionOn": "false", "heatedSeatFrontLeft": "high_heat", "heatedSeatFrontRight": "high_heat", "heatedRearWindowActive": "true", "outerAirCirculation": "outsideAir", "startConfiguration": "START_ENGINE_ALLOW_KEY_IN_IGNITION", "canEdit": "true", "disabled": "true", "vehicleType": "gas", "presetType": "subaruPreset" }',
|
|
'{"name": "Full Cool", "runTimeMinutes": "10", "climateZoneFrontTemp": "60", "climateZoneFrontAirMode": "feet_face_balanced", "climateZoneFrontAirVolume": "7", "airConditionOn": "true", "heatedSeatFrontLeft": "OFF", "heatedSeatFrontRight": "OFF", "heatedRearWindowActive": "false", "outerAirCirculation": "outsideAir", "startConfiguration": "START_CLIMATE_CONTROL_ONLY_ALLOW_KEY_IN_IGNITION", "canEdit": "true", "disabled": "true", "vehicleType": "phev", "presetType": "subaruPreset" }',
|
|
'{"name": "Full Heat", "runTimeMinutes": "10", "climateZoneFrontTemp": "85", "climateZoneFrontAirMode": "feet_window", "climateZoneFrontAirVolume": "7", "airConditionOn": "false", "heatedSeatFrontLeft": "high_heat", "heatedSeatFrontRight": "high_heat", "heatedRearWindowActive": "true", "outerAirCirculation": "outsideAir", "startConfiguration": "START_CLIMATE_CONTROL_ONLY_ALLOW_KEY_IN_IGNITION", "canEdit": "true", "disabled": "true", "vehicleType": "phev", "presetType": "subaruPreset" }',
|
|
]),
|
|
'dataName': None,
|
|
'errorCode': None,
|
|
'success': True,
|
|
}),
|
|
'condition': dict({
|
|
'data': dict({
|
|
'cancelled': False,
|
|
'errorCode': None,
|
|
'errorDescription': None,
|
|
'remoteServiceState': 'finished',
|
|
'remoteServiceType': 'condition',
|
|
'result': dict({
|
|
'avgFuelConsumption': None,
|
|
'avgFuelConsumptionUnit': 'MPG',
|
|
'distanceToEmptyFuel': None,
|
|
'distanceToEmptyFuelUnit': 'MILES',
|
|
'doorBootPosition': 'CLOSED',
|
|
'doorEngineHoodPosition': 'CLOSED',
|
|
'doorFrontLeftPosition': 'CLOSED',
|
|
'doorFrontRightPosition': 'CLOSED',
|
|
'doorRearLeftPosition': 'CLOSED',
|
|
'doorRearRightPosition': 'CLOSED',
|
|
'evChargerStateType': 'CHARGING_STOPPED',
|
|
'evDistanceToEmpty': 17,
|
|
'evDistanceToEmptyUnit': 'MILES',
|
|
'evIsPluggedIn': 'UNLOCKED_CONNECTED',
|
|
'evStateOfChargeMode': 'EV_MODE',
|
|
'evStateOfChargePercent': '100',
|
|
'evTimeToFullyCharged': '65535',
|
|
'lastUpdatedTime': '2020-07-24T03:06:00+0000',
|
|
'odometer': '**REDACTED**',
|
|
'odometerUnit': 'MILES',
|
|
'remainingFuelPercent': None,
|
|
'tirePressureFrontLeft': None,
|
|
'tirePressureFrontLeftUnit': 'PSI',
|
|
'tirePressureFrontRight': None,
|
|
'tirePressureFrontRightUnit': 'PSI',
|
|
'tirePressureRearLeft': None,
|
|
'tirePressureRearLeftUnit': 'PSI',
|
|
'tirePressureRearRight': None,
|
|
'tirePressureRearRightUnit': 'PSI',
|
|
'vehicleStateType': 'IGNITION_OFF',
|
|
'windowFrontLeftStatus': 'VENTED',
|
|
'windowFrontRightStatus': 'VENTED',
|
|
'windowRearLeftStatus': 'UNKNOWN',
|
|
'windowRearRightStatus': 'UNKNOWN',
|
|
'windowSunroofStatus': 'UNKNOWN',
|
|
}),
|
|
'serviceRequestId': None,
|
|
'subState': None,
|
|
'success': True,
|
|
'updateTime': None,
|
|
'vin': '**REDACTED**',
|
|
}),
|
|
'dataName': 'remoteServiceStatus',
|
|
'errorCode': None,
|
|
'success': True,
|
|
}),
|
|
'locate': dict({
|
|
'data': dict({
|
|
'cancelled': False,
|
|
'errorCode': None,
|
|
'errorDescription': None,
|
|
'remoteServiceState': 'finished',
|
|
'remoteServiceType': 'locate',
|
|
'result': dict({
|
|
'heading': None,
|
|
'latitude': '**REDACTED**',
|
|
'locationTimestamp': 1595560000000,
|
|
'longitude': '**REDACTED**',
|
|
'speed': None,
|
|
}),
|
|
'serviceRequestId': None,
|
|
'subState': None,
|
|
'success': True,
|
|
'updateTime': None,
|
|
'vin': '**REDACTED**',
|
|
}),
|
|
'dataName': 'remoteServiceStatus',
|
|
'errorCode': None,
|
|
'success': True,
|
|
}),
|
|
'remoteEngineStartSettings': dict({
|
|
'data': '{"name": "Full Heat", "runTimeMinutes": "10", "climateZoneFrontTemp": "85", "climateZoneFrontAirMode": "feet_window", "climateZoneFrontAirVolume": "7", "airConditionOn": "false", "heatedSeatFrontLeft": "high_heat", "heatedSeatFrontRight": "high_heat", "heatedRearWindowActive": "true", "outerAirCirculation": "outsideAir", "startConfiguration": "START_CLIMATE_CONTROL_ONLY_ALLOW_KEY_IN_IGNITION", "canEdit": "true", "disabled": "true", "vehicleType": "phev", "presetType": "subaruPreset" }',
|
|
'dataName': None,
|
|
'errorCode': None,
|
|
'success': True,
|
|
}),
|
|
'switchVehicle': dict({
|
|
'accessLevel': 1,
|
|
'active': True,
|
|
'authorizedVehicle': True,
|
|
'cachedStateCode': '**REDACTED**',
|
|
'crmRightToRepair': False,
|
|
'customer': '**REDACTED**',
|
|
'email': '**REDACTED**',
|
|
'engineSize': 2.0,
|
|
'extDescrip': 'Cool-Gray Khaki',
|
|
'features': list([
|
|
'ABS_MIL',
|
|
'AHBL_MIL',
|
|
'ATF_MIL',
|
|
'AWD_MIL',
|
|
'BSD',
|
|
'BSDRCT_MIL',
|
|
'CEL_MIL',
|
|
'EBD_MIL',
|
|
'EOL_MIL',
|
|
'EPAS_MIL',
|
|
'EPB_MIL',
|
|
'ESS_MIL',
|
|
'EYESIGHT',
|
|
'HEVCM_MIL',
|
|
'HEV_MIL',
|
|
'NAV_TOMTOM',
|
|
'OPL_MIL',
|
|
'PHEV',
|
|
'RAB_MIL',
|
|
'RCC',
|
|
'REARBRK',
|
|
'RPOIA',
|
|
'SRS_MIL',
|
|
'TEL_MIL',
|
|
'TIF_36',
|
|
'TIR_35',
|
|
'TPMS_MIL',
|
|
'VDC_MIL',
|
|
'WASH_MIL',
|
|
'g2',
|
|
]),
|
|
'firstName': '**REDACTED**',
|
|
'intDescrip': 'Navy',
|
|
'lastName': '**REDACTED**',
|
|
'licensePlate': '**REDACTED**',
|
|
'licensePlateState': '**REDACTED**',
|
|
'modelCode': 'KRH',
|
|
'modelName': 'Crosstrek',
|
|
'modelYear': '2019',
|
|
'needEmergencyContactPrompt': False,
|
|
'needMileagePrompt': False,
|
|
'nickname': '**REDACTED**',
|
|
'oemCustId': '**REDACTED**',
|
|
'phev': None,
|
|
'phone': '**REDACTED**',
|
|
'preferredDealer': '**REDACTED**',
|
|
'provisioned': True,
|
|
'remoteServicePinExist': True,
|
|
'show3gSunsetBanner': False,
|
|
'stolenVehicle': False,
|
|
'subscriptionFeatures': list([
|
|
'REMOTE',
|
|
'SAFETY',
|
|
'RetailPHEV',
|
|
]),
|
|
'subscriptionPlans': list([
|
|
]),
|
|
'subscriptionStatus': 'ACTIVE',
|
|
'sunsetUpgraded': True,
|
|
'timeZone': '**REDACTED**',
|
|
'transCode': 'CVT',
|
|
'userOemCustId': '**REDACTED**',
|
|
'vehicleGeoPosition': '**REDACTED**',
|
|
'vehicleKey': '**REDACTED**',
|
|
'vehicleMileage': '**REDACTED**',
|
|
'vehicleName': '**REDACTED**',
|
|
'vin': '**REDACTED**',
|
|
'zip': '**REDACTED**',
|
|
}),
|
|
'vehicleStatus': dict({
|
|
'data': dict({
|
|
'avgFuelConsumptionLitersPer100Kilometers': 4.5,
|
|
'avgFuelConsumptionMpg': 52.3,
|
|
'distanceToEmptyFuelKilometers': 852,
|
|
'distanceToEmptyFuelKilometers10s': 850,
|
|
'distanceToEmptyFuelMiles': 529.41,
|
|
'distanceToEmptyFuelMiles10s': 530,
|
|
'evDistanceToEmptyByStateKilometers': None,
|
|
'evDistanceToEmptyByStateMiles': None,
|
|
'evDistanceToEmptyKilometers': 852,
|
|
'evDistanceToEmptyMiles': 529.41,
|
|
'evStateOfChargePercent': 14,
|
|
'eventDate': 1595560000000,
|
|
'eventDateStr': '2020-07-24T03:06+0000',
|
|
'latitude': '**REDACTED**',
|
|
'longitude': '**REDACTED**',
|
|
'odometerValue': '**REDACTED**',
|
|
'odometerValueKilometers': '**REDACTED**',
|
|
'positionHeadingDegree': '261',
|
|
'remainingFuelPercent': None,
|
|
'tirePressureFrontLeft': '2600',
|
|
'tirePressureFrontLeftPsi': '37.71',
|
|
'tirePressureFrontRight': '2700',
|
|
'tirePressureFrontRightPsi': '39.16',
|
|
'tirePressureRearLeft': '2650',
|
|
'tirePressureRearLeftPsi': '38.44',
|
|
'tirePressureRearRight': '2650',
|
|
'tirePressureRearRightPsi': '38.44',
|
|
'tyreStatusFrontLeft': 'UNKNOWN',
|
|
'tyreStatusFrontRight': 'UNKNOWN',
|
|
'tyreStatusRearLeft': 'UNKNOWN',
|
|
'tyreStatusRearRight': 'UNKNOWN',
|
|
'vehicleStateType': 'IGNITION_OFF',
|
|
'vhsId': '**REDACTED**',
|
|
'windowFrontLeftStatus': 'VENTED',
|
|
'windowFrontRightStatus': 'VENTED',
|
|
'windowRearLeftStatus': 'UNKNOWN',
|
|
'windowRearRightStatus': 'UNKNOWN',
|
|
'windowSunroofStatus': 'UNKNOWN',
|
|
}),
|
|
'dataName': None,
|
|
'errorCode': None,
|
|
'success': True,
|
|
}),
|
|
}),
|
|
})
|
|
# ---
|