From 38425da2ed20e20b425af8bc28ffceff919f8b48 Mon Sep 17 00:00:00 2001 From: Ingrimmsch93 Date: Mon, 4 Mar 2024 22:01:38 +0100 Subject: [PATCH] Update audi_models.py Added: plugLockState, externalPower, plugledColor --- custom_components/audiconnect/audi_models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/audiconnect/audi_models.py b/custom_components/audiconnect/audi_models.py index 6ccbb567..ea6863e8 100644 --- a/custom_components/audiconnect/audi_models.py +++ b/custom_components/audiconnect/audi_models.py @@ -73,7 +73,10 @@ def __init__(self, data): self._tryAppendStateWithTs(data, "chargeMode", -1, ["charging", "chargingStatus", "value", "chargeMode"]) self._tryAppendStateWithTs(data, "chargingState", -1, ["charging", "chargingStatus", "value", "chargingState"]) self._tryAppendStateWithTs(data, "plugState", -1, ["charging", "plugStatus", "value", "plugConnectionState"]) - self._tryAppendStateWithTs(data, "remainingChargingTime", -1, ["charging", "chargingStatus", "value", "remainingChargingTimeToComplete_min"]) + self._tryAppendStateWithTs(data, "remainingChargingTime", -1, ["charging", "chargingStatus", "value", "remainingChargingTimeToComplete_min"]) + self._tryAppendStateWithTs(data, "plugLockState", -1, ["charging", "plugStatus", "value", "plugLockState"]) + self._tryAppendStateWithTs(data, "externalPower", -1, ["charging", "plugStatus", "value", "externalPower"]) + self._tryAppendStateWithTs(data, "plugledColor", -1, ["charging", "plugStatus", "value", "ledColor"]) self._tryAppendStateWithTs(data, "climatisationState", -1, ["climatisation", "auxiliaryHeatingStatus", "value", "climatisationState"])