diff --git a/charger/easee.go b/charger/easee.go index 9c5538cfe5..7b6b3966ad 100644 --- a/charger/easee.go +++ b/charger/easee.go @@ -189,6 +189,12 @@ func NewEasee(user, password, charger string, timeout time.Duration, authorize b err = os.ErrDeadlineExceeded } + if err == nil { + // poll opMode from charger as API can give outdated initial data + uri := fmt.Sprintf("%s/chargers/%s/commands/poll_chargeropmode", easee.API, c.charger) + _, err = c.Post(uri, request.JSONContent, nil) + } + return c, err }