Skip to content

Commit

Permalink
add new diagnostics properties
Browse files Browse the repository at this point in the history
  • Loading branch information
slashmili committed Nov 5, 2024
1 parent 3483cc1 commit aedb72a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auto_api/capabilities/diagnostics_capability.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule AutoApi.DiagnosticsCapability do
iex> D.description
"Diagnostics"
iex> length(D.properties)
58
61
iex> List.first(D.properties)
{0x01, :mileage}
"""
Expand Down
51 changes: 51 additions & 0 deletions specs/capabilities/diagnostics.json
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,57 @@
"description": "Estimated primary powertrain`s range is 256.0km"
}
]
},
{
"id": 58,
"name": "estimated_mixed_powertrain_range",
"name_cased": "estimatedMixedPowertrainRange",
"name_pretty": "Estimated mixed powertrain range",
"added": 13,
"type": "unit.length",
"size": 10,
"description": "Estimated distance the vehicle can travel with the current fuel level",
"examples": [
{
"data_component": "12044070900000000000",
"value": {
"kilometers": 265
},
"description": "Estimated mixed powertrain range is 256.0km"
}
]
},
{
"id": 59,
"name": "primary_energy_level",
"name_cased": "primaryEnergyLevel",
"name_pretty": "Primary energy level",
"added": 13,
"type": "types.percentage",
"description": "Primary energy percentage between 0.0-1.0",
"examples": [
{
"data_component": "3fe999999999999a",
"value": 0.8,
"description": "Primary energy level is at 80%"
}
]
},
{
"id": 60,
"name": "secondary_energy_level",
"name_cased": "secondaryEnergyLevel",
"name_pretty": "Secondary energy level",
"added": 13,
"type": "types.percentage",
"description": "Secondary energy percentage between 0.0-1.0",
"examples": [
{
"data_component": "3fe999999999999a",
"value": 0.8,
"description": "Secondary energy level is at 80%"
}
]
}
]
}

0 comments on commit aedb72a

Please sign in to comment.