Add SMA WebBox (#7865)
This commit is contained in:
parent
58f22c0d6e
commit
8a80049700
2 changed files with 50 additions and 0 deletions
35
templates/definition/meter/sma-webbox.yaml
Normal file
35
templates/definition/meter/sma-webbox.yaml
Normal 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 }}
|
||||
15
templates/docs/meter/sma-webbox_0.yaml
Normal file
15
templates/docs/meter/sma-webbox_0.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue