Skip to content

Commit

Permalink
add L13.4 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
doofyus committed Jun 11, 2024
1 parent 13c0bc6 commit b721366
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 3 deletions.
53 changes: 50 additions & 3 deletions L13/capabilities/charging.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,18 @@
"description": "Power of the charger.",
"$ref": "#/$defs/property_power"
},
"conserving_charge": {
"description": "Indicates if the vehicle is conserving charge.",
"$ref": "#/$defs/property_active_state"
},
"charging_rate_distance": {
"description": "Range increase per time unit during ongoing charging process based on the average energy comsumption for driving.",
"$ref": "#/$defs/property_distance_over_time"
},
"charging_scenario": {
"description": "Charging scenario.",
"$ref": "#/$defs/property_charging_scenario"
},

"nonce": { "$ref": "#/$defs/property_nonce" },
"vin": { "$ref": "#/$defs/property_vin" }
Expand Down Expand Up @@ -394,7 +406,7 @@
"properties": {
"data": {
"type": "string",
"enum": ["no_colour", "white", "yellow", "green", "red", "yellow_pulsing", "green_pulsing", "red_pulsing", "green_red_pulsing", "green_flashing", "initialising", "error"]
"enum": ["no_colour", "white", "yellow", "green", "red", "yellow_pulsing", "green_pulsing", "red_pulsing", "green_red_pulsing", "green_flashing", "initialising", "error", "blue"]
},
"timestamp": {
"type": "string",
Expand Down Expand Up @@ -532,6 +544,24 @@
"additionalProperties": false
},

"property_charging_scenario": {
"type": "object",
"properties": {
"data": {
"type": "string",
"enum": ["off", "charging_to_departure_time_finished", "immediately_charging_finished", "optimised_charging_finished", "charging_to_departure_time_active", "immediately_charging_active", "optimised_charging_active", "charging_to_departure_time_waiting", "optimised_charging_waiting", "no_grid_voltage", "error_lock", "error_charging_system", "initialization_charging_communication", "immediately_optimised_charging_active", "immediately_optimised_charging_finished", "emergency_charging", "charging_interrupt_by_user", "plug_releasable"]
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"failure": { "$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/failure" },
"availability": { "$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/availability" }
},
"minProperties": 1,
"additionalProperties": false
},

"property_charging_time_display": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -621,6 +651,23 @@
"additionalProperties": false
},

"property_distance_over_time": {
"type": "object",
"properties": {
"data": {
"$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/distance_over_time"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"failure": { "$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/failure" },
"availability": { "$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/availability" }
},
"minProperties": 1,
"additionalProperties": false
},

"property_driving_mode_phev": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1016,7 +1063,7 @@
"properties": {
"data": {
"type": "string",
"enum": ["not_compatible", "not_detected", "digital_communication_established", "digital_communication_ended", "station_ready"]
"enum": ["not_compatible", "not_detected", "digital_communication_established", "digital_communication_ended", "station_ready", "active"]
},
"timestamp": {
"type": "string",
Expand All @@ -1034,7 +1081,7 @@
"properties": {
"data": {
"type": "string",
"enum": ["not_charging", "charging", "charging_complete", "initialising", "charging_paused", "charging_error", "cable_unplugged", "slow_charging", "fast_charging", "discharging", "foreign_object_detected", "conditioning", "flap_open"]
"enum": ["not_charging", "charging", "charging_complete", "initialising", "charging_paused", "charging_error", "cable_unplugged", "slow_charging", "fast_charging", "discharging", "foreign_object_detected", "conditioning", "flap_open", "ready_for_charging"]
},
"timestamp": {
"type": "string",
Expand Down
24 changes: 24 additions & 0 deletions L13/capabilities/dashboard_lights.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
"$ref": "#/$defs/property_bulb_failures"
}
},
"dynamic_warnings": {
"description": "Dynamic warnings",
"type": "array",
"items": {
"$ref": "#/$defs/property_dynamic_warning"
}
},

"nonce": { "$ref": "#/$defs/property_nonce" },
"vin": { "$ref": "#/$defs/property_vin" }
Expand Down Expand Up @@ -60,6 +67,23 @@
"additionalProperties": false
},

"property_dynamic_warning": {
"type": "object",
"properties": {
"data": {
"$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/dynamic_warning"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"failure": { "$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/failure" },
"availability": { "$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/availability" }
},
"minProperties": 1,
"additionalProperties": false
},

"property_nonce": {
"type": "object",
"properties": {
Expand Down
4 changes: 4 additions & 0 deletions L13/capabilities/diagnostics.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@
"description": "Passenger airbag is activated or not",
"$ref": "#/$defs/property_active_state"
},
"estimated_primary_powertrain_range": {
"description": "Estimated primary powertrain range",
"$ref": "#/$defs/property_length"
},

"nonce": { "$ref": "#/$defs/property_nonce" },
"vin": { "$ref": "#/$defs/property_vin" }
Expand Down
25 changes: 25 additions & 0 deletions L13/capabilities/navi_destination.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
"description": "Remaining distance to reach the destination.",
"$ref": "#/$defs/property_length"
},
"battery_consumption_to_destination": {
"description": "Required battery charge level to proceed to the next destination.",
"$ref": "#/$defs/property_percentage"
},
"charging_time_for_destination": {
"description": "Required charging time to reach the next destination.",
"$ref": "#/$defs/property_duration"
},

"nonce": { "$ref": "#/$defs/property_nonce" },
"vin": { "$ref": "#/$defs/property_vin" }
Expand Down Expand Up @@ -110,6 +118,23 @@
"additionalProperties": false
},

"property_percentage": {
"type": "object",
"properties": {
"data": {
"$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/percentage"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"failure": { "$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/failure" },
"availability": { "$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/availability" }
},
"minProperties": 1,
"additionalProperties": false
},

"property_string": {
"type": "object",
"properties": {
Expand Down
25 changes: 25 additions & 0 deletions L13/capabilities/trips.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@
"description": "Number of times the brakes were applied during the trip.",
"$ref": "#/$defs/property_uinteger"
},
"id": {
"description": "ID of the trip",
"$ref": "#/$defs/property_string"
},
"duration": {
"description": "Duration of the trip",
"$ref": "#/$defs/property_duration"
},

"nonce": { "$ref": "#/$defs/property_nonce" },
"vin": { "$ref": "#/$defs/property_vin" }
Expand Down Expand Up @@ -146,6 +154,23 @@
"additionalProperties": false
},

"property_duration": {
"type": "object",
"properties": {
"data": {
"$ref": "/auto-api-json-schema/L13/misc/units.schema.json#/$defs/duration"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"failure": { "$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/failure" },
"availability": { "$ref": "/auto-api-json-schema/L13/misc/custom_types.schema.json#/$defs/availability" }
},
"minProperties": 1,
"additionalProperties": false
},

"property_eco_driving_threshold": {
"type": "object",
"properties": {
Expand Down
21 changes: 21 additions & 0 deletions L13/misc/custom_types.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,27 @@
"required": [ "driving_mode", "consumption" ]
},

"dynamic_warning": {
"description": "Dynamic warning",
"type": "object",
"properties": {
"category": {
"description": "Category of the warning",
"type": "string"
},
"id": {
"description": "Identifier of the warning",
"type": "string"
},
"description": {
"description": "Description of the warning",
"type": "string"
}
},
"additionalProperties": false,
"required": [ "category", "id", "description" ]
},

"eco_driving_threshold": {
"description": "Eco driving threshold",
"type": "object",
Expand Down

0 comments on commit b721366

Please sign in to comment.