From dde00c4fdffc3101ab570cdb9768c45a1492f7a7 Mon Sep 17 00:00:00 2001 From: rikroe Date: Thu, 14 Oct 2021 23:46:57 +0200 Subject: [PATCH] Add stop AC service --- .../bmw_connected_drive/__init__.py | 1 + .../bmw_connected_drive/services.yaml | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/custom_components/bmw_connected_drive/__init__.py b/custom_components/bmw_connected_drive/__init__.py index f82a04f..843fd3a 100644 --- a/custom_components/bmw_connected_drive/__init__.py +++ b/custom_components/bmw_connected_drive/__init__.py @@ -74,6 +74,7 @@ "light_flash": "trigger_remote_light_flash", "sound_horn": "trigger_remote_horn", "activate_air_conditioning": "trigger_remote_air_conditioning", + "deactivate_air_conditioning": "trigger_remote_air_conditioning_stop", "find_vehicle": "trigger_remote_vehicle_finder", } diff --git a/custom_components/bmw_connected_drive/services.yaml b/custom_components/bmw_connected_drive/services.yaml index 964fb8a..3f5ff76 100644 --- a/custom_components/bmw_connected_drive/services.yaml +++ b/custom_components/bmw_connected_drive/services.yaml @@ -68,6 +68,28 @@ activate_air_conditioning: selector: text: +deactivate_air_conditioning: + name: Deactivate air conditioning + description: > + Stops the air conditioning of the vehicle. This only works on newer vehicles if you also + have the option in the MyBMW app. The vehicle is identified either via its + device entry or the VIN. If a VIN is specified, the device entry will be ignored. + fields: + device_id: + name: Car + description: The BMW Connected Drive device + selector: + device: + integration: bmw_connected_drive + vin: + name: VIN + description: The vehicle identification number (VIN) of the vehicle, 17 characters + advanced: true + required: false + example: WBANXXXXXX1234567 + selector: + text: + find_vehicle: name: Find vehicle description: >