bimmer_connected.models
Generals models used for bimmer_connected.
- class bimmer_connected.models.AnonymizedResponse(filename: str, content: List | Dict | str | None = None)[source]
An anonymized response.
- content: List | Dict | str | None = None
- filename: str
- class bimmer_connected.models.ChargingSettings(chargingTarget: int | None, acLimitValue: int | None = None)[source]
Charging settings to control the vehicle.
- acLimitValue: int | None = None
- chargingTarget: int | None
- dcLoudness = None
- isUnlockCableActive = None
- class bimmer_connected.models.GPSPosition(latitude: float | None, longitude: float | None)[source]
GPS coordinates.
- classmethod init_nonempty(latitude: float | None, longitude: float | None)[source]
Initialize GPSPosition but do not allow empty latitude/longitude.
- latitude: float | None
- longitude: float | None
- exception bimmer_connected.models.MyBMWAuthError[source]
Auth-related error from BMW API (HTTP status codes 401 and 403).
- exception bimmer_connected.models.MyBMWRemoteServiceError[source]
Error when executing remote services.
- class bimmer_connected.models.PointOfInterest(lat: dataclasses.InitVar[float], lon: dataclasses.InitVar[float], name: dataclasses.InitVar[Optional[str]] = 'Sent with ♥ by bimmer_connected', street: dataclasses.InitVar[str] = None, postal_code: dataclasses.InitVar[str] = None, city: dataclasses.InitVar[str] = None, country: dataclasses.InitVar[str] = None, formattedAddress: str | None = None, placeType: str | None = 'ADDRESS', title: str | None = 'Sent with ♥ by bimmer_connected', provider: str | None = None, providerId: str | None = None, providerPoiId: str = '', sourceType: str | None = None, vehicleCategoryId: str | None = None)[source]
A Point of Interest to be sent to the car.
- address: PointOfInterestAddress | None
- category: Dict[str, str | None]
- city: dataclasses.InitVar[str] = None
- country: dataclasses.InitVar[str] = None
- entrances: List | None
- formattedAddress: str | None = None
- lat: dataclasses.InitVar[float]
- lon: dataclasses.InitVar[float]
- name: dataclasses.InitVar[Optional[str]] = 'Sent with ♥ by bimmer_connected'
- placeType: str | None = 'ADDRESS'
- position: Dict[str, float]
- postal_code: dataclasses.InitVar[str] = None
- provider: str | None = None
- providerId: str | None = None
- providerPoiId: str = ''
- sourceType: str | None = None
- street: dataclasses.InitVar[str] = None
- title: str | None = 'Sent with ♥ by bimmer_connected'
- vehicleCategoryId: str | None = None
- class bimmer_connected.models.PointOfInterestAddress(street: str | None = None, postalCode: str | None = None, city: str | None = None, country: str | None = None, formatted: str | None = None, banchi: str | None = None, chome: str | None = None, countryCode: str | None = None, district: str | None = None, go: str | None = None, houseNumber: str | None = None, region: str | None = None, regionCode: str | None = None, settlement: str | None = None, subblock: str | None = None)[source]
Address data of a PointOfInterest.
- banchi: str | None = None
- chome: str | None = None
- city: str | None = None
- country: str | None = None
- countryCode: str | None = None
- district: str | None = None
- formatted: str | None = None
- go: str | None = None
- houseNumber: str | None = None
- postalCode: str | None = None
- region: str | None = None
- regionCode: str | None = None
- settlement: str | None = None
- street: str | None = None
- subblock: str | None = None
- class bimmer_connected.models.StrEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
A string enumeration of type (str, Enum). All members are compared via upper(). Defaults to UNKNOWN.
- class bimmer_connected.models.ValueWithUnit(value: int | float | None, unit: str | None)[source]
A value with a corresponding unit.
- unit: str | None
Alias for field number 1
- value: int | float | None
Alias for field number 0