From 7b3a3c4054434dd1061b8fc7738b468c8c0ac302 Mon Sep 17 00:00:00 2001 From: Gerard Date: Sat, 11 Feb 2023 20:09:04 +0100 Subject: [PATCH] Make new attributes available for HA Also add `charging_start_time` which is already part of `sensor.py` in HA but isn't available without this change --- bimmer_connected/vehicle/vehicle.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bimmer_connected/vehicle/vehicle.py b/bimmer_connected/vehicle/vehicle.py index 2405ffea..b0d9b5ca 100644 --- a/bimmer_connected/vehicle/vehicle.py +++ b/bimmer_connected/vehicle/vehicle.py @@ -224,6 +224,7 @@ def drive_train_attributes(self) -> List[str]: if self.has_electric_drivetrain: result += [ "charging_time_remaining", + "charging_start_time", "charging_end_time", "charging_time_label", "charging_status", @@ -231,6 +232,10 @@ def drive_train_attributes(self) -> List[str]: "remaining_battery_percent", "remaining_range_electric", "last_charging_end_result", + "ac_current_limit", + "charging_target", + "charging_mode", + "charging_preferences", ] if self.has_combustion_drivetrain: result += ["remaining_fuel", "remaining_range_fuel", "remaining_fuel_percent"]