View Source PorscheConnEx.Struct.Maintenance.Task.Values (porsche_conn_ex v0.1.0)

Structure containing metadata about a maintenance task.

Fields

  • model_id (string) — a four-digit ID code
    • Seems to generally be the same as the ID code of the containing task.
  • model_state (atom) — unknown
    • only :active seen so far
  • model_name (string) — the name of the part to be replaced
    • This is generally always in German, regardless of locale.
  • model_visibility (atom) — unknown
    • only :visible seen so far
  • source (atom) — unknown
    • only :vehicle seen so far
  • event (atom) — unknown
    • only :cyclic seen so far
  • odometer_last_reset (integer) — unknown
    • Might be the odometer reading when the task was last performed.
  • criticality (integer) — unknown
    • Presumably some sort of priority sorting key.
    • Seems to generally be the same as the criticality of the containing task.
  • warnings (map of integer => integer) — unknown
    • In the raw data, these are represented as e.g. "WarnID294" : "0".
    • This gets translated into 294 => 0 in our warnings map.
    • It's possible that the warning codes are UI localisation keys, and the values are whether to show them or not? (No values other than "0" have been seen so far.)

Summary

Types

@type event() :: :cyclic
@type model_state() :: :active
@type model_visibility() :: :visible
@type source() :: :vehicle
@type t() :: %PorscheConnEx.Struct.Maintenance.Task.Values{
  criticality: integer(),
  event: event(),
  model_id: binary(),
  model_name: binary(),
  model_state: model_state(),
  model_visibility: model_visibility(),
  odometer_last_reset: integer(),
  source: source(),
  warnings: %{optional(integer()) => integer()}
}