-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add SMA Sunny Home Manager 2.0 ModbusTCP incl. curtailment #32091
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
Open
frbehrens
wants to merge
14
commits into
evcc-io:master
Choose a base branch
from
frbehrens:feat/SMA-SHM-curtail
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+77
−13
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5d62648
SMA SHM: new template with modbus transport and curtail
5ba5eb0
core: a grid meter may curtail the site production when it implements…
dcb59ef
core: don't display curtailed percent value "-1", this means "unknown"
7f967a9
core: fix newline style (after lint check)
e7c4d03
core: fix variable
224e6a5
Merge branch 'master' into feat/SMA-SHM-curtail
andig 8ed31da
Include grid meter in curtailments
andig 7fc7eee
Use error
andig db65a34
Revert ui
andig adc6758
wip
andig f44e139
wip
andig 7e48ba3
Drop curtail grid
andig 15b2f96
fix panic after 8ed31dab073de656f33467a72bff495fdc14327c
0a6e1e0
Merge branch 'master' into feat/SMA-SHM-curtail
andig 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
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,60 @@ | ||
| template: sma-homemanager-modbus | ||
| products: | ||
| - brand: SMA | ||
| description: | ||
| generic: Sunny Home Manager 2.0 Modbus | ||
| capabilities: ["curtail"] | ||
| params: | ||
| - name: usage | ||
| choice: ["grid"] | ||
| - name: modbus | ||
| choice: ["tcpip"] | ||
| port: 502 | ||
| id: 2 | ||
| help: | ||
| en: ModbusTCP server needs to be enabled. | ||
| de: Der ModbusTCP Server muss aktiviert sein. | ||
| render: | | ||
| type: custom | ||
| power: | ||
| source: calc | ||
| add: | ||
| - source: modbus | ||
| {{- include "modbus" . | indent 6 }} | ||
| register: | ||
| address: 30865 # SMA Modbus Profile: Metering.GridMs.TotWIn | ||
| type: input | ||
| decode: int32nan | ||
| - source: modbus | ||
| {{- include "modbus" . | indent 6 }} | ||
| register: | ||
| address: 30867 # SMA Modbus Profile: Metering.GridMs.TotWOut | ||
| type: input | ||
| decode: int32nan | ||
| scale: -1 | ||
| energy: | ||
| source: modbus | ||
| {{- include "modbus" . | indent 2 }} | ||
| register: | ||
| address: 30581 # SMA Modbus Profile: Metering.GridMs.TotWhIn | ||
| type: holding | ||
| decode: int32nan | ||
| scale: 0.001 | ||
| returnenergy: | ||
| source: modbus | ||
| {{- include "modbus" . | indent 2 }} | ||
| register: | ||
| address: 30583 # SMA Modbus Profile: Metering.GridMs.TotWhOut | ||
| type: holding | ||
| decode: int32nan | ||
| scale: 0.001 | ||
| curtail: | ||
| source: modbus | ||
| {{- include "modbus" . | indent 2 }} | ||
| register: | ||
| address: 40016 # Wirkleistungssollwert P, in % der maximalen Wirkleistung (PMAX) der PV-Anlage. | ||
| type: writesingle | ||
| decode: uint16 | ||
| curtailed: | ||
| source: error | ||
| error: ErrNotAvailable |
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.