bimmer_connected.remote_services

Trigger remote services on a vehicle.

class bimmer_connected.remote_services.ExecutionState[source]

Enumeration of possible states of the execution of a remote service.

DELIVERED = 'DELIVERED'
EXECUTED = 'EXECUTED'
INITIATED = 'INITIATED'
PENDING = 'PENDING'
UNKNOWN = 'UNKNOWN'
class bimmer_connected.remote_services.Message(data: dict)[source]

Text message or PointOfInterst to be sent to the vehicle.

as_server_request

Convert to a dictionary so that it can be sent to the server.

classmethod from_poi(poi: bimmer_connected.remote_services.PointOfInterest)[source]

Create a message from a PointOfInterest

classmethod from_text(text: str, subject: str = None)[source]

Create a text message

class bimmer_connected.remote_services.PointOfInterest(lat: float, lon: float, name: str = None, additional_info: str = None, street: str = None, city: str = None, postal_code: str = None, country: str = None, website: str = None, phone_numbers: [<class 'str'>] = None)[source]

Point of interest to be sent to the vehicle.

The latitude/longitude of a POI are mandatory, all other attributes are optional. CamelCase attribute names are used here so that we do not have to convert the names between the attributes and the keys as expected on the server.

class bimmer_connected.remote_services.RemoteServiceStatus(response: dict)[source]

Wraps the status of the execution of a remote service.

class bimmer_connected.remote_services.RemoteServices(account, vehicle)[source]

Trigger remote services on a vehicle.

trigger_remote_air_conditioning() → bimmer_connected.remote_services.RemoteServiceStatus[source]

Trigger the air conditioning to start.

A state update is NOT triggered after this, as the vehicle state is unchanged.

trigger_remote_door_lock() → bimmer_connected.remote_services.RemoteServiceStatus[source]

Trigger the vehicle to lock its doors.

A state update is triggered after this, as the lock state of the vehicle changes.

trigger_remote_door_unlock() → bimmer_connected.remote_services.RemoteServiceStatus[source]

Trigger the vehicle to unlock its doors.

A state update is triggered after this, as the lock state of the vehicle changes.

trigger_remote_horn() → bimmer_connected.remote_services.RemoteServiceStatus[source]

Trigger the vehicle to sound its horn.

A state update is NOT triggered after this, as the vehicle state is unchanged.

trigger_remote_light_flash() → bimmer_connected.remote_services.RemoteServiceStatus[source]

Trigger the vehicle to flash its headlights.

A state update is NOT triggered after this, as the vehicle state is unchanged.

trigger_remote_vehicle_finder() → bimmer_connected.remote_services.RemoteServiceStatus[source]

Trigger the vehicle finder.

A state update is triggered after this, as the location state of the vehicle changes.

trigger_send_message(data: dict) → bimmer_connected.remote_services.RemoteServiceStatus[source]

Send a message to the vehicle.

Parameters:data (dict) – A dictonary containing a ‘text’ and an optional ‘subject’

A state update is NOT triggered after this, as the vehicle state is unchanged.

trigger_send_poi(data: dict) → bimmer_connected.remote_services.RemoteServiceStatus[source]

Send a PointOfInterest to the vehicle.

Parameters:data (dict) – A dictonary containing at least ‘lat’ and ‘lon’ and optionally ‘name’, ‘additionalInfo’, ‘street’, ‘city’, ‘postalCode’, ‘country’, ‘website’ or ‘phoneNumbers’

A state update is NOT triggered after this, as the vehicle state is unchanged.