From 3809ed5883b4acacadfc93f22657bcea54cb1054 Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Mon, 21 Jul 2025 16:03:00 -0400 Subject: [PATCH] Update climate settings in UpdateClimateQuickPresets for improved functionality --- vehicle.go | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/vehicle.go b/vehicle.go index 78d09a0..f84f856 100644 --- a/vehicle.go +++ b/vehicle.go @@ -530,22 +530,31 @@ func (v *Vehicle) UpdateClimateQuickPresets() error { } params := map[string]string{ - "presetType": "userPreset", "name": "Cooling", "runTimeMinutes": "10", - "climateZoneFrontTemp": "65", - "climateZoneFrontAirMode": "FEET_FACE_BALANCED", - "climateZoneFrontAirVolume": "5", - "outerAirCirculation": "outsideAir", - "heatedRearWindowActive": "false", - "heatedSeatFrontLeft": "HIGH_COOL", - "airConditionOn": "false", - "startConfiguration": "START_ENGINE_ALLOW_KEY_IN_IGNITION", - // "canEdit": "true", - // "disabled": "false", + "climateSettings": "climateSettings", // climateSettings + "climateZoneFrontTemp": "65", // 60-86 + "climateZoneFrontAirMode": "FEET_WINDOW", // FEET_FACE_BALANCED | FEET_WINDOW | WINDOW | FEET + "climateZoneFrontAirVolume": "7", // 1-7 + "heatedSeatFrontLeft": "HIGH_COOL", // OFF | LOW_HEAT | MEDIUM_HEAT | HIGH_HEAT | LOW_COOL | MEDIUM_COOL | HIGH_COOL + "heatedSeatFrontRight": "HIGH_COOL", // ---//--- + "heatedRearWindowActive": "false", // boolean + "outerAirCirculation": "outsideAir", // outsideAir | recirculation + "airConditionOn": "false", // boolean + "startConfiguration": "START_ENGINE_ALLOW_KEY_IN_IGNITION", // START_ENGINE_ALLOW_KEY_IN_IGNITION | ONLY FOR PHEV > START_CLIMATE_CONTROL_ONLY_ALLOW_KEY_IN_IGNITION + + // "presetType": "userPreset", + // "climateZoneFrontTemp": "65", + // "climateZoneFrontAirMode": "FEET_FACE_BALANCED", + // "climateZoneFrontAirVolume": "5", + // "outerAirCirculation": "outsideAir", + // "heatedRearWindowActive": "false", + // "heatedSeatFrontLeft": "HIGH_COOL", + // "airConditionOn": "false", + // "startConfiguration": "START_ENGINE_ALLOW_KEY_IN_IGNITION", } reqUrl := MOBILE_API_VERSION + apiURLs["API_G2_SAVE_RES_QUICK_START_SETTINGS"] - resp, _ := v.client.execute(POST, reqUrl, params, false) + resp, _ := v.client.execute(POST, reqUrl, params, true) v.client.logger.Debug("http request output", "request", "UpdateClimateUserPresets", "body", resp)