bimmer_connected.models

Generals models used for bimmer_connected.

class bimmer_connected.models.GPSPosition(latitude: Optional[float], longitude: Optional[float])[source]

GPS coordinates.

class bimmer_connected.models.PointOfInterest(lat: dataclasses.InitVar, lon: dataclasses.InitVar, name: Optional[str] = None, street: dataclasses.InitVar = None, postal_code: dataclasses.InitVar = None, city: dataclasses.InitVar = None, country: dataclasses.InitVar = None)[source]

A Point of Interest to be sent to the car.

city = None
country = None
name = None
postal_code = None
street = None
class bimmer_connected.models.PointOfInterestAddress(street: Optional[str] = None, postalCode: Optional[str] = None, city: Optional[str] = None, country: Optional[str] = None)[source]

Address data of a PointOfInterest.

city = None
country = None
postalCode = None
street = None
class bimmer_connected.models.StrEnum[source]

A string enumeration of type (str, Enum). All members are compared via upper(). Defaults to UNKNOWN.

class bimmer_connected.models.ValueWithUnit[source]

A value with a corresponding unit.

unit

Alias for field number 1

value

Alias for field number 0

class bimmer_connected.models.VehicleDataBase[source]

A base class for parsing and storing complex vehicle data.

classmethod from_vehicle_data(vehicle_data: Dict[KT, VT])[source]

Creates the class based on vehicle data from API.

update_from_vehicle_data(vehicle_data: Dict[KT, VT])[source]

Updates the attributes based on vehicle data from API.