Refactor vehicle climate control methods to improve parameter handling and add new climate preset updates
Some checks failed
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Failing after 24s

This commit is contained in:
2025-07-10 08:36:31 -04:00
parent ebe98e685a
commit 89b3d44d82
3 changed files with 153 additions and 50 deletions

View File

@ -70,8 +70,6 @@ var apiURLs = map[string]string{
"API_EV_FETCH_CHARGE_SETTINGS": "/service/g2/phevGetTimerSettings/execute.json",
"API_EV_SAVE_CHARGE_SETTINGS": "/service/g2/phevSendTimerSetting/execute.json",
"API_EV_DELETE_CHARGE_SCHEDULE": "/service/g2/phevDeleteTimerSetting/execute.json",
// "API_G2_FETCH_CLIMATE_SETTINGS": "/service/g2/remoteEngineStart/fetch.json",
// "API_G2_SAVE_CLIMATE_SETTINGS": "/service/g2/remoteEngineStart/save.json",
}
// TODO: Get back and add wrapper to support Feature List
@ -267,7 +265,7 @@ const (
REAR_AC_ON = "true"
REAR_AC_OFF = "false"
START_CONFIG = "startConfiguration"
START_CONFIG_DEFAULT_EV = "start_Climate_Control_only_allow_key_in_ignition"
START_CONFIG_DEFAULT_EV = "START_CLIMATE_CONTROL_ONLY_ALLOW_KEY_IN_IGNITION"
START_CONFIG_DEFAULT_RES = "START_ENGINE_ALLOW_KEY_IN_IGNITION"
WHICH_DOOR = "unlockDoorType" // Unlock doors constants
ALL_DOORS = "ALL_DOORS_CMD"
@ -411,3 +409,32 @@ const (
// ]
// BAD_BINARY_SENSOR_VALUES = [UNKNOWN, VENTED, NOT_EQUIPPED]
)
// RAW_API_FIELDS_TO_REDACT = [
// "cachedStateCode",
// "customer",
// "email",
// "firstName",
// "lastName",
// "latitude",
// "licensePlate",
// "licensePlateState",
// "longitude",
// "nickname",
// "odometer",
// "odometerValue",
// "odometerValueKilometers",
// "oemCustId",
// "phone",
// "preferredDealer",
// "sessionCustomer",
// "timeZone",
// "userOemCustId",
// "vehicleGeoPosition",
// "vehicleKey",
// "vehicleMileage",
// "vehicleName",
// "vhsId",
// "vin",
// "zip",
// ]