Open stx opened 8 months ago
Add this to pkg/proxy/execute.go
after line 419
case "window_control":
cmd, err := params.getString("command", true)
if err != nil {
return err
}
if cmd == "vent" {
return car.VentWindows(ctx)
} else {
return car.CloseWindows(ctx)
}
window_control is missing from this switch statement, which causes window controls to work through Fleet API but not the SDK:
https://github.com/teslamotors/vehicle-command/blob/main/pkg/proxy/execute.go#L110