Update climate settings in UpdateClimateQuickPresets for improved functionality
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s
This commit is contained in:
33
vehicle.go
33
vehicle.go
@ -530,22 +530,31 @@ func (v *Vehicle) UpdateClimateQuickPresets() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
params := map[string]string{
|
params := map[string]string{
|
||||||
"presetType": "userPreset",
|
|
||||||
"name": "Cooling",
|
"name": "Cooling",
|
||||||
"runTimeMinutes": "10",
|
"runTimeMinutes": "10",
|
||||||
"climateZoneFrontTemp": "65",
|
"climateSettings": "climateSettings", // climateSettings
|
||||||
"climateZoneFrontAirMode": "FEET_FACE_BALANCED",
|
"climateZoneFrontTemp": "65", // 60-86
|
||||||
"climateZoneFrontAirVolume": "5",
|
"climateZoneFrontAirMode": "FEET_WINDOW", // FEET_FACE_BALANCED | FEET_WINDOW | WINDOW | FEET
|
||||||
"outerAirCirculation": "outsideAir",
|
"climateZoneFrontAirVolume": "7", // 1-7
|
||||||
"heatedRearWindowActive": "false",
|
"heatedSeatFrontLeft": "HIGH_COOL", // OFF | LOW_HEAT | MEDIUM_HEAT | HIGH_HEAT | LOW_COOL | MEDIUM_COOL | HIGH_COOL
|
||||||
"heatedSeatFrontLeft": "HIGH_COOL",
|
"heatedSeatFrontRight": "HIGH_COOL", // ---//---
|
||||||
"airConditionOn": "false",
|
"heatedRearWindowActive": "false", // boolean
|
||||||
"startConfiguration": "START_ENGINE_ALLOW_KEY_IN_IGNITION",
|
"outerAirCirculation": "outsideAir", // outsideAir | recirculation
|
||||||
// "canEdit": "true",
|
"airConditionOn": "false", // boolean
|
||||||
// "disabled": "false",
|
"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"]
|
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)
|
v.client.logger.Debug("http request output", "request", "UpdateClimateUserPresets", "body", resp)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user