Use SnapshotAssertion in bmw_connected_drive tests (#90128)
This commit is contained in:
parent
69a46d4002
commit
bec7bbeb92
4 changed files with 2389 additions and 1626 deletions
|
@ -1,803 +0,0 @@
|
||||||
{
|
|
||||||
"info": {
|
|
||||||
"username": "**REDACTED**",
|
|
||||||
"password": "**REDACTED**",
|
|
||||||
"region": "rest_of_world",
|
|
||||||
"refresh_token": "**REDACTED**"
|
|
||||||
},
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"data": {
|
|
||||||
"appVehicleType": "CONNECTED",
|
|
||||||
"attributes": {
|
|
||||||
"a4aType": "USB_ONLY",
|
|
||||||
"bodyType": "I01",
|
|
||||||
"brand": "BMW_I",
|
|
||||||
"color": 4284110934,
|
|
||||||
"countryOfOrigin": "CZ",
|
|
||||||
"driveTrain": "ELECTRIC_WITH_RANGE_EXTENDER",
|
|
||||||
"driverGuideInfo": {
|
|
||||||
"androidAppScheme": "com.bmwgroup.driversguide.row",
|
|
||||||
"androidStoreUrl": "https://play.google.com/store/apps/details?id=com.bmwgroup.driversguide.row",
|
|
||||||
"iosAppScheme": "bmwdriversguide:///open",
|
|
||||||
"iosStoreUrl": "https://apps.apple.com/de/app/id714042749?mt=8"
|
|
||||||
},
|
|
||||||
"headUnitType": "NBT",
|
|
||||||
"hmiVersion": "ID4",
|
|
||||||
"lastFetched": "2022-07-10T09:25:53.104Z",
|
|
||||||
"model": "i3 (+ REX)",
|
|
||||||
"softwareVersionCurrent": {
|
|
||||||
"iStep": 510,
|
|
||||||
"puStep": { "month": 11, "year": 21 },
|
|
||||||
"seriesCluster": "I001"
|
|
||||||
},
|
|
||||||
"softwareVersionExFactory": {
|
|
||||||
"iStep": 502,
|
|
||||||
"puStep": { "month": 3, "year": 15 },
|
|
||||||
"seriesCluster": "I001"
|
|
||||||
},
|
|
||||||
"year": 2015
|
|
||||||
},
|
|
||||||
"mappingInfo": {
|
|
||||||
"isAssociated": false,
|
|
||||||
"isLmmEnabled": false,
|
|
||||||
"isPrimaryUser": true,
|
|
||||||
"mappingStatus": "CONFIRMED"
|
|
||||||
},
|
|
||||||
"vin": "**REDACTED**",
|
|
||||||
"charging_settings": {
|
|
||||||
"chargeAndClimateSettings": {
|
|
||||||
"chargeAndClimateTimer": { "showDepartureTimers": false }
|
|
||||||
},
|
|
||||||
"chargeAndClimateTimerDetail": {
|
|
||||||
"chargingMode": {
|
|
||||||
"chargingPreference": "CHARGING_WINDOW",
|
|
||||||
"endTimeSlot": "0001-01-01T01:30:00",
|
|
||||||
"startTimeSlot": "0001-01-01T18:01:00",
|
|
||||||
"type": "TIME_SLOT"
|
|
||||||
},
|
|
||||||
"departureTimer": {
|
|
||||||
"type": "WEEKLY_DEPARTURE_TIMER",
|
|
||||||
"weeklyTimers": [
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY"
|
|
||||||
],
|
|
||||||
"id": 1,
|
|
||||||
"time": "0001-01-01T07:35:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
],
|
|
||||||
"id": 2,
|
|
||||||
"time": "0001-01-01T18:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [],
|
|
||||||
"id": 3,
|
|
||||||
"time": "0001-01-01T07:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [],
|
|
||||||
"id": 4,
|
|
||||||
"time": "0001-01-01T00:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"isPreconditionForDepartureActive": false
|
|
||||||
},
|
|
||||||
"servicePack": "TCB1"
|
|
||||||
},
|
|
||||||
"is_metric": true,
|
|
||||||
"fetched_at": "2022-07-10T11:00:00+00:00",
|
|
||||||
"capabilities": {
|
|
||||||
"climateFunction": "AIR_CONDITIONING",
|
|
||||||
"climateNow": true,
|
|
||||||
"climateTimerTrigger": "DEPARTURE_TIMER",
|
|
||||||
"horn": true,
|
|
||||||
"isBmwChargingSupported": true,
|
|
||||||
"isCarSharingSupported": false,
|
|
||||||
"isChargeNowForBusinessSupported": false,
|
|
||||||
"isChargingHistorySupported": true,
|
|
||||||
"isChargingHospitalityEnabled": false,
|
|
||||||
"isChargingLoudnessEnabled": false,
|
|
||||||
"isChargingPlanSupported": true,
|
|
||||||
"isChargingPowerLimitEnabled": false,
|
|
||||||
"isChargingSettingsEnabled": false,
|
|
||||||
"isChargingTargetSocEnabled": false,
|
|
||||||
"isClimateTimerSupported": true,
|
|
||||||
"isCustomerEsimSupported": false,
|
|
||||||
"isDCSContractManagementSupported": true,
|
|
||||||
"isDataPrivacyEnabled": false,
|
|
||||||
"isEasyChargeEnabled": false,
|
|
||||||
"isEvGoChargingSupported": false,
|
|
||||||
"isMiniChargingSupported": false,
|
|
||||||
"isNonLscFeatureEnabled": false,
|
|
||||||
"isRemoteEngineStartSupported": false,
|
|
||||||
"isRemoteHistoryDeletionSupported": false,
|
|
||||||
"isRemoteHistorySupported": true,
|
|
||||||
"isRemoteParkingSupported": false,
|
|
||||||
"isRemoteServicesActivationRequired": false,
|
|
||||||
"isRemoteServicesBookingRequired": false,
|
|
||||||
"isScanAndChargeSupported": false,
|
|
||||||
"isSustainabilitySupported": false,
|
|
||||||
"isWifiHotspotServiceSupported": false,
|
|
||||||
"lastStateCallState": "ACTIVATED",
|
|
||||||
"lights": true,
|
|
||||||
"lock": true,
|
|
||||||
"remoteChargingCommands": {},
|
|
||||||
"sendPoi": true,
|
|
||||||
"specialThemeSupport": [],
|
|
||||||
"unlock": true,
|
|
||||||
"vehicleFinder": false,
|
|
||||||
"vehicleStateSource": "LAST_STATE_CALL"
|
|
||||||
},
|
|
||||||
"state": {
|
|
||||||
"chargingProfile": {
|
|
||||||
"chargingControlType": "WEEKLY_PLANNER",
|
|
||||||
"chargingMode": "DELAYED_CHARGING",
|
|
||||||
"chargingPreference": "CHARGING_WINDOW",
|
|
||||||
"chargingSettings": {
|
|
||||||
"hospitality": "NO_ACTION",
|
|
||||||
"idcc": "NO_ACTION",
|
|
||||||
"targetSoc": 100
|
|
||||||
},
|
|
||||||
"climatisationOn": false,
|
|
||||||
"departureTimes": [
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 1,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 35 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 2,
|
|
||||||
"timeStamp": { "hour": 18, "minute": 0 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 3,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 0 },
|
|
||||||
"timerWeekDays": []
|
|
||||||
},
|
|
||||||
{ "action": "DEACTIVATE", "id": 4, "timerWeekDays": [] }
|
|
||||||
],
|
|
||||||
"reductionOfChargeCurrent": {
|
|
||||||
"end": { "hour": 1, "minute": 30 },
|
|
||||||
"start": { "hour": 18, "minute": 1 }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"checkControlMessages": [],
|
|
||||||
"climateTimers": [
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 6, "minute": 40 },
|
|
||||||
"isWeeklyTimer": true,
|
|
||||||
"timerAction": "ACTIVATE",
|
|
||||||
"timerWeekDays": ["THURSDAY", "SUNDAY"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 12, "minute": 50 },
|
|
||||||
"isWeeklyTimer": false,
|
|
||||||
"timerAction": "ACTIVATE",
|
|
||||||
"timerWeekDays": ["MONDAY"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 18, "minute": 59 },
|
|
||||||
"isWeeklyTimer": true,
|
|
||||||
"timerAction": "DEACTIVATE",
|
|
||||||
"timerWeekDays": ["WEDNESDAY"]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"combustionFuelLevel": {
|
|
||||||
"range": 105,
|
|
||||||
"remainingFuelLiters": 6,
|
|
||||||
"remainingFuelPercent": 65
|
|
||||||
},
|
|
||||||
"currentMileage": 137009,
|
|
||||||
"doorsState": {
|
|
||||||
"combinedSecurityState": "UNLOCKED",
|
|
||||||
"combinedState": "CLOSED",
|
|
||||||
"hood": "CLOSED",
|
|
||||||
"leftFront": "CLOSED",
|
|
||||||
"leftRear": "CLOSED",
|
|
||||||
"rightFront": "CLOSED",
|
|
||||||
"rightRear": "CLOSED",
|
|
||||||
"trunk": "CLOSED"
|
|
||||||
},
|
|
||||||
"driverPreferences": { "lscPrivacyMode": "OFF" },
|
|
||||||
"electricChargingState": {
|
|
||||||
"chargingConnectionType": "CONDUCTIVE",
|
|
||||||
"chargingLevelPercent": 82,
|
|
||||||
"chargingStatus": "WAITING_FOR_CHARGING",
|
|
||||||
"chargingTarget": 100,
|
|
||||||
"isChargerConnected": true,
|
|
||||||
"range": 174
|
|
||||||
},
|
|
||||||
"isLeftSteering": true,
|
|
||||||
"isLscSupported": true,
|
|
||||||
"lastFetched": "2022-06-22T14:24:23.982Z",
|
|
||||||
"lastUpdatedAt": "2022-06-22T13:58:52Z",
|
|
||||||
"range": 174,
|
|
||||||
"requiredServices": [
|
|
||||||
{
|
|
||||||
"dateTime": "2022-10-01T00:00:00.000Z",
|
|
||||||
"description": "Next service due by the specified date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "BRAKE_FLUID"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dateTime": "2023-05-01T00:00:00.000Z",
|
|
||||||
"description": "Next vehicle check due after the specified distance or date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "VEHICLE_CHECK"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dateTime": "2023-05-01T00:00:00.000Z",
|
|
||||||
"description": "Next state inspection due by the specified date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "VEHICLE_TUV"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"roofState": { "roofState": "CLOSED", "roofStateType": "SUN_ROOF" },
|
|
||||||
"windowsState": {
|
|
||||||
"combinedState": "CLOSED",
|
|
||||||
"leftFront": "CLOSED",
|
|
||||||
"rightFront": "CLOSED"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fuel_and_battery": {
|
|
||||||
"remaining_range_fuel": [105, "km"],
|
|
||||||
"remaining_range_electric": [174, "km"],
|
|
||||||
"remaining_range_total": [279, "km"],
|
|
||||||
"remaining_fuel": [6, "L"],
|
|
||||||
"remaining_fuel_percent": 65,
|
|
||||||
"remaining_battery_percent": 82,
|
|
||||||
"charging_status": "WAITING_FOR_CHARGING",
|
|
||||||
"charging_start_time_no_tz": "2022-07-10T18:01:00",
|
|
||||||
"charging_end_time": null,
|
|
||||||
"is_charger_connected": true,
|
|
||||||
"charging_target": 100,
|
|
||||||
"account_timezone": {
|
|
||||||
"_std_offset": "0:00:00",
|
|
||||||
"_dst_offset": "0:00:00",
|
|
||||||
"_dst_saved": "0:00:00",
|
|
||||||
"_hasdst": false,
|
|
||||||
"_tznames": ["UTC", "UTC"]
|
|
||||||
},
|
|
||||||
"charging_start_time": "2022-07-10T18:01:00+00:00"
|
|
||||||
},
|
|
||||||
"vehicle_location": {
|
|
||||||
"location": null,
|
|
||||||
"heading": null,
|
|
||||||
"vehicle_update_timestamp": "2022-07-10T09:25:53+00:00",
|
|
||||||
"account_region": "row",
|
|
||||||
"remote_service_position": null
|
|
||||||
},
|
|
||||||
"doors_and_windows": {
|
|
||||||
"door_lock_state": "UNLOCKED",
|
|
||||||
"lids": [
|
|
||||||
{ "name": "hood", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "leftFront", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "leftRear", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "rightFront", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "rightRear", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "trunk", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "sunRoof", "state": "CLOSED", "is_closed": true }
|
|
||||||
],
|
|
||||||
"windows": [
|
|
||||||
{ "name": "leftFront", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "rightFront", "state": "CLOSED", "is_closed": true }
|
|
||||||
],
|
|
||||||
"all_lids_closed": true,
|
|
||||||
"all_windows_closed": true,
|
|
||||||
"open_lids": [],
|
|
||||||
"open_windows": []
|
|
||||||
},
|
|
||||||
"condition_based_services": {
|
|
||||||
"messages": [
|
|
||||||
{
|
|
||||||
"service_type": "BRAKE_FLUID",
|
|
||||||
"state": "OK",
|
|
||||||
"due_date": "2022-10-01T00:00:00+00:00",
|
|
||||||
"due_distance": [null, null]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"service_type": "VEHICLE_CHECK",
|
|
||||||
"state": "OK",
|
|
||||||
"due_date": "2023-05-01T00:00:00+00:00",
|
|
||||||
"due_distance": [null, null]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"service_type": "VEHICLE_TUV",
|
|
||||||
"state": "OK",
|
|
||||||
"due_date": "2023-05-01T00:00:00+00:00",
|
|
||||||
"due_distance": [null, null]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"is_service_required": false
|
|
||||||
},
|
|
||||||
"check_control_messages": {
|
|
||||||
"messages": [],
|
|
||||||
"has_check_control_messages": false
|
|
||||||
},
|
|
||||||
"charging_profile": {
|
|
||||||
"is_pre_entry_climatization_enabled": false,
|
|
||||||
"timer_type": "WEEKLY_PLANNER",
|
|
||||||
"departure_times": [
|
|
||||||
{
|
|
||||||
"_timer_dict": {
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 1,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 35 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"start_time": "07:35:00",
|
|
||||||
"timer_id": 1,
|
|
||||||
"weekdays": ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"_timer_dict": {
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 2,
|
|
||||||
"timeStamp": { "hour": 18, "minute": 0 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"start_time": "18:00:00",
|
|
||||||
"timer_id": 2,
|
|
||||||
"weekdays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"_timer_dict": {
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 3,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 0 },
|
|
||||||
"timerWeekDays": []
|
|
||||||
},
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"start_time": "07:00:00",
|
|
||||||
"timer_id": 3,
|
|
||||||
"weekdays": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"_timer_dict": {
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 4,
|
|
||||||
"timerWeekDays": []
|
|
||||||
},
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"start_time": null,
|
|
||||||
"timer_id": 4,
|
|
||||||
"weekdays": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preferred_charging_window": {
|
|
||||||
"_window_dict": {
|
|
||||||
"end": { "hour": 1, "minute": 30 },
|
|
||||||
"start": { "hour": 18, "minute": 1 }
|
|
||||||
},
|
|
||||||
"end_time": "01:30:00",
|
|
||||||
"start_time": "18:01:00"
|
|
||||||
},
|
|
||||||
"charging_preferences": "CHARGING_WINDOW",
|
|
||||||
"charging_mode": "DELAYED_CHARGING",
|
|
||||||
"ac_current_limit": null,
|
|
||||||
"ac_available_limits": null,
|
|
||||||
"charging_preferences_service_pack": "TCB1"
|
|
||||||
},
|
|
||||||
"available_attributes": [
|
|
||||||
"gps_position",
|
|
||||||
"vin",
|
|
||||||
"remaining_range_total",
|
|
||||||
"mileage",
|
|
||||||
"charging_time_remaining",
|
|
||||||
"charging_start_time",
|
|
||||||
"charging_end_time",
|
|
||||||
"charging_time_label",
|
|
||||||
"charging_status",
|
|
||||||
"connection_status",
|
|
||||||
"remaining_battery_percent",
|
|
||||||
"remaining_range_electric",
|
|
||||||
"last_charging_end_result",
|
|
||||||
"ac_current_limit",
|
|
||||||
"charging_target",
|
|
||||||
"charging_mode",
|
|
||||||
"charging_preferences",
|
|
||||||
"is_pre_entry_climatization_enabled",
|
|
||||||
"remaining_fuel",
|
|
||||||
"remaining_range_fuel",
|
|
||||||
"remaining_fuel_percent",
|
|
||||||
"condition_based_services",
|
|
||||||
"check_control_messages",
|
|
||||||
"door_lock_state",
|
|
||||||
"timestamp",
|
|
||||||
"lids",
|
|
||||||
"windows"
|
|
||||||
],
|
|
||||||
"brand": "bmw",
|
|
||||||
"drive_train": "ELECTRIC_WITH_RANGE_EXTENDER",
|
|
||||||
"drive_train_attributes": [
|
|
||||||
"remaining_range_total",
|
|
||||||
"mileage",
|
|
||||||
"charging_time_remaining",
|
|
||||||
"charging_start_time",
|
|
||||||
"charging_end_time",
|
|
||||||
"charging_time_label",
|
|
||||||
"charging_status",
|
|
||||||
"connection_status",
|
|
||||||
"remaining_battery_percent",
|
|
||||||
"remaining_range_electric",
|
|
||||||
"last_charging_end_result",
|
|
||||||
"ac_current_limit",
|
|
||||||
"charging_target",
|
|
||||||
"charging_mode",
|
|
||||||
"charging_preferences",
|
|
||||||
"is_pre_entry_climatization_enabled",
|
|
||||||
"remaining_fuel",
|
|
||||||
"remaining_range_fuel",
|
|
||||||
"remaining_fuel_percent"
|
|
||||||
],
|
|
||||||
"has_combustion_drivetrain": true,
|
|
||||||
"has_electric_drivetrain": true,
|
|
||||||
"is_charging_plan_supported": true,
|
|
||||||
"is_lsc_enabled": true,
|
|
||||||
"is_remote_charge_start_enabled": false,
|
|
||||||
"is_remote_charge_stop_enabled": false,
|
|
||||||
"is_remote_climate_start_enabled": true,
|
|
||||||
"is_remote_climate_stop_enabled": false,
|
|
||||||
"is_remote_horn_enabled": true,
|
|
||||||
"is_remote_lights_enabled": true,
|
|
||||||
"is_remote_lock_enabled": true,
|
|
||||||
"is_remote_sendpoi_enabled": true,
|
|
||||||
"is_remote_set_ac_limit_enabled": false,
|
|
||||||
"is_remote_set_target_soc_enabled": false,
|
|
||||||
"is_remote_unlock_enabled": true,
|
|
||||||
"is_vehicle_active": false,
|
|
||||||
"is_vehicle_tracking_enabled": false,
|
|
||||||
"lsc_type": "ACTIVATED",
|
|
||||||
"mileage": [137009, "km"],
|
|
||||||
"name": "i3 (+ REX)",
|
|
||||||
"timestamp": "2022-07-10T09:25:53+00:00",
|
|
||||||
"vin": "**REDACTED**"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"fingerprint": [
|
|
||||||
{
|
|
||||||
"filename": "bmw-eadrax-vcs_v4_vehicles.json",
|
|
||||||
"content": [
|
|
||||||
{
|
|
||||||
"appVehicleType": "CONNECTED",
|
|
||||||
"attributes": {
|
|
||||||
"a4aType": "USB_ONLY",
|
|
||||||
"bodyType": "I01",
|
|
||||||
"brand": "BMW_I",
|
|
||||||
"color": 4284110934,
|
|
||||||
"countryOfOrigin": "CZ",
|
|
||||||
"driveTrain": "ELECTRIC_WITH_RANGE_EXTENDER",
|
|
||||||
"driverGuideInfo": {
|
|
||||||
"androidAppScheme": "com.bmwgroup.driversguide.row",
|
|
||||||
"androidStoreUrl": "https://play.google.com/store/apps/details?id=com.bmwgroup.driversguide.row",
|
|
||||||
"iosAppScheme": "bmwdriversguide:///open",
|
|
||||||
"iosStoreUrl": "https://apps.apple.com/de/app/id714042749?mt=8"
|
|
||||||
},
|
|
||||||
"headUnitType": "NBT",
|
|
||||||
"hmiVersion": "ID4",
|
|
||||||
"lastFetched": "2022-07-10T09:25:53.104Z",
|
|
||||||
"model": "i3 (+ REX)",
|
|
||||||
"softwareVersionCurrent": {
|
|
||||||
"iStep": 510,
|
|
||||||
"puStep": { "month": 11, "year": 21 },
|
|
||||||
"seriesCluster": "I001"
|
|
||||||
},
|
|
||||||
"softwareVersionExFactory": {
|
|
||||||
"iStep": 502,
|
|
||||||
"puStep": { "month": 3, "year": 15 },
|
|
||||||
"seriesCluster": "I001"
|
|
||||||
},
|
|
||||||
"year": 2015
|
|
||||||
},
|
|
||||||
"mappingInfo": {
|
|
||||||
"isAssociated": false,
|
|
||||||
"isLmmEnabled": false,
|
|
||||||
"isPrimaryUser": true,
|
|
||||||
"mappingStatus": "CONFIRMED"
|
|
||||||
},
|
|
||||||
"vin": "**REDACTED**"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{ "filename": "mini-eadrax-vcs_v4_vehicles.json", "content": [] },
|
|
||||||
{
|
|
||||||
"filename": "bmw-eadrax-vcs_v4_vehicles_state_WBY0FINGERPRINT01.json",
|
|
||||||
"content": {
|
|
||||||
"capabilities": {
|
|
||||||
"climateFunction": "AIR_CONDITIONING",
|
|
||||||
"climateNow": true,
|
|
||||||
"climateTimerTrigger": "DEPARTURE_TIMER",
|
|
||||||
"horn": true,
|
|
||||||
"isBmwChargingSupported": true,
|
|
||||||
"isCarSharingSupported": false,
|
|
||||||
"isChargeNowForBusinessSupported": false,
|
|
||||||
"isChargingHistorySupported": true,
|
|
||||||
"isChargingHospitalityEnabled": false,
|
|
||||||
"isChargingLoudnessEnabled": false,
|
|
||||||
"isChargingPlanSupported": true,
|
|
||||||
"isChargingPowerLimitEnabled": false,
|
|
||||||
"isChargingSettingsEnabled": false,
|
|
||||||
"isChargingTargetSocEnabled": false,
|
|
||||||
"isClimateTimerSupported": true,
|
|
||||||
"isCustomerEsimSupported": false,
|
|
||||||
"isDCSContractManagementSupported": true,
|
|
||||||
"isDataPrivacyEnabled": false,
|
|
||||||
"isEasyChargeEnabled": false,
|
|
||||||
"isEvGoChargingSupported": false,
|
|
||||||
"isMiniChargingSupported": false,
|
|
||||||
"isNonLscFeatureEnabled": false,
|
|
||||||
"isRemoteEngineStartSupported": false,
|
|
||||||
"isRemoteHistoryDeletionSupported": false,
|
|
||||||
"isRemoteHistorySupported": true,
|
|
||||||
"isRemoteParkingSupported": false,
|
|
||||||
"isRemoteServicesActivationRequired": false,
|
|
||||||
"isRemoteServicesBookingRequired": false,
|
|
||||||
"isScanAndChargeSupported": false,
|
|
||||||
"isSustainabilitySupported": false,
|
|
||||||
"isWifiHotspotServiceSupported": false,
|
|
||||||
"lastStateCallState": "ACTIVATED",
|
|
||||||
"lights": true,
|
|
||||||
"lock": true,
|
|
||||||
"remoteChargingCommands": {},
|
|
||||||
"sendPoi": true,
|
|
||||||
"specialThemeSupport": [],
|
|
||||||
"unlock": true,
|
|
||||||
"vehicleFinder": false,
|
|
||||||
"vehicleStateSource": "LAST_STATE_CALL"
|
|
||||||
},
|
|
||||||
"state": {
|
|
||||||
"chargingProfile": {
|
|
||||||
"chargingControlType": "WEEKLY_PLANNER",
|
|
||||||
"chargingMode": "DELAYED_CHARGING",
|
|
||||||
"chargingPreference": "CHARGING_WINDOW",
|
|
||||||
"chargingSettings": {
|
|
||||||
"hospitality": "NO_ACTION",
|
|
||||||
"idcc": "NO_ACTION",
|
|
||||||
"targetSoc": 100
|
|
||||||
},
|
|
||||||
"climatisationOn": false,
|
|
||||||
"departureTimes": [
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 1,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 35 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 2,
|
|
||||||
"timeStamp": { "hour": 18, "minute": 0 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 3,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 0 },
|
|
||||||
"timerWeekDays": []
|
|
||||||
},
|
|
||||||
{ "action": "DEACTIVATE", "id": 4, "timerWeekDays": [] }
|
|
||||||
],
|
|
||||||
"reductionOfChargeCurrent": {
|
|
||||||
"end": { "hour": 1, "minute": 30 },
|
|
||||||
"start": { "hour": 18, "minute": 1 }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"checkControlMessages": [],
|
|
||||||
"climateTimers": [
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 6, "minute": 40 },
|
|
||||||
"isWeeklyTimer": true,
|
|
||||||
"timerAction": "ACTIVATE",
|
|
||||||
"timerWeekDays": ["THURSDAY", "SUNDAY"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 12, "minute": 50 },
|
|
||||||
"isWeeklyTimer": false,
|
|
||||||
"timerAction": "ACTIVATE",
|
|
||||||
"timerWeekDays": ["MONDAY"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 18, "minute": 59 },
|
|
||||||
"isWeeklyTimer": true,
|
|
||||||
"timerAction": "DEACTIVATE",
|
|
||||||
"timerWeekDays": ["WEDNESDAY"]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"combustionFuelLevel": {
|
|
||||||
"range": 105,
|
|
||||||
"remainingFuelLiters": 6,
|
|
||||||
"remainingFuelPercent": 65
|
|
||||||
},
|
|
||||||
"currentMileage": 137009,
|
|
||||||
"doorsState": {
|
|
||||||
"combinedSecurityState": "UNLOCKED",
|
|
||||||
"combinedState": "CLOSED",
|
|
||||||
"hood": "CLOSED",
|
|
||||||
"leftFront": "CLOSED",
|
|
||||||
"leftRear": "CLOSED",
|
|
||||||
"rightFront": "CLOSED",
|
|
||||||
"rightRear": "CLOSED",
|
|
||||||
"trunk": "CLOSED"
|
|
||||||
},
|
|
||||||
"driverPreferences": { "lscPrivacyMode": "OFF" },
|
|
||||||
"electricChargingState": {
|
|
||||||
"chargingConnectionType": "CONDUCTIVE",
|
|
||||||
"chargingLevelPercent": 82,
|
|
||||||
"chargingStatus": "WAITING_FOR_CHARGING",
|
|
||||||
"chargingTarget": 100,
|
|
||||||
"isChargerConnected": true,
|
|
||||||
"range": 174
|
|
||||||
},
|
|
||||||
"isLeftSteering": true,
|
|
||||||
"isLscSupported": true,
|
|
||||||
"lastFetched": "2022-06-22T14:24:23.982Z",
|
|
||||||
"lastUpdatedAt": "2022-06-22T13:58:52Z",
|
|
||||||
"range": 174,
|
|
||||||
"requiredServices": [
|
|
||||||
{
|
|
||||||
"dateTime": "2022-10-01T00:00:00.000Z",
|
|
||||||
"description": "Next service due by the specified date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "BRAKE_FLUID"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dateTime": "2023-05-01T00:00:00.000Z",
|
|
||||||
"description": "Next vehicle check due after the specified distance or date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "VEHICLE_CHECK"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dateTime": "2023-05-01T00:00:00.000Z",
|
|
||||||
"description": "Next state inspection due by the specified date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "VEHICLE_TUV"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"roofState": { "roofState": "CLOSED", "roofStateType": "SUN_ROOF" },
|
|
||||||
"windowsState": {
|
|
||||||
"combinedState": "CLOSED",
|
|
||||||
"leftFront": "CLOSED",
|
|
||||||
"rightFront": "CLOSED"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "bmw-eadrax-crccs_v2_vehicles_WBY0FINGERPRINT01.json",
|
|
||||||
"content": {
|
|
||||||
"chargeAndClimateSettings": {
|
|
||||||
"chargeAndClimateTimer": { "showDepartureTimers": false }
|
|
||||||
},
|
|
||||||
"chargeAndClimateTimerDetail": {
|
|
||||||
"chargingMode": {
|
|
||||||
"chargingPreference": "CHARGING_WINDOW",
|
|
||||||
"endTimeSlot": "0001-01-01T01:30:00",
|
|
||||||
"startTimeSlot": "0001-01-01T18:01:00",
|
|
||||||
"type": "TIME_SLOT"
|
|
||||||
},
|
|
||||||
"departureTimer": {
|
|
||||||
"type": "WEEKLY_DEPARTURE_TIMER",
|
|
||||||
"weeklyTimers": [
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY"
|
|
||||||
],
|
|
||||||
"id": 1,
|
|
||||||
"time": "0001-01-01T07:35:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
],
|
|
||||||
"id": 2,
|
|
||||||
"time": "0001-01-01T18:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [],
|
|
||||||
"id": 3,
|
|
||||||
"time": "0001-01-01T07:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [],
|
|
||||||
"id": 4,
|
|
||||||
"time": "0001-01-01T00:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"isPreconditionForDepartureActive": false
|
|
||||||
},
|
|
||||||
"servicePack": "TCB1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,801 +0,0 @@
|
||||||
{
|
|
||||||
"info": {
|
|
||||||
"username": "**REDACTED**",
|
|
||||||
"password": "**REDACTED**",
|
|
||||||
"region": "rest_of_world",
|
|
||||||
"refresh_token": "**REDACTED**"
|
|
||||||
},
|
|
||||||
"data": {
|
|
||||||
"data": {
|
|
||||||
"appVehicleType": "CONNECTED",
|
|
||||||
"attributes": {
|
|
||||||
"a4aType": "USB_ONLY",
|
|
||||||
"bodyType": "I01",
|
|
||||||
"brand": "BMW_I",
|
|
||||||
"color": 4284110934,
|
|
||||||
"countryOfOrigin": "CZ",
|
|
||||||
"driveTrain": "ELECTRIC_WITH_RANGE_EXTENDER",
|
|
||||||
"driverGuideInfo": {
|
|
||||||
"androidAppScheme": "com.bmwgroup.driversguide.row",
|
|
||||||
"androidStoreUrl": "https://play.google.com/store/apps/details?id=com.bmwgroup.driversguide.row",
|
|
||||||
"iosAppScheme": "bmwdriversguide:///open",
|
|
||||||
"iosStoreUrl": "https://apps.apple.com/de/app/id714042749?mt=8"
|
|
||||||
},
|
|
||||||
"headUnitType": "NBT",
|
|
||||||
"hmiVersion": "ID4",
|
|
||||||
"lastFetched": "2022-07-10T09:25:53.104Z",
|
|
||||||
"model": "i3 (+ REX)",
|
|
||||||
"softwareVersionCurrent": {
|
|
||||||
"iStep": 510,
|
|
||||||
"puStep": { "month": 11, "year": 21 },
|
|
||||||
"seriesCluster": "I001"
|
|
||||||
},
|
|
||||||
"softwareVersionExFactory": {
|
|
||||||
"iStep": 502,
|
|
||||||
"puStep": { "month": 3, "year": 15 },
|
|
||||||
"seriesCluster": "I001"
|
|
||||||
},
|
|
||||||
"year": 2015
|
|
||||||
},
|
|
||||||
"mappingInfo": {
|
|
||||||
"isAssociated": false,
|
|
||||||
"isLmmEnabled": false,
|
|
||||||
"isPrimaryUser": true,
|
|
||||||
"mappingStatus": "CONFIRMED"
|
|
||||||
},
|
|
||||||
"vin": "**REDACTED**",
|
|
||||||
"charging_settings": {
|
|
||||||
"chargeAndClimateSettings": {
|
|
||||||
"chargeAndClimateTimer": { "showDepartureTimers": false }
|
|
||||||
},
|
|
||||||
"chargeAndClimateTimerDetail": {
|
|
||||||
"chargingMode": {
|
|
||||||
"chargingPreference": "CHARGING_WINDOW",
|
|
||||||
"endTimeSlot": "0001-01-01T01:30:00",
|
|
||||||
"startTimeSlot": "0001-01-01T18:01:00",
|
|
||||||
"type": "TIME_SLOT"
|
|
||||||
},
|
|
||||||
"departureTimer": {
|
|
||||||
"type": "WEEKLY_DEPARTURE_TIMER",
|
|
||||||
"weeklyTimers": [
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY"
|
|
||||||
],
|
|
||||||
"id": 1,
|
|
||||||
"time": "0001-01-01T07:35:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
],
|
|
||||||
"id": 2,
|
|
||||||
"time": "0001-01-01T18:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [],
|
|
||||||
"id": 3,
|
|
||||||
"time": "0001-01-01T07:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [],
|
|
||||||
"id": 4,
|
|
||||||
"time": "0001-01-01T00:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"isPreconditionForDepartureActive": false
|
|
||||||
},
|
|
||||||
"servicePack": "TCB1"
|
|
||||||
},
|
|
||||||
"is_metric": true,
|
|
||||||
"fetched_at": "2022-07-10T11:00:00+00:00",
|
|
||||||
"capabilities": {
|
|
||||||
"climateFunction": "AIR_CONDITIONING",
|
|
||||||
"climateNow": true,
|
|
||||||
"climateTimerTrigger": "DEPARTURE_TIMER",
|
|
||||||
"horn": true,
|
|
||||||
"isBmwChargingSupported": true,
|
|
||||||
"isCarSharingSupported": false,
|
|
||||||
"isChargeNowForBusinessSupported": false,
|
|
||||||
"isChargingHistorySupported": true,
|
|
||||||
"isChargingHospitalityEnabled": false,
|
|
||||||
"isChargingLoudnessEnabled": false,
|
|
||||||
"isChargingPlanSupported": true,
|
|
||||||
"isChargingPowerLimitEnabled": false,
|
|
||||||
"isChargingSettingsEnabled": false,
|
|
||||||
"isChargingTargetSocEnabled": false,
|
|
||||||
"isClimateTimerSupported": true,
|
|
||||||
"isCustomerEsimSupported": false,
|
|
||||||
"isDCSContractManagementSupported": true,
|
|
||||||
"isDataPrivacyEnabled": false,
|
|
||||||
"isEasyChargeEnabled": false,
|
|
||||||
"isEvGoChargingSupported": false,
|
|
||||||
"isMiniChargingSupported": false,
|
|
||||||
"isNonLscFeatureEnabled": false,
|
|
||||||
"isRemoteEngineStartSupported": false,
|
|
||||||
"isRemoteHistoryDeletionSupported": false,
|
|
||||||
"isRemoteHistorySupported": true,
|
|
||||||
"isRemoteParkingSupported": false,
|
|
||||||
"isRemoteServicesActivationRequired": false,
|
|
||||||
"isRemoteServicesBookingRequired": false,
|
|
||||||
"isScanAndChargeSupported": false,
|
|
||||||
"isSustainabilitySupported": false,
|
|
||||||
"isWifiHotspotServiceSupported": false,
|
|
||||||
"lastStateCallState": "ACTIVATED",
|
|
||||||
"lights": true,
|
|
||||||
"lock": true,
|
|
||||||
"remoteChargingCommands": {},
|
|
||||||
"sendPoi": true,
|
|
||||||
"specialThemeSupport": [],
|
|
||||||
"unlock": true,
|
|
||||||
"vehicleFinder": false,
|
|
||||||
"vehicleStateSource": "LAST_STATE_CALL"
|
|
||||||
},
|
|
||||||
"state": {
|
|
||||||
"chargingProfile": {
|
|
||||||
"chargingControlType": "WEEKLY_PLANNER",
|
|
||||||
"chargingMode": "DELAYED_CHARGING",
|
|
||||||
"chargingPreference": "CHARGING_WINDOW",
|
|
||||||
"chargingSettings": {
|
|
||||||
"hospitality": "NO_ACTION",
|
|
||||||
"idcc": "NO_ACTION",
|
|
||||||
"targetSoc": 100
|
|
||||||
},
|
|
||||||
"climatisationOn": false,
|
|
||||||
"departureTimes": [
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 1,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 35 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 2,
|
|
||||||
"timeStamp": { "hour": 18, "minute": 0 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 3,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 0 },
|
|
||||||
"timerWeekDays": []
|
|
||||||
},
|
|
||||||
{ "action": "DEACTIVATE", "id": 4, "timerWeekDays": [] }
|
|
||||||
],
|
|
||||||
"reductionOfChargeCurrent": {
|
|
||||||
"end": { "hour": 1, "minute": 30 },
|
|
||||||
"start": { "hour": 18, "minute": 1 }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"checkControlMessages": [],
|
|
||||||
"climateTimers": [
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 6, "minute": 40 },
|
|
||||||
"isWeeklyTimer": true,
|
|
||||||
"timerAction": "ACTIVATE",
|
|
||||||
"timerWeekDays": ["THURSDAY", "SUNDAY"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 12, "minute": 50 },
|
|
||||||
"isWeeklyTimer": false,
|
|
||||||
"timerAction": "ACTIVATE",
|
|
||||||
"timerWeekDays": ["MONDAY"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 18, "minute": 59 },
|
|
||||||
"isWeeklyTimer": true,
|
|
||||||
"timerAction": "DEACTIVATE",
|
|
||||||
"timerWeekDays": ["WEDNESDAY"]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"combustionFuelLevel": {
|
|
||||||
"range": 105,
|
|
||||||
"remainingFuelLiters": 6,
|
|
||||||
"remainingFuelPercent": 65
|
|
||||||
},
|
|
||||||
"currentMileage": 137009,
|
|
||||||
"doorsState": {
|
|
||||||
"combinedSecurityState": "UNLOCKED",
|
|
||||||
"combinedState": "CLOSED",
|
|
||||||
"hood": "CLOSED",
|
|
||||||
"leftFront": "CLOSED",
|
|
||||||
"leftRear": "CLOSED",
|
|
||||||
"rightFront": "CLOSED",
|
|
||||||
"rightRear": "CLOSED",
|
|
||||||
"trunk": "CLOSED"
|
|
||||||
},
|
|
||||||
"driverPreferences": { "lscPrivacyMode": "OFF" },
|
|
||||||
"electricChargingState": {
|
|
||||||
"chargingConnectionType": "CONDUCTIVE",
|
|
||||||
"chargingLevelPercent": 82,
|
|
||||||
"chargingStatus": "WAITING_FOR_CHARGING",
|
|
||||||
"chargingTarget": 100,
|
|
||||||
"isChargerConnected": true,
|
|
||||||
"range": 174
|
|
||||||
},
|
|
||||||
"isLeftSteering": true,
|
|
||||||
"isLscSupported": true,
|
|
||||||
"lastFetched": "2022-06-22T14:24:23.982Z",
|
|
||||||
"lastUpdatedAt": "2022-06-22T13:58:52Z",
|
|
||||||
"range": 174,
|
|
||||||
"requiredServices": [
|
|
||||||
{
|
|
||||||
"dateTime": "2022-10-01T00:00:00.000Z",
|
|
||||||
"description": "Next service due by the specified date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "BRAKE_FLUID"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dateTime": "2023-05-01T00:00:00.000Z",
|
|
||||||
"description": "Next vehicle check due after the specified distance or date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "VEHICLE_CHECK"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dateTime": "2023-05-01T00:00:00.000Z",
|
|
||||||
"description": "Next state inspection due by the specified date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "VEHICLE_TUV"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"roofState": { "roofState": "CLOSED", "roofStateType": "SUN_ROOF" },
|
|
||||||
"windowsState": {
|
|
||||||
"combinedState": "CLOSED",
|
|
||||||
"leftFront": "CLOSED",
|
|
||||||
"rightFront": "CLOSED"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fuel_and_battery": {
|
|
||||||
"remaining_range_fuel": [105, "km"],
|
|
||||||
"remaining_range_electric": [174, "km"],
|
|
||||||
"remaining_range_total": [279, "km"],
|
|
||||||
"remaining_fuel": [6, "L"],
|
|
||||||
"remaining_fuel_percent": 65,
|
|
||||||
"remaining_battery_percent": 82,
|
|
||||||
"charging_status": "WAITING_FOR_CHARGING",
|
|
||||||
"charging_start_time_no_tz": "2022-07-10T18:01:00",
|
|
||||||
"charging_end_time": null,
|
|
||||||
"is_charger_connected": true,
|
|
||||||
"charging_target": 100,
|
|
||||||
"account_timezone": {
|
|
||||||
"_std_offset": "0:00:00",
|
|
||||||
"_dst_offset": "0:00:00",
|
|
||||||
"_dst_saved": "0:00:00",
|
|
||||||
"_hasdst": false,
|
|
||||||
"_tznames": ["UTC", "UTC"]
|
|
||||||
},
|
|
||||||
"charging_start_time": "2022-07-10T18:01:00+00:00"
|
|
||||||
},
|
|
||||||
"vehicle_location": {
|
|
||||||
"location": null,
|
|
||||||
"heading": null,
|
|
||||||
"vehicle_update_timestamp": "2022-07-10T09:25:53+00:00",
|
|
||||||
"account_region": "row",
|
|
||||||
"remote_service_position": null
|
|
||||||
},
|
|
||||||
"doors_and_windows": {
|
|
||||||
"door_lock_state": "UNLOCKED",
|
|
||||||
"lids": [
|
|
||||||
{ "name": "hood", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "leftFront", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "leftRear", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "rightFront", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "rightRear", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "trunk", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "sunRoof", "state": "CLOSED", "is_closed": true }
|
|
||||||
],
|
|
||||||
"windows": [
|
|
||||||
{ "name": "leftFront", "state": "CLOSED", "is_closed": true },
|
|
||||||
{ "name": "rightFront", "state": "CLOSED", "is_closed": true }
|
|
||||||
],
|
|
||||||
"all_lids_closed": true,
|
|
||||||
"all_windows_closed": true,
|
|
||||||
"open_lids": [],
|
|
||||||
"open_windows": []
|
|
||||||
},
|
|
||||||
"condition_based_services": {
|
|
||||||
"messages": [
|
|
||||||
{
|
|
||||||
"service_type": "BRAKE_FLUID",
|
|
||||||
"state": "OK",
|
|
||||||
"due_date": "2022-10-01T00:00:00+00:00",
|
|
||||||
"due_distance": [null, null]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"service_type": "VEHICLE_CHECK",
|
|
||||||
"state": "OK",
|
|
||||||
"due_date": "2023-05-01T00:00:00+00:00",
|
|
||||||
"due_distance": [null, null]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"service_type": "VEHICLE_TUV",
|
|
||||||
"state": "OK",
|
|
||||||
"due_date": "2023-05-01T00:00:00+00:00",
|
|
||||||
"due_distance": [null, null]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"is_service_required": false
|
|
||||||
},
|
|
||||||
"check_control_messages": {
|
|
||||||
"messages": [],
|
|
||||||
"has_check_control_messages": false
|
|
||||||
},
|
|
||||||
"charging_profile": {
|
|
||||||
"is_pre_entry_climatization_enabled": false,
|
|
||||||
"timer_type": "WEEKLY_PLANNER",
|
|
||||||
"departure_times": [
|
|
||||||
{
|
|
||||||
"_timer_dict": {
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 1,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 35 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"start_time": "07:35:00",
|
|
||||||
"timer_id": 1,
|
|
||||||
"weekdays": ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"_timer_dict": {
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 2,
|
|
||||||
"timeStamp": { "hour": 18, "minute": 0 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"start_time": "18:00:00",
|
|
||||||
"timer_id": 2,
|
|
||||||
"weekdays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"_timer_dict": {
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 3,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 0 },
|
|
||||||
"timerWeekDays": []
|
|
||||||
},
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"start_time": "07:00:00",
|
|
||||||
"timer_id": 3,
|
|
||||||
"weekdays": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"_timer_dict": {
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 4,
|
|
||||||
"timerWeekDays": []
|
|
||||||
},
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"start_time": null,
|
|
||||||
"timer_id": 4,
|
|
||||||
"weekdays": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"preferred_charging_window": {
|
|
||||||
"_window_dict": {
|
|
||||||
"end": { "hour": 1, "minute": 30 },
|
|
||||||
"start": { "hour": 18, "minute": 1 }
|
|
||||||
},
|
|
||||||
"end_time": "01:30:00",
|
|
||||||
"start_time": "18:01:00"
|
|
||||||
},
|
|
||||||
"charging_preferences": "CHARGING_WINDOW",
|
|
||||||
"charging_mode": "DELAYED_CHARGING",
|
|
||||||
"ac_current_limit": null,
|
|
||||||
"ac_available_limits": null,
|
|
||||||
"charging_preferences_service_pack": "TCB1"
|
|
||||||
},
|
|
||||||
"available_attributes": [
|
|
||||||
"gps_position",
|
|
||||||
"vin",
|
|
||||||
"remaining_range_total",
|
|
||||||
"mileage",
|
|
||||||
"charging_time_remaining",
|
|
||||||
"charging_start_time",
|
|
||||||
"charging_end_time",
|
|
||||||
"charging_time_label",
|
|
||||||
"charging_status",
|
|
||||||
"connection_status",
|
|
||||||
"remaining_battery_percent",
|
|
||||||
"remaining_range_electric",
|
|
||||||
"last_charging_end_result",
|
|
||||||
"ac_current_limit",
|
|
||||||
"charging_target",
|
|
||||||
"charging_mode",
|
|
||||||
"charging_preferences",
|
|
||||||
"is_pre_entry_climatization_enabled",
|
|
||||||
"remaining_fuel",
|
|
||||||
"remaining_range_fuel",
|
|
||||||
"remaining_fuel_percent",
|
|
||||||
"condition_based_services",
|
|
||||||
"check_control_messages",
|
|
||||||
"door_lock_state",
|
|
||||||
"timestamp",
|
|
||||||
"lids",
|
|
||||||
"windows"
|
|
||||||
],
|
|
||||||
"brand": "bmw",
|
|
||||||
"drive_train": "ELECTRIC_WITH_RANGE_EXTENDER",
|
|
||||||
"drive_train_attributes": [
|
|
||||||
"remaining_range_total",
|
|
||||||
"mileage",
|
|
||||||
"charging_time_remaining",
|
|
||||||
"charging_start_time",
|
|
||||||
"charging_end_time",
|
|
||||||
"charging_time_label",
|
|
||||||
"charging_status",
|
|
||||||
"connection_status",
|
|
||||||
"remaining_battery_percent",
|
|
||||||
"remaining_range_electric",
|
|
||||||
"last_charging_end_result",
|
|
||||||
"ac_current_limit",
|
|
||||||
"charging_target",
|
|
||||||
"charging_mode",
|
|
||||||
"charging_preferences",
|
|
||||||
"is_pre_entry_climatization_enabled",
|
|
||||||
"remaining_fuel",
|
|
||||||
"remaining_range_fuel",
|
|
||||||
"remaining_fuel_percent"
|
|
||||||
],
|
|
||||||
"has_combustion_drivetrain": true,
|
|
||||||
"has_electric_drivetrain": true,
|
|
||||||
"is_charging_plan_supported": true,
|
|
||||||
"is_lsc_enabled": true,
|
|
||||||
"is_remote_charge_start_enabled": false,
|
|
||||||
"is_remote_charge_stop_enabled": false,
|
|
||||||
"is_remote_climate_start_enabled": true,
|
|
||||||
"is_remote_climate_stop_enabled": false,
|
|
||||||
"is_remote_horn_enabled": true,
|
|
||||||
"is_remote_lights_enabled": true,
|
|
||||||
"is_remote_lock_enabled": true,
|
|
||||||
"is_remote_sendpoi_enabled": true,
|
|
||||||
"is_remote_set_ac_limit_enabled": false,
|
|
||||||
"is_remote_set_target_soc_enabled": false,
|
|
||||||
"is_remote_unlock_enabled": true,
|
|
||||||
"is_vehicle_active": false,
|
|
||||||
"is_vehicle_tracking_enabled": false,
|
|
||||||
"lsc_type": "ACTIVATED",
|
|
||||||
"mileage": [137009, "km"],
|
|
||||||
"name": "i3 (+ REX)",
|
|
||||||
"timestamp": "2022-07-10T09:25:53+00:00",
|
|
||||||
"vin": "**REDACTED**"
|
|
||||||
},
|
|
||||||
"fingerprint": [
|
|
||||||
{
|
|
||||||
"filename": "bmw-eadrax-vcs_v4_vehicles.json",
|
|
||||||
"content": [
|
|
||||||
{
|
|
||||||
"appVehicleType": "CONNECTED",
|
|
||||||
"attributes": {
|
|
||||||
"a4aType": "USB_ONLY",
|
|
||||||
"bodyType": "I01",
|
|
||||||
"brand": "BMW_I",
|
|
||||||
"color": 4284110934,
|
|
||||||
"countryOfOrigin": "CZ",
|
|
||||||
"driveTrain": "ELECTRIC_WITH_RANGE_EXTENDER",
|
|
||||||
"driverGuideInfo": {
|
|
||||||
"androidAppScheme": "com.bmwgroup.driversguide.row",
|
|
||||||
"androidStoreUrl": "https://play.google.com/store/apps/details?id=com.bmwgroup.driversguide.row",
|
|
||||||
"iosAppScheme": "bmwdriversguide:///open",
|
|
||||||
"iosStoreUrl": "https://apps.apple.com/de/app/id714042749?mt=8"
|
|
||||||
},
|
|
||||||
"headUnitType": "NBT",
|
|
||||||
"hmiVersion": "ID4",
|
|
||||||
"lastFetched": "2022-07-10T09:25:53.104Z",
|
|
||||||
"model": "i3 (+ REX)",
|
|
||||||
"softwareVersionCurrent": {
|
|
||||||
"iStep": 510,
|
|
||||||
"puStep": { "month": 11, "year": 21 },
|
|
||||||
"seriesCluster": "I001"
|
|
||||||
},
|
|
||||||
"softwareVersionExFactory": {
|
|
||||||
"iStep": 502,
|
|
||||||
"puStep": { "month": 3, "year": 15 },
|
|
||||||
"seriesCluster": "I001"
|
|
||||||
},
|
|
||||||
"year": 2015
|
|
||||||
},
|
|
||||||
"mappingInfo": {
|
|
||||||
"isAssociated": false,
|
|
||||||
"isLmmEnabled": false,
|
|
||||||
"isPrimaryUser": true,
|
|
||||||
"mappingStatus": "CONFIRMED"
|
|
||||||
},
|
|
||||||
"vin": "**REDACTED**"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{ "filename": "mini-eadrax-vcs_v4_vehicles.json", "content": [] },
|
|
||||||
{
|
|
||||||
"filename": "bmw-eadrax-vcs_v4_vehicles_state_WBY0FINGERPRINT01.json",
|
|
||||||
"content": {
|
|
||||||
"capabilities": {
|
|
||||||
"climateFunction": "AIR_CONDITIONING",
|
|
||||||
"climateNow": true,
|
|
||||||
"climateTimerTrigger": "DEPARTURE_TIMER",
|
|
||||||
"horn": true,
|
|
||||||
"isBmwChargingSupported": true,
|
|
||||||
"isCarSharingSupported": false,
|
|
||||||
"isChargeNowForBusinessSupported": false,
|
|
||||||
"isChargingHistorySupported": true,
|
|
||||||
"isChargingHospitalityEnabled": false,
|
|
||||||
"isChargingLoudnessEnabled": false,
|
|
||||||
"isChargingPlanSupported": true,
|
|
||||||
"isChargingPowerLimitEnabled": false,
|
|
||||||
"isChargingSettingsEnabled": false,
|
|
||||||
"isChargingTargetSocEnabled": false,
|
|
||||||
"isClimateTimerSupported": true,
|
|
||||||
"isCustomerEsimSupported": false,
|
|
||||||
"isDCSContractManagementSupported": true,
|
|
||||||
"isDataPrivacyEnabled": false,
|
|
||||||
"isEasyChargeEnabled": false,
|
|
||||||
"isEvGoChargingSupported": false,
|
|
||||||
"isMiniChargingSupported": false,
|
|
||||||
"isNonLscFeatureEnabled": false,
|
|
||||||
"isRemoteEngineStartSupported": false,
|
|
||||||
"isRemoteHistoryDeletionSupported": false,
|
|
||||||
"isRemoteHistorySupported": true,
|
|
||||||
"isRemoteParkingSupported": false,
|
|
||||||
"isRemoteServicesActivationRequired": false,
|
|
||||||
"isRemoteServicesBookingRequired": false,
|
|
||||||
"isScanAndChargeSupported": false,
|
|
||||||
"isSustainabilitySupported": false,
|
|
||||||
"isWifiHotspotServiceSupported": false,
|
|
||||||
"lastStateCallState": "ACTIVATED",
|
|
||||||
"lights": true,
|
|
||||||
"lock": true,
|
|
||||||
"remoteChargingCommands": {},
|
|
||||||
"sendPoi": true,
|
|
||||||
"specialThemeSupport": [],
|
|
||||||
"unlock": true,
|
|
||||||
"vehicleFinder": false,
|
|
||||||
"vehicleStateSource": "LAST_STATE_CALL"
|
|
||||||
},
|
|
||||||
"state": {
|
|
||||||
"chargingProfile": {
|
|
||||||
"chargingControlType": "WEEKLY_PLANNER",
|
|
||||||
"chargingMode": "DELAYED_CHARGING",
|
|
||||||
"chargingPreference": "CHARGING_WINDOW",
|
|
||||||
"chargingSettings": {
|
|
||||||
"hospitality": "NO_ACTION",
|
|
||||||
"idcc": "NO_ACTION",
|
|
||||||
"targetSoc": 100
|
|
||||||
},
|
|
||||||
"climatisationOn": false,
|
|
||||||
"departureTimes": [
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 1,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 35 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 2,
|
|
||||||
"timeStamp": { "hour": 18, "minute": 0 },
|
|
||||||
"timerWeekDays": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"action": "DEACTIVATE",
|
|
||||||
"id": 3,
|
|
||||||
"timeStamp": { "hour": 7, "minute": 0 },
|
|
||||||
"timerWeekDays": []
|
|
||||||
},
|
|
||||||
{ "action": "DEACTIVATE", "id": 4, "timerWeekDays": [] }
|
|
||||||
],
|
|
||||||
"reductionOfChargeCurrent": {
|
|
||||||
"end": { "hour": 1, "minute": 30 },
|
|
||||||
"start": { "hour": 18, "minute": 1 }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"checkControlMessages": [],
|
|
||||||
"climateTimers": [
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 6, "minute": 40 },
|
|
||||||
"isWeeklyTimer": true,
|
|
||||||
"timerAction": "ACTIVATE",
|
|
||||||
"timerWeekDays": ["THURSDAY", "SUNDAY"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 12, "minute": 50 },
|
|
||||||
"isWeeklyTimer": false,
|
|
||||||
"timerAction": "ACTIVATE",
|
|
||||||
"timerWeekDays": ["MONDAY"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"departureTime": { "hour": 18, "minute": 59 },
|
|
||||||
"isWeeklyTimer": true,
|
|
||||||
"timerAction": "DEACTIVATE",
|
|
||||||
"timerWeekDays": ["WEDNESDAY"]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"combustionFuelLevel": {
|
|
||||||
"range": 105,
|
|
||||||
"remainingFuelLiters": 6,
|
|
||||||
"remainingFuelPercent": 65
|
|
||||||
},
|
|
||||||
"currentMileage": 137009,
|
|
||||||
"doorsState": {
|
|
||||||
"combinedSecurityState": "UNLOCKED",
|
|
||||||
"combinedState": "CLOSED",
|
|
||||||
"hood": "CLOSED",
|
|
||||||
"leftFront": "CLOSED",
|
|
||||||
"leftRear": "CLOSED",
|
|
||||||
"rightFront": "CLOSED",
|
|
||||||
"rightRear": "CLOSED",
|
|
||||||
"trunk": "CLOSED"
|
|
||||||
},
|
|
||||||
"driverPreferences": { "lscPrivacyMode": "OFF" },
|
|
||||||
"electricChargingState": {
|
|
||||||
"chargingConnectionType": "CONDUCTIVE",
|
|
||||||
"chargingLevelPercent": 82,
|
|
||||||
"chargingStatus": "WAITING_FOR_CHARGING",
|
|
||||||
"chargingTarget": 100,
|
|
||||||
"isChargerConnected": true,
|
|
||||||
"range": 174
|
|
||||||
},
|
|
||||||
"isLeftSteering": true,
|
|
||||||
"isLscSupported": true,
|
|
||||||
"lastFetched": "2022-06-22T14:24:23.982Z",
|
|
||||||
"lastUpdatedAt": "2022-06-22T13:58:52Z",
|
|
||||||
"range": 174,
|
|
||||||
"requiredServices": [
|
|
||||||
{
|
|
||||||
"dateTime": "2022-10-01T00:00:00.000Z",
|
|
||||||
"description": "Next service due by the specified date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "BRAKE_FLUID"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dateTime": "2023-05-01T00:00:00.000Z",
|
|
||||||
"description": "Next vehicle check due after the specified distance or date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "VEHICLE_CHECK"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dateTime": "2023-05-01T00:00:00.000Z",
|
|
||||||
"description": "Next state inspection due by the specified date.",
|
|
||||||
"status": "OK",
|
|
||||||
"type": "VEHICLE_TUV"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"roofState": { "roofState": "CLOSED", "roofStateType": "SUN_ROOF" },
|
|
||||||
"windowsState": {
|
|
||||||
"combinedState": "CLOSED",
|
|
||||||
"leftFront": "CLOSED",
|
|
||||||
"rightFront": "CLOSED"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename": "bmw-eadrax-crccs_v2_vehicles_WBY0FINGERPRINT01.json",
|
|
||||||
"content": {
|
|
||||||
"chargeAndClimateSettings": {
|
|
||||||
"chargeAndClimateTimer": { "showDepartureTimers": false }
|
|
||||||
},
|
|
||||||
"chargeAndClimateTimerDetail": {
|
|
||||||
"chargingMode": {
|
|
||||||
"chargingPreference": "CHARGING_WINDOW",
|
|
||||||
"endTimeSlot": "0001-01-01T01:30:00",
|
|
||||||
"startTimeSlot": "0001-01-01T18:01:00",
|
|
||||||
"type": "TIME_SLOT"
|
|
||||||
},
|
|
||||||
"departureTimer": {
|
|
||||||
"type": "WEEKLY_DEPARTURE_TIMER",
|
|
||||||
"weeklyTimers": [
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY"
|
|
||||||
],
|
|
||||||
"id": 1,
|
|
||||||
"time": "0001-01-01T07:35:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [
|
|
||||||
"MONDAY",
|
|
||||||
"TUESDAY",
|
|
||||||
"WEDNESDAY",
|
|
||||||
"THURSDAY",
|
|
||||||
"FRIDAY",
|
|
||||||
"SATURDAY",
|
|
||||||
"SUNDAY"
|
|
||||||
],
|
|
||||||
"id": 2,
|
|
||||||
"time": "0001-01-01T18:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [],
|
|
||||||
"id": 3,
|
|
||||||
"time": "0001-01-01T07:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"daysOfTheWeek": [],
|
|
||||||
"id": 4,
|
|
||||||
"time": "0001-01-01T00:00:00",
|
|
||||||
"timerAction": "DEACTIVATE"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"isPreconditionForDepartureActive": false
|
|
||||||
},
|
|
||||||
"servicePack": "TCB1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
2373
tests/components/bmw_connected_drive/snapshots/test_diagnostics.ambr
Normal file
2373
tests/components/bmw_connected_drive/snapshots/test_diagnostics.ambr
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,10 +1,10 @@
|
||||||
"""Test BMW diagnostics."""
|
"""Test BMW diagnostics."""
|
||||||
import datetime
|
import datetime
|
||||||
import json
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
from syrupy.assertion import SnapshotAssertion
|
||||||
|
|
||||||
from homeassistant.components.bmw_connected_drive.const import DOMAIN
|
from homeassistant.components.bmw_connected_drive.const import DOMAIN
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
@ -12,7 +12,6 @@ from homeassistant.helpers import device_registry as dr
|
||||||
|
|
||||||
from . import setup_mocked_integration
|
from . import setup_mocked_integration
|
||||||
|
|
||||||
from tests.common import load_fixture
|
|
||||||
from tests.components.diagnostics import (
|
from tests.components.diagnostics import (
|
||||||
get_diagnostics_for_config_entry,
|
get_diagnostics_for_config_entry,
|
||||||
get_diagnostics_for_device,
|
get_diagnostics_for_device,
|
||||||
|
@ -22,7 +21,10 @@ from tests.typing import ClientSessionGenerator
|
||||||
|
|
||||||
@pytest.mark.freeze_time(datetime.datetime(2022, 7, 10, 11))
|
@pytest.mark.freeze_time(datetime.datetime(2022, 7, 10, 11))
|
||||||
async def test_config_entry_diagnostics(
|
async def test_config_entry_diagnostics(
|
||||||
hass: HomeAssistant, hass_client: ClientSessionGenerator, bmw_fixture
|
hass: HomeAssistant,
|
||||||
|
hass_client: ClientSessionGenerator,
|
||||||
|
bmw_fixture,
|
||||||
|
snapshot: SnapshotAssertion,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test config entry diagnostics."""
|
"""Test config entry diagnostics."""
|
||||||
|
|
||||||
|
@ -36,16 +38,15 @@ async def test_config_entry_diagnostics(
|
||||||
hass, hass_client, mock_config_entry
|
hass, hass_client, mock_config_entry
|
||||||
)
|
)
|
||||||
|
|
||||||
diagnostics_fixture = json.loads(
|
assert diagnostics == snapshot
|
||||||
load_fixture("diagnostics/diagnostics_config_entry.json", DOMAIN)
|
|
||||||
)
|
|
||||||
|
|
||||||
assert diagnostics == diagnostics_fixture
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.freeze_time(datetime.datetime(2022, 7, 10, 11))
|
@pytest.mark.freeze_time(datetime.datetime(2022, 7, 10, 11))
|
||||||
async def test_device_diagnostics(
|
async def test_device_diagnostics(
|
||||||
hass: HomeAssistant, hass_client: ClientSessionGenerator, bmw_fixture
|
hass: HomeAssistant,
|
||||||
|
hass_client: ClientSessionGenerator,
|
||||||
|
bmw_fixture,
|
||||||
|
snapshot: SnapshotAssertion,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test device diagnostics."""
|
"""Test device diagnostics."""
|
||||||
|
|
||||||
|
@ -65,16 +66,15 @@ async def test_device_diagnostics(
|
||||||
hass, hass_client, mock_config_entry, reg_device
|
hass, hass_client, mock_config_entry, reg_device
|
||||||
)
|
)
|
||||||
|
|
||||||
diagnostics_fixture = json.loads(
|
assert diagnostics == snapshot
|
||||||
load_fixture("diagnostics/diagnostics_device.json", DOMAIN)
|
|
||||||
)
|
|
||||||
|
|
||||||
assert diagnostics == diagnostics_fixture
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.freeze_time(datetime.datetime(2022, 7, 10, 11))
|
@pytest.mark.freeze_time(datetime.datetime(2022, 7, 10, 11))
|
||||||
async def test_device_diagnostics_vehicle_not_found(
|
async def test_device_diagnostics_vehicle_not_found(
|
||||||
hass: HomeAssistant, hass_client: ClientSessionGenerator, bmw_fixture
|
hass: HomeAssistant,
|
||||||
|
hass_client: ClientSessionGenerator,
|
||||||
|
bmw_fixture,
|
||||||
|
snapshot: SnapshotAssertion,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test device diagnostics when the vehicle cannot be found."""
|
"""Test device diagnostics when the vehicle cannot be found."""
|
||||||
|
|
||||||
|
@ -99,10 +99,4 @@ async def test_device_diagnostics_vehicle_not_found(
|
||||||
hass, hass_client, mock_config_entry, reg_device
|
hass, hass_client, mock_config_entry, reg_device
|
||||||
)
|
)
|
||||||
|
|
||||||
diagnostics_fixture = json.loads(
|
assert diagnostics == snapshot
|
||||||
load_fixture("diagnostics/diagnostics_device.json", DOMAIN)
|
|
||||||
)
|
|
||||||
# Mock empty data if car is not found in account anymore
|
|
||||||
diagnostics_fixture["data"] = None
|
|
||||||
|
|
||||||
assert diagnostics == diagnostics_fixture
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue