Add Huawei SmartLogger (#7850)

This commit is contained in:
premultiply 2023-05-18 13:45:24 +02:00 • committed by GitHub
parent ad250f6d3d
commit 370b15aaca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View 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 }}

View 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)