EEBUS: ignore a max number of meter no data errors (#7717)
* 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!
This commit is contained in:
parent
27f0a1471e
commit
5eb6e2b0ae
1 changed files with 4 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue