diff --git a/SmartTeslaAmpSetter/Server/MqttHelper.cs b/SmartTeslaAmpSetter/Server/MqttHelper.cs index 50e491a51..b77cbf2c5 100644 --- a/SmartTeslaAmpSetter/Server/MqttHelper.cs +++ b/SmartTeslaAmpSetter/Server/MqttHelper.cs @@ -236,6 +236,9 @@ private void UpdateCar(TeslaMateValue value) case "driving": car.CarState.State = CarState.Driving; break; + case "updating": + car.CarState.State = CarState.Updating; + break; default: _logger.LogWarning("Unknown car state deteckted: {carState}", value.Value); car.CarState.State = CarState.Unknown; diff --git a/SmartTeslaAmpSetter/Shared/Enums/CarState.cs b/SmartTeslaAmpSetter/Shared/Enums/CarState.cs index 20e57e4a5..28dfac9b4 100644 --- a/SmartTeslaAmpSetter/Shared/Enums/CarState.cs +++ b/SmartTeslaAmpSetter/Shared/Enums/CarState.cs @@ -8,5 +8,6 @@ public enum CarState Charging, Suspended, Driving, + Updating, Unknown, } \ No newline at end of file