-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
EEBus meter: add MPC/LPC use cases #24082
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
Merged
+240
−36
Merged
Changes from 5 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1bef6dc
wip
premultiply cd54440
wip
premultiply d952e71
fix test
premultiply 9e1f7f0
fix test
premultiply b626d18
add lpc use case
premultiply 7c41b4b
fix template
premultiply 4c095cc
fix meter timeout
premultiply 01e1c65
Merge branch 'master' into device/eebus-meter
premultiply 1ccf6af
Merge branch 'master' into device/eebus-meter
premultiply 078ddcb
fix apis, use host
premultiply 3b4369f
partly revert host, remove powers
premultiply 7fd6325
Merge branch 'master' into device/eebus-meter
premultiply 65f3996
better errror message
premultiply cb6ab96
add todo on limit
premultiply 826ab35
fix test
premultiply c249c75
wip
premultiply 2865727
fix test
premultiply 11aa4d8
add ext usage to template system
premultiply 34cc999
fix usage handling
premultiply 77b692b
simplify
premultiply cfc965a
wip
andig 8c06e05
split templates
premultiply 0ed99eb
update templates, revert ext usage
premultiply bd68cbf
generate usage enumer
premultiply d0c2b00
limit 0W
premultiply e8367db
Merge branch 'master' into device/eebus-meter
premultiply File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,25 @@ | ||
package meter | ||
|
||
import ( | ||
"context" | ||
"testing" | ||
|
||
"github.com/evcc-io/evcc/util/test" | ||
) | ||
|
||
func TestEEBus(t *testing.T) { | ||
acceptable := []string{ | ||
"eebus not configured", | ||
} | ||
|
||
values := map[string]any{ | ||
"ski": "test-ski", | ||
"ip": "192.0.2.2", | ||
"usage": "grid", | ||
"timeout": "10s", | ||
} | ||
|
||
if _, err := NewFromConfig(context.TODO(), "eebus", values); err != nil && !test.Acceptable(err, acceptable) { | ||
t.Error(err) | ||
} | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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,54 @@ | ||
template: eebus-meter | ||
products: | ||
- brand: Generic | ||
description: | ||
de: EEBus Netzanschlusspunkt (MGCP) | ||
en: EEBus grid connection point (MGCP) | ||
- brand: Generic | ||
description: | ||
de: EEBus Verbraucher oder Messstelle (MPC) | ||
en: EEBus consumer or metering device (MPC) | ||
requirements: | ||
description: | ||
de: Ein EEBus Verbraucher oder Messstelle mit bekanntem SKI (Subject Key Identifier). Unterstützt werden die Use Cases MGCP (Monitoring of Grid Connection Point), MPC (Monitoring & Power Consumption) und LPC (Limitation of Power Consumption). | ||
en: An EEBus consumer or metering device with a known SKI (Subject Key Identifier). Supports MGCP (grid connection points), MPC (generic power monitoring), and LPC (Limitation of Power Consumption) use cases. | ||
evcc: ["eebus"] | ||
params: | ||
- name: ski | ||
description: | ||
en: SKI (Subject Key Identifier) of the EEBus device | ||
de: SKI (Subject Key Identifier) des EEBus-Geräts | ||
- name: ip | ||
description: | ||
en: IP address (optional) | ||
de: IP-Adresse (optional) | ||
help: | ||
en: The IP address of the EEBus device. If not specified, the device will be discovered automatically via mDNS. | ||
de: Die IP-Adresse des EEBus-Geräts. Falls nicht angegeben, wird das Gerät automatisch über mDNS gefunden. | ||
- name: usage | ||
type: choice | ||
default: grid | ||
values: | ||
- grid | ||
- other | ||
description: | ||
en: Usage type (grid=MGCP, other=MPC) | ||
de: Verwendungsart (grid=MGCP, andere=MPC) | ||
help: | ||
en: | | ||
Determines the EEBus use case: | ||
- grid: Uses MGCP (Monitoring of Grid Connection Point) | ||
- other: Uses MPC (Monitoring & Power Consumption) | ||
de: | | ||
Bestimmt den EEBus Use Case: | ||
- grid: Verwendet MGCP (Monitoring of Grid Connection Point) | ||
- other: Verwendet MPC (Monitoring & Power Consumption) | ||
render: | | ||
type: eebus | ||
ski: {{ .ski }} | ||
{{- if .ip }} | ||
ip: {{ .ip }} | ||
{{- end }} | ||
{{- if .usage }} | ||
usage: {{ .usage }} | ||
{{- end }} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.