Update climate settings in UpdateClimateQuickPresets for improved functionality
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s

This commit is contained in:
2025-07-21 16:03:00 -04:00
parent 32dfb8fb6e
commit 3809ed5883

View File

@ -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)