forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EEbus: Monitor measurements after limit change (evcc-io#15778)
If a limit has been set, a measurement is expected to provided within 15s. If this is not the case, then show a warning and return an error. Also add support for the Elli Connect Pro internal meter again. This should now lead to those EEBUS wallboxes not providing measurements, to fall back to the actual limit being assumed as being the current measurement. And the user is informed about non function metering in the wallbox.
- Loading branch information
1 parent
3c359fc
commit ad0f547
Showing
3 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package eebus | ||
|
||
import ( | ||
"errors" | ||
|
||
eebusapi "github.com/enbility/eebus-go/api" | ||
"github.com/evcc-io/evcc/api" | ||
) | ||
|
||
func WrapError(err error) error { | ||
if errors.Is(err, eebusapi.ErrDataNotAvailable) { | ||
return api.ErrNotAvailable | ||
} | ||
return err | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,5 @@ params: | |
- name: ip | ||
render: | | ||
{{ include "eebus" . }} | ||
meter: true | ||
chargedEnergy: false |