Add SMA WebBox (#7865)

This commit is contained in:
premultiply 2023-05-09 14:40:53 +02:00 • committed by GitHub
parent 58f22c0d6e
commit 8a80049700
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,35 @@
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: The Modbus TCP-Server needs to be enabled on this WebBox
de: Der Modbus TCP-Server muss auf dieser WebBox 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 }}

View file

@ -0,0 +1,15 @@
product:
brand: SMA
description: WebBox
render:
- usage: pv
default: |
type: template
template: sma-webbox
usage: pv
# Modbus TCP
modbus: tcpip
id: 2
host: 192.0.2.2 # Hostname
port: 502 # Port