-
-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SMA Modbus: split templates (#11909)
- Loading branch information
1 parent
9517277
commit 2d16052
Showing
4 changed files
with
203 additions
and
65 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
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,89 @@ | ||
template: sma-sbs-modbus | ||
products: | ||
- brand: SMA | ||
description: | ||
generic: Sunny Boy Storage (Modbus) | ||
capabilities: ["battery-control"] | ||
params: | ||
- name: usage | ||
choice: ["battery"] | ||
- name: modbus | ||
choice: ["tcpip"] | ||
port: 502 | ||
id: 3 | ||
help: | ||
en: The Modbus TCP-Server needs to be enabled on this inverter | ||
de: Der Modbus TCP-Server muss an diesem Wechselrichter aktiviert sein | ||
- name: capacity | ||
advanced: true | ||
- name: watchdog | ||
type: duration | ||
default: 60s | ||
advanced: true | ||
render: | | ||
type: custom | ||
power: | ||
source: modbus | ||
{{- include "modbus" . | indent 2 }} | ||
register: | ||
address: 30775 # SMA Modbus Profile: GridMs.TotW | ||
type: input | ||
decode: int32nan | ||
energy: | ||
source: modbus | ||
{{- include "modbus" . | indent 2 }} | ||
register: | ||
address: 30513 # SMA Modbus Profile: Metering.TotWhOut | ||
type: holding | ||
decode: uint64nan | ||
scale: 0.001 | ||
soc: | ||
source: modbus | ||
{{- include "modbus" . | indent 2 }} | ||
register: | ||
address: 30845 # SMA Modbus Profile: Bat.ChaStt | ||
type: holding | ||
decode: uint32nan | ||
batterymode: | ||
source: watchdog | ||
timeout: {{ .watchdog }} | ||
reset: 1 # reset watchdog on normal | ||
set: | ||
source: switch | ||
switch: | ||
- case: 1 # normal | ||
set: | ||
source: const | ||
value: 10000 # Maximale Wirkleistung 100.00% | ||
set: | ||
source: modbus | ||
{{- include "modbus" . | indent 10 }} | ||
register: | ||
address: 44039 # SMA Modbus Profile: Inverter.WModCfg.WCtlComCfg.WSptMaxNom | ||
type: writemultiple | ||
decode: int32 | ||
- case: 2 # hold | ||
set: | ||
source: const | ||
value: 0 # Maximale Wirkleistung 0.00% | ||
set: | ||
source: modbus | ||
{{- include "modbus" . | indent 10 }} | ||
register: | ||
address: 44039 # SMA Modbus Profile: Inverter.WModCfg.WCtlComCfg.WSptMaxNom | ||
type: writemultiple | ||
decode: int32 | ||
- case: 3 # charge | ||
set: | ||
source: const | ||
value: -10000 # Maximale Wirkleistung -100.00% | ||
set: | ||
source: modbus | ||
{{- include "modbus" . | indent 10 }} | ||
register: | ||
address: 44039 # SMA Modbus Profile: Inverter.WModCfg.WCtlComCfg.WSptMaxNom | ||
type: writemultiple | ||
decode: int32 | ||
{{- if .capacity }} | ||
capacity: {{ .capacity }} # kWh | ||
{{- end }} |
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,111 @@ | ||
template: sma-si-modbus | ||
products: | ||
- brand: SMA | ||
description: | ||
generic: Sunny Island (Modbus) | ||
capabilities: ["battery-control"] | ||
params: | ||
- name: usage | ||
choice: ["battery"] | ||
- name: modbus | ||
choice: ["tcpip"] | ||
port: 502 | ||
id: 3 | ||
help: | ||
en: The Modbus TCP-Server needs to be enabled on this inverter | ||
de: Der Modbus TCP-Server muss an diesem Wechselrichter aktiviert sein | ||
- name: capacity | ||
advanced: true | ||
- name: watchdog | ||
type: duration | ||
default: 60s | ||
advanced: true | ||
render: | | ||
type: custom | ||
power: | ||
source: modbus | ||
{{- include "modbus" . | indent 2 }} | ||
register: | ||
address: 30775 # SMA Modbus Profile: GridMs.TotW | ||
type: input | ||
decode: int32nan | ||
energy: | ||
source: modbus | ||
{{- include "modbus" . | indent 2 }} | ||
register: | ||
address: 30513 # SMA Modbus Profile: Metering.TotWhOut | ||
type: holding | ||
decode: uint64nan | ||
scale: 0.001 | ||
soc: | ||
source: modbus | ||
{{- include "modbus" . | indent 2 }} | ||
register: | ||
address: 30845 # SMA Modbus Profile: Bat.ChaStt | ||
type: holding | ||
decode: uint32nan | ||
batterymode: | ||
source: watchdog | ||
timeout: {{ .watchdog }} | ||
reset: 1 # reset watchdog on normal | ||
set: | ||
source: switch | ||
switch: | ||
- case: 1 # normal | ||
set: | ||
source: const | ||
value: 803 # inaktiv (Ina) | ||
set: | ||
source: modbus | ||
{{- include "modbus" . | indent 10 }} | ||
register: | ||
address: 40151 # SMA Modbus Profile: Inverter.WModCfg.WCtlComCfg.WCtlComAct | ||
type: writemultiple | ||
decode: uint32 | ||
- case: 2 # hold | ||
set: | ||
source: sequence | ||
set: | ||
- source: const | ||
value: 0 # Wirkleistungsvorgabe | ||
set: | ||
source: modbus | ||
{{- include "modbus" . | indent 12 }} | ||
register: | ||
address: 40149 # SMA Modbus Profile: Inverter.WModCfg.WCtlComCfg.WSpt | ||
type: writemultiple | ||
decode: int32 | ||
- source: const | ||
value: 802 # aktiv (Act) | ||
set: | ||
source: modbus | ||
{{- include "modbus" . | indent 12 }} | ||
register: | ||
address: 40151 # SMA Modbus Profile: Inverter.WModCfg.WCtlComCfg.WCtlComAct | ||
type: writemultiple | ||
decode: uint32 | ||
- case: 3 # charge | ||
set: | ||
source: sequence | ||
set: | ||
- source: const | ||
value: -2147483648 # Wirkleistungsvorgabe | ||
set: | ||
source: modbus | ||
{{- include "modbus" . | indent 12 }} | ||
register: | ||
address: 40149 # SMA Modbus Profile: Inverter.WModCfg.WCtlComCfg.WSpt | ||
type: writemultiple | ||
decode: int32 | ||
- source: const | ||
value: 802 # aktiv (Act) | ||
set: | ||
source: modbus | ||
{{- include "modbus" . | indent 12 }} | ||
register: | ||
address: 40151 # SMA Modbus Profile: Inverter.WModCfg.WCtlComCfg.WCtlComAct | ||
type: writemultiple | ||
decode: uint32 | ||
{{- if .capacity }} | ||
capacity: {{ .capacity }} # kWh | ||
{{- end }} |