99 lines
2.1 KiB
YAML
99 lines
2.1 KiB
YAML
template: huawei-dongle-powersensor
|
|
products:
|
|
- brand: Huawei
|
|
description:
|
|
generic: SUN2000 with SDongle & Power Sensor
|
|
guidedsetup:
|
|
enable: true
|
|
params:
|
|
- name: usage
|
|
choice: ["grid", "pv", "battery"]
|
|
- name: modbus
|
|
choice: ["tcpip"]
|
|
render: |
|
|
type: custom
|
|
{{- if eq .usage "grid" }}
|
|
power:
|
|
source: modbus
|
|
{{include "modbus" . | indent 2}}
|
|
model: huawei
|
|
timeout: 10s
|
|
connectdelay: 1s
|
|
register:
|
|
address: 37113 # Grid import export power
|
|
type: holding
|
|
decode: int32
|
|
scale: -1
|
|
energy:
|
|
source: modbus
|
|
{{include "modbus" . | indent 2}}
|
|
model: huawei
|
|
timeout: 10s
|
|
register:
|
|
address: 37121 # Active energy import from the grid
|
|
type: holding
|
|
decode: int32
|
|
scale: 0.01
|
|
currents:
|
|
- source: modbus
|
|
{{include "modbus" . | indent 2}}
|
|
model: huawei
|
|
timeout: 10s
|
|
register:
|
|
address: 37107 # Huawei phase A grid current
|
|
type: holding
|
|
decode: int32
|
|
scale: -0.01
|
|
- source: modbus
|
|
{{include "modbus" . | indent 2}}
|
|
model: huawei
|
|
timeout: 10s
|
|
register:
|
|
address: 37109 # Huawei phase B grid current
|
|
type: holding
|
|
decode: int32
|
|
scale: -0.01
|
|
- source: modbus
|
|
{{include "modbus" . | indent 2}}
|
|
model: huawei
|
|
timeout: 10s
|
|
register:
|
|
address: 37111 # Huawei phase C grid current
|
|
type: holding
|
|
decode: int32
|
|
scale: -0.01
|
|
{{- end }}
|
|
{{- if eq .usage "pv" }}
|
|
power:
|
|
source: modbus
|
|
{{include "modbus" . | indent 2}}
|
|
model: huawei
|
|
timeout: 10s
|
|
connectdelay: 1s
|
|
register:
|
|
address: 32080 # Active generation power
|
|
type: holding
|
|
decode: int32
|
|
{{- end }}
|
|
{{- if eq .usage "battery" }}
|
|
power:
|
|
source: modbus
|
|
{{include "modbus" . | indent 2}}
|
|
model: huawei
|
|
timeout: 10s
|
|
connectdelay: 1s
|
|
register:
|
|
address: 37001
|
|
type: holding
|
|
decode: int32
|
|
soc:
|
|
source: modbus
|
|
{{include "modbus" . | indent 2}}
|
|
model: huawei
|
|
timeout: 10s
|
|
register:
|
|
address: 37004
|
|
type: holding
|
|
decode: uint16
|
|
scale: 0.1
|
|
{{- end }}
|