We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef22d42 commit a56a8b1Copy full SHA for a56a8b1
charger/smartevse.go
@@ -23,6 +23,7 @@ import (
23
"fmt"
24
"strconv"
25
"strings"
26
+ "time"
27
28
"github.com/evcc-io/evcc/api"
29
"github.com/evcc-io/evcc/util"
@@ -242,8 +243,17 @@ func (wb *smartEVSE) Phases1p3p(phases int) error {
242
243
}
244
245
return whenDisabled(wb, func() error {
246
+ // Wait 10 seconds before switching phases
247
+ // can this option be made configurable in evcc.yaml?
248
+ time.Sleep(10 * time.Second)
249
+
250
// Switch phases
251
_, err := wb.conn.WriteSingleRegister(smartEVSERegSettings, settings)
252
+ if err != nil {
253
+ // Wait 10 seconds after switching phases
254
255
+ }
256
257
return err
258
})
259
0 commit comments