View Source PorscheConnEx.Struct.Status (porsche_conn_ex v0.1.0)

Structure containing overview information about a particular vehicle.

This is the structure returned by PorscheConnEx.Client.status/2.

Note that there is significant overlap between this structure and PorscheConnEx.Struct.Overview, and to a lesser degree, with PorscheConnEx.Struct.Emobility.

Fields

  • vin (string) — the 17-character Vehicle Identification Number
  • mileage (Distance) — the total distance the vehicle has travelled in its lifetime
  • battery_level (BatteryLevel) — the battery charge level of the vehicle
  • remaining_ranges (Status.RemainingRanges) — the estimated remaining travel ranges, by propulsion type
    • contains 2 sub-fields
  • service_intervals (map of string to Status.ServiceInterval) — upcoming service intervals
  • doors (Status.LockStatus) — the overall state of all vehicle doors
  • oil_level (unknown) — my Taycan has no oil, this is nil for me
  • fuel_level (unknown) — my Taycan has no fuel, this is nil for me

Summary

Types

@type t() :: %PorscheConnEx.Struct.Status{
  battery_level: PorscheConnEx.Struct.Unit.BatteryLevel.t(),
  doors: PorscheConnEx.Struct.Status.LockStatus.t(),
  fuel_level: any(),
  mileage: PorscheConnEx.Struct.Unit.Distance.t(),
  oil_level: any(),
  remaining_ranges: PorscheConnEx.Struct.Status.RemainingRanges.t(),
  service_intervals: %{
    optional(binary()) => PorscheConnEx.Struct.Status.ServiceInterval.t()
  },
  vin: binary()
}