diff --git a/lib/auto_api/capabilities/charging_capability.ex b/lib/auto_api/capabilities/charging_capability.ex index 53d56b8..47e8fc3 100644 --- a/lib/auto_api/capabilities/charging_capability.ex +++ b/lib/auto_api/capabilities/charging_capability.ex @@ -32,7 +32,7 @@ defmodule AutoApi.ChargingCapability do iex> C.description "Charging" iex> length(C.properties) - 71 + 78 iex> List.first(C.properties) {0x02, :estimated_range} """ diff --git a/lib/auto_api/capabilities/usage_capability.ex b/lib/auto_api/capabilities/usage_capability.ex index 2cbca76..b2681b4 100644 --- a/lib/auto_api/capabilities/usage_capability.ex +++ b/lib/auto_api/capabilities/usage_capability.ex @@ -32,7 +32,7 @@ defmodule AutoApi.UsageCapability do iex> U.description "Usage" iex> length(U.properties) - 50 + 51 iex> List.first(U.properties) {0x01, :average_weekly_distance} """ diff --git a/specs/capabilities/charging.json b/specs/capabilities/charging.json index 26f6639..b2b9f16 100644 --- a/specs/capabilities/charging.json +++ b/specs/capabilities/charging.json @@ -207,7 +207,7 @@ { "data_component": "0701404e000000000000", "value": { - "minutes": 60.0 + "minutes": 60 }, "description": "Time to complete charge is 60.0 minutes" } @@ -301,7 +301,7 @@ { "data_component": "09004039000000000000", "value": { - "amperes": 25.0 + "amperes": 25 }, "description": "Maximum charging current is 25.0A" } @@ -612,7 +612,7 @@ { "data_component": "14024062c00000000000", "value": { - "kilowatts": 150.0 + "kilowatts": 150 }, "description": "Charging rate is 150.0kW" } @@ -698,7 +698,7 @@ { "data_component": "12044081580000000000", "value": { - "kilometers": 555.0 + "kilometers": 555 }, "description": "Maximum electric range is 555.0km" } @@ -899,7 +899,7 @@ { "data_component": "0c044051800000000000", "value": { - "kilowatt_hours": 70.0 + "kilowatt_hours": 70 }, "description": "Battery capacity is 70.0kWh" } @@ -918,7 +918,7 @@ { "data_component": "1402405e000000000000", "value": { - "kilowatts": 120.0 + "kilowatts": 120 }, "description": "Auxiliary power is 120.0kW." } @@ -953,7 +953,7 @@ { "data_component": "0c044058c00000000000", "value": { - "kilowatt_hours": 99.0 + "kilowatt_hours": 99 }, "description": "Maximum available battery capacity is 99.0kWh" } @@ -1218,7 +1218,7 @@ { "data_component": "09004059000000000000", "value": { - "amperes": 100.0 + "amperes": 100 }, "description": "Charging current limit is 100.0A." } @@ -1335,7 +1335,7 @@ { "data_component": "09004014000000000000", "value": { - "amperes": 5.0 + "amperes": 5 }, "description": "Minimum charging current is 5.0A." } @@ -1354,7 +1354,7 @@ { "data_component": "12044072c00000000000", "value": { - "kilometers": 300.0 + "kilometers": 300 }, "description": "Remaining electric range target is 300.0km." } @@ -1414,7 +1414,7 @@ { "data_component": "0701405b800000000000", "value": { - "minutes": 110.0 + "minutes": 110 }, "description": "Preconditioning is completed in 110.0min." } @@ -1433,7 +1433,7 @@ { "data_component": "0a00405e000000000000", "value": { - "volts": 120.0 + "volts": 120 }, "description": "HV battery voltage is 120.0V." } @@ -1457,7 +1457,7 @@ "values": { "extreme": "highest", "temperature": { - "celsius": 85.0 + "celsius": 85 } }, "description": "Battery highest temperature is 85.0C." @@ -1685,7 +1685,7 @@ "values": { "extreme": "highest", "temperature": { - "celsius": 85.0 + "celsius": 85 } }, "description": "Battery highest temperature is 85.0C." @@ -1768,17 +1768,287 @@ "name": "distance_to_complete_charge", "name_cased": "distanceToCompleteCharge", "name_pretty": "Distance to complete charge", + "added": 13, "type": "unit.length", "size": 10, "description": "Distance until charging completed", "examples": [ - { - "data_component": "1204405e200000000000", - "value": { - "kilometers": 120.5 - }, - "description": "Distance to complete charge is 120.5 kilometers." - } + { + "data_component": "1204405e200000000000", + "value": { + "kilometers": 120.5 + }, + "description": "Distance to complete charge is 120.5 kilometers." + } + ] + }, + { + "id": 70, + "name": "battery_charge_transfer_event", + "name_cased": "batteryChargeTransferEvent", + "name_pretty": "Battery charge transfer event", + "added": 13, + "type": "enum", + "size": 1, + "description": "Indicates that the high-voltage battery lost state of charge due to an energy transfer to the 12V battery.", + "enum_values": [ + { + "id": 0, + "name": "low_voltage_battery_service_required" + }, + { + "id": 1, + "name": "low_voltage_battery_high_usage" + }, + { + "id": 2, + "name": "vehicle_service_required" + } + ], + "examples": [ + { + "data_component": "00", + "value": "low_voltage_battery_service_required", + "description": "Battery charge transfer event happened because low-voltage battery needs service." + } + ] + }, + { + "id": 71, + "name": "station_status", + "name_cased": "stationStatus", + "name_pretty": "Station status", + "added": 13, + "type": "enum", + "size": 1, + "description": "Status of the charging station.", + "enum_values": [ + { + "id": 0, + "name": "not_compatible" + }, + { + "id": 1, + "name": "not_detected" + }, + { + "id": 2, + "name": "digital_communication_established" + }, + { + "id": 3, + "name": "digital_communication_ended" + }, + { + "id": 4, + "name": "station_ready" + } + ], + "examples": [ + { + "data_component": "04", + "value": "station_ready", + "description": "Charging station is ready." + } + ] + }, + { + "id": 72, + "name": "station_power_type", + "name_cased": "stationPowerType", + "name_pretty": "Station power type", + "added": 13, + "type": "enum", + "size": 1, + "description": "The power type of the connected charging station.", + "enum_values": [ + { + "id": 0, + "name": "ac_basic" + }, + { + "id": 1, + "name": "ac_smart" + }, + { + "id": 2, + "name": "dc_fast" + }, + { + "id": 3, + "name": "wireless" + } + ], + "examples": [ + { + "data_component": "01", + "value": "ac_smart", + "description": "The connected charging station is an AC smart charger." + } + ] + }, + { + "id": 73, + "name": "station_displayed_status", + "name_cased": "stationDisplayedStatus", + "name_pretty": "Station displayed status", + "added": 13, + "type": "enum", + "size": 1, + "description": "Status shown on the display of the charging station.", + "enum_values": [ + { + "id": 0, + "name": "not_plugged_in" + }, + { + "id": 1, + "name": "fault" + }, + { + "id": 2, + "name": "station_not_compatible" + }, + { + "id": 3, + "name": "station_not_detected" + }, + { + "id": 4, + "name": "in_progress" + }, + { + "id": 5, + "name": "scheduled" + }, + { + "id": 6, + "name": "paused" + }, + { + "id": 7, + "name": "stopped" + }, + { + "id": 9, + "name": "completed" + }, + { + "id": 10, + "name": "discharging" + }, + { + "id": 8, + "name": "not_ready" + } + ], + "examples": [ + { + "data_component": "04", + "value": "in_progress", + "description": "Charging station display shows 'in_progress'." + } + ] + }, + { + "id": 74, + "name": "battery_performance_status", + "name_cased": "batteryPerformanceStatus", + "name_pretty": "Battery performance status", + "added": 13, + "type": "enum", + "size": 1, + "description": "Performance status of the xEV battery.", + "enum_values": [ + { + "id": 0, + "name": "normal" + }, + { + "id": 1, + "name": "caution" + }, + { + "id": 2, + "name": "reduced" + }, + { + "id": 3, + "name": "severly_reduced" + } + ], + "examples": [ + { + "data_component": "00", + "value": "normal", + "description": "Battery performance status is 'normal'." + } + ] + }, + { + "id": 75, + "name": "hybrid_operating_mode", + "name_cased": "hybridOperatingMode", + "name_pretty": "Hybrid operating mode", + "added": 13, + "type": "enum", + "size": 1, + "description": "Operating mode of the hybrid vehicle.", + "enum_values": [ + { + "id": 0, + "name": "auto_charge_deplete" + }, + { + "id": 1, + "name": "auto_charge_sustain" + }, + { + "id": 2, + "name": "forced_charge_sustain" + }, + { + "id": 3, + "name": "forced_electric" + }, + { + "id": 4, + "name": "forced_non_electric" + }, + { + "id": 5, + "name": "temporary_charge_sustain" + }, + { + "id": 6, + "name": "prioritize_charge_generation" + } + ], + "examples": [ + { + "data_component": "01", + "value": "auto_charge_sustain", + "description": "Hybrid vehicle is in 'auto_charge_sustain' mode." + } + ] + }, + { + "id": 76, + "name": "charger_power", + "name_cased": "chargerPower", + "name_pretty": "Charger power", + "added": 13, + "type": "unit.power", + "size": 10, + "description": "Power of the charger.", + "examples": [ + { + "data_component": "1402405e000000000000", + "value": { + "kilowatts": 120 + }, + "description": "Charger power is 120.0kW." + } ] } ] diff --git a/specs/capabilities/usage.json b/specs/capabilities/usage.json index 0329af1..45c034f 100644 --- a/specs/capabilities/usage.json +++ b/specs/capabilities/usage.json @@ -136,7 +136,7 @@ "data_component": "050000000000000000", "values": { "driving_mode": "comfort", - "period": 0.0 + "period": 0 }, "description": "Driving mode 'eco' is engaged 0% of the time" } @@ -196,7 +196,7 @@ "values": { "driving_mode": "eco_plus", "consumption": { - "kilowatt_hours": 18.0 + "kilowatt_hours": 18 } }, "description": "Driving mode 'eco_plus' consumed 18.0kWh of electric energy" @@ -265,7 +265,7 @@ { "data_component": "120440f7590000000000", "value": { - "kilometers": 95632.0 + "kilometers": 95632 }, "description": "Mileage is 95'632km after last trip" } @@ -386,7 +386,7 @@ { "data_component": "120440f7590000000000", "value": { - "kilometers": 95632.0 + "kilometers": 95632 }, "description": "Odometer is 95'632km after last trip" } @@ -472,7 +472,7 @@ "kilometers": 1500.88 }, "time": { - "weeks": 10.0 + "weeks": 10 } }, "description": "During the last 10.0 weeks the vehicle travelled 1500.88km" @@ -530,7 +530,7 @@ { "data_component": "120040fb198000000000", "value": { - "meters": 111000.0 + "meters": 111000 }, "description": "Vehicle travelled 111000.0m using electricity during the last trip" } @@ -549,7 +549,7 @@ { "data_component": "1200410b198000000000", "value": { - "meters": 222000.0 + "meters": 222000 }, "description": "Vehicle travelled 222000.0m using electricity since last reset" } @@ -568,7 +568,7 @@ { "data_component": "07014053400000000000", "value": { - "minutes": 77.0 + "minutes": 77 }, "description": "Vehicle travelled 77.0min using electricity during last trip" } @@ -587,7 +587,7 @@ { "data_component": "07014056000000000000", "value": { - "minutes": 88.0 + "minutes": 88 }, "description": "Vehicle travelled 88.0min using electricity since last reset" } @@ -682,7 +682,7 @@ { "data_component": "120040fb198000000000", "value": { - "meters": 111000.0 + "meters": 111000 }, "description": "Vehicle travelled 111000.0m using fuel during the last trip" } @@ -701,7 +701,7 @@ { "data_component": "1200410b198000000000", "value": { - "meters": 222000.0 + "meters": 222000 }, "description": "Vehicle travelled 222000.0m using fuel since last reset" } @@ -720,7 +720,7 @@ { "data_component": "07014053400000000000", "value": { - "minutes": 77.0 + "minutes": 77 }, "description": "Vehicle travelled 77.0min during last trip" } @@ -739,7 +739,7 @@ { "data_component": "07014056000000000000", "value": { - "minutes": 88.0 + "minutes": 88 }, "description": "Vehicle travelled 88.0min since last reset" } @@ -910,7 +910,7 @@ { "data_component": "140040a1f80000000000", "value": { - "watts": 2300.0 + "watts": 2300 }, "description": "Recuperation energy is 2300.0W." } @@ -931,9 +931,9 @@ "data_component": "000007064093480000000000", "values": { "direction": "longitudinal", - "type": "normal", + "type": "regular", "duration": { - "milliseconds": 1234.0 + "milliseconds": 1234 } }, "description": "Normal longitudinal acceleration lasted 1234.0ms." @@ -944,12 +944,27 @@ "direction": "lateral", "type": "positive_outlier", "duration": { - "milliseconds": 1234.0 + "milliseconds": 1234 } }, "description": "Positive outlier lateral acceleration lasted 1234.0ms." } ] + }, + { + "id": 46, + "name": "last_trip_battery_regenerated", + "name_cased": "lastTripBatteryRegenerated", + "name_pretty": "Last trip battery regenerated", + "type": "types.percentage", + "description": "Estimated electrical charge (in %) that was recovered through regeneration during a trip.", + "examples": [ + { + "data_component": "3fc1eb851eb851ec", + "value": 0.14, + "description": "Battery recovered 14% of charge through regeneration." + } + ] } ] -} \ No newline at end of file +} diff --git a/specs/misc/custom_types.json b/specs/misc/custom_types.json index 4da1bb0..4fb092c 100644 --- a/specs/misc/custom_types.json +++ b/specs/misc/custom_types.json @@ -864,7 +864,7 @@ "name_pretty": "Acceleration", "type": "unit.acceleration", "size": 10, - "description": "The accelaration" + "description": "The acceleration" } ] },