35 lines
802 B
YAML
35 lines
802 B
YAML
template: sma-webbox
|
|
products:
|
|
- brand: SMA
|
|
description:
|
|
generic: WebBox
|
|
params:
|
|
- name: usage
|
|
choice: ["pv"]
|
|
allinone: true
|
|
- 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
|
|
{{- if eq .usage "pv" }}
|
|
power:
|
|
source: modbus
|
|
{{- include "modbus" . | indent 2 }}
|
|
register: # manual non-sunspec register configuration
|
|
address: 30775 # Pac
|
|
type: holding
|
|
decode: int32nan
|
|
energy:
|
|
source: modbus
|
|
{{- include "modbus" . | indent 2 }}
|
|
register: # manual non-sunspec register configuration
|
|
address: 30513 # E-Total
|
|
type: holding
|
|
decode: uint64nan
|
|
scale: 0.001
|
|
{{- end }}
|