Add Huawei SmartLogger (#7850)
This commit is contained in:
parent
ad250f6d3d
commit
370b15aaca
2 changed files with 45 additions and 0 deletions
34
templates/definition/meter/huawei-smartlogger.yaml
Normal file
34
templates/definition/meter/huawei-smartlogger.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
template: huawei-smartlogger
|
||||
products:
|
||||
- brand: Huawei
|
||||
description:
|
||||
generic: SmartLogger
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["pv"]
|
||||
- name: host
|
||||
required: true
|
||||
example: 192.0.2.2
|
||||
- name: port
|
||||
default: 502
|
||||
render: |
|
||||
type: custom
|
||||
{{- if eq .usage "pv" }}
|
||||
power:
|
||||
source: modbus
|
||||
id: 0
|
||||
uri: {{ .host }}:{{ .port }}
|
||||
register:
|
||||
address: 40525 # Active power
|
||||
type: holding
|
||||
decode: int32
|
||||
energy:
|
||||
source: modbus
|
||||
id: 0
|
||||
uri: {{ .host }}:{{ .port }}
|
||||
register:
|
||||
address: 40560 # E-Total
|
||||
type: holding
|
||||
decode: uint32
|
||||
scale: 0.1
|
||||
{{- end }}
|
||||
11
templates/docs/meter/huawei-smartlogger_0.yaml
Normal file
11
templates/docs/meter/huawei-smartlogger_0.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
product:
|
||||
brand: Huawei
|
||||
description: SmartLogger
|
||||
render:
|
||||
- usage: pv
|
||||
default: |
|
||||
type: template
|
||||
template: huawei-smartlogger
|
||||
usage: pv
|
||||
host: 192.0.2.2 # IP-Adresse oder Hostname
|
||||
port: 502 # Port (Optional)
|
||||
Loading…
Add table
Add a link
Reference in a new issue