Skip to content

Commit

Permalink
EEBUS: ignore a max number of meter no data errors (#7717)
Browse files Browse the repository at this point in the history
* Ignore a max number of meter no data errors

When an EV is connected, measurements are not available right away, as the initial communication is not done. And due to bugs in the Elli software, the EEBUS stack can not generally wait for data being available and only then set the EV as being connected.

This change ignores a maximum amount of specific EEBUS `no data available` errors, and only propagates them if the error occured more often.

The error will come anyway, if evcc is startet while an EV is connected to the Elli wallbox!
  • Loading branch information
DerAndereAndi committed May 5, 2023
1 parent 27f0a14 commit 5eb6e2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charger/eebus.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"time"

"github.com/enbility/cemd/emobility"
"github.com/enbility/eebus-go/features"
"github.com/evcc-io/evcc/api"
"github.com/evcc-io/evcc/charger/eebus"
"github.com/evcc-io/evcc/core/loadpoint"
Expand Down Expand Up @@ -420,6 +421,9 @@ func (c *EEBus) currents() (float64, float64, float64, error) {

currents, err := c.emobility.EVCurrentsPerPhase()
if err != nil {
if err == features.ErrDataNotAvailable {
return 0, 0, 0, api.ErrNotAvailable
}
return 0, 0, 0, err
}

Expand Down

0 comments on commit 5eb6e2b

Please sign in to comment.