Skip to content

Commit

Permalink
update properties to L13.4
Browse files Browse the repository at this point in the history
  • Loading branch information
slashmili committed Jun 13, 2024
1 parent 3ee35f0 commit 0f75643
Show file tree
Hide file tree
Showing 10 changed files with 297 additions and 37 deletions.
2 changes: 1 addition & 1 deletion lib/auto_api/capabilities/charging_capability.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule AutoApi.ChargingCapability do
iex> C.description
"Charging"
iex> length(C.properties)
78
81
iex> List.first(C.properties)
{0x02, :estimated_range}
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/auto_api/capabilities/dashboard_lights_capability.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule AutoApi.DashboardLightsCapability do
iex> F.description
"Dashboard Lights"
iex> length(F.properties)
7
8
iex> List.first(F.properties)
{0x01, :dashboard_lights}
"""
Expand Down
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)
57
58
iex> List.first(D.properties)
{0x01, :mileage}
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/auto_api/capabilities/navi_destination_capability.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule AutoApi.NaviDestinationCapability do
iex> N.description
"Navi Destination"
iex> length(N.properties)
11
13
iex> List.first(N.properties)
{0x01, :coordinates}
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/auto_api/capabilities/trips_capability.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule AutoApi.TripsCapability do
iex> T.description
"Trips"
iex> length(T.properties)
28
30
iex> List.first(T.properties)
{1, :type}
"""
Expand Down
143 changes: 143 additions & 0 deletions specs/capabilities/charging.json
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,11 @@
"id": 12,
"name": "flap_open",
"disabled_in_setter": true
},
{
"id": 13,
"name": "ready_for_charging",
"disabled_in_setter": true
}
],
"examples": [
Expand Down Expand Up @@ -1642,6 +1647,10 @@
{
"id": 11,
"name": "error"
},
{
"id": 12,
"name": "blue"
}
],
"examples": [
Expand Down Expand Up @@ -1842,6 +1851,10 @@
{
"id": 4,
"name": "station_ready"
},
{
"id": 5,
"name": "active"
}
],
"examples": [
Expand Down Expand Up @@ -2050,6 +2063,136 @@
"description": "Charger power is 120.0kW."
}
]
},
{
"id": 77,
"name": "conserving_charge",
"name_cased": "conservingCharge",
"name_pretty": "Conserving charge",
"added": 13,
"type": "types.active_state",
"description": "Indicates if the vehicle is conserving charge.",
"examples": [
{
"data_component": "01",
"value": "active",
"description": "Vehicle is conserving charge."
}
]
},
{
"id": 78,
"name": "charging_rate_distance",
"name_cased": "chargingRateDistance",
"name_pretty": "Charging rate distance",
"added": 13,
"type": "types.distance_over_time",
"description": "Range increase per time unit during ongoing charging process based on the average energy comsumption for driving.",
"examples": [
{
"data_component": "12044062c0000000000007023ff0000000000000",
"values": {
"distance": {
"kilometers": 150
},
"time": {
"hours": 1
}
},
"description": "Range increases by 150.0km in 1.0h."
}
]
},
{
"id": 79,
"name": "charging_scenario",
"name_cased": "chargingScenario",
"name_pretty": "Charging scenario",
"added": 13,
"type": "enum",
"size": 1,
"description": "Charging scenario.",
"enum_values": [
{
"id": 0,
"name": "off"
},
{
"id": 1,
"name": "charging_to_departure_time_finished"
},
{
"id": 2,
"name": "immediately_charging_finished"
},
{
"id": 3,
"name": "optimised_charging_finished"
},
{
"id": 4,
"name": "charging_to_departure_time_active"
},
{
"id": 5,
"name": "immediately_charging_active"
},
{
"id": 6,
"name": "optimised_charging_active"
},
{
"id": 7,
"name": "charging_to_departure_time_waiting"
},
{
"id": 8,
"name": "optimised_charging_waiting"
},
{
"id": 9,
"name": "no_grid_voltage"
},
{
"id": 10,
"name": "error_lock"
},
{
"id": 11,
"name": "error_charging_system"
},
{
"id": 12,
"name": "initialization_charging_communication"
},
{
"id": 13,
"name": "immediately_optimised_charging_active"
},
{
"id": 14,
"name": "immediately_optimised_charging_finished"
},
{
"id": 15,
"name": "emergency_charging"
},
{
"id": 16,
"name": "charging_interrupt_by_user"
},
{
"id": 17,
"name": "plug_releasable"
}
],
"examples": [
{
"data_component": "01",
"value": "charging_to_departure_time_finished",
"description": "Charging scenario is 'charging_to_departure_time_finished'."
}
]
}
]
}
33 changes: 32 additions & 1 deletion specs/capabilities/dashboard_lights.json
Original file line number Diff line number Diff line change
Expand Up @@ -1710,6 +1710,37 @@
"description": "A high beam has failed."
}
]
},
{
"id": 3,
"name": "dynamic_warnings",
"name_cased": "dynamicWarnings",
"name_pretty": "Dynamic warnings",
"name_singular": "dynamic_warning",
"added": 13,
"type": "types.dynamic_warning",
"multiple": true,
"description": "Dynamic warnings",
"examples": [
{
"data_component": "0006656e67696e650006616263303132000e456e67696e65207761726e696e67",
"values": {
"category": "engine",
"id": "abc012",
"description": "Engine warning"
},
"description": "Dynamic warning with category 'engine' and id 'abc012' has a description 'Engine warning'."
},
{
"data_component": "000a686561646c69676874730007666f6f5f3132330012486561646c6967687473207761726e696e67",
"values": {
"category": "headlights",
"id": "foo_123",
"description": "Headlights warning"
},
"description": "Dynamic warning with category 'headlights' and id 'foo_123' has a description 'Headlights warning'."
}
]
}
]
}
}
Loading

0 comments on commit 0f75643

Please sign in to comment.