-
-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Easee: evcc configure fails #11328
Comments
Can reproduce locally. Triggered here: https://github.com/evcc-io/evcc/blob/master/cmd/configure/devicetest.go#L90 which in turn calls https://github.com/evcc-io/evcc/blob/master/charger/easee.go#L432 Caused by async nature of product updates flowing in. Options: @andig do we have prior art for such situations? For example, do other charger implementations guarantee a consistent state before returning from their factories? |
@GrimmiMeloni we typically try to wait for valid state, e.g. in OCPP. Since the wait is guarded by timeout anyway it should be ok to wait for opmode instead of connection. So simply move the |
Btw: not sure why the once.Close needs be put inside a defer while we're already holding the lock? I also don't think we need the |
Thanks for the fix. Regarding |
Reopening, as we reverted the fix. |
will be fixed again by #11435 |
As reported in #8059, it seems we have some race between the op_mode update and the charger status when running
evcc configure
.Hier die Fehlermeldung nach Configuration mit evcc --log trace configure
Originally posted by @PVJan in #8059 (reply in thread)
The text was updated successfully, but these errors were encountered: