Varta: add template without pv sensor (#3281)
This commit is contained in:
parent
ca9697488b
commit
013eda537d
4 changed files with 64 additions and 2 deletions
|
|
@ -0,0 +1,43 @@
|
|||
template: varta-energiespeicher-battery-only
|
||||
products:
|
||||
- brand: VARTA
|
||||
description:
|
||||
de: Energiespeicher (kein PV-Sensor)
|
||||
en: Energiespeicher (without PV Sensor)
|
||||
guidedsetup:
|
||||
enable: true
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["grid", "battery"]
|
||||
- name: host
|
||||
- name: port
|
||||
default: 502
|
||||
render: |
|
||||
type: custom
|
||||
power:
|
||||
source: modbus
|
||||
uri: {{ .host }}:{{ .port }}
|
||||
{{- if eq .usage "grid" }}
|
||||
id: 255
|
||||
register:
|
||||
address: 1078 # grid power
|
||||
type: input
|
||||
decode: int16
|
||||
scale: -1
|
||||
{{- end }}
|
||||
{{- if eq .usage "battery" }}
|
||||
id: 255
|
||||
register:
|
||||
address: 1066 # active power
|
||||
type: input
|
||||
decode: int16
|
||||
scale: -1
|
||||
soc:
|
||||
source: modbus
|
||||
uri: {{ .host }}:{{ .port }}
|
||||
id: 255
|
||||
register:
|
||||
address: 1068 # SOC
|
||||
type: input
|
||||
decode: int16
|
||||
{{- end }}
|
||||
|
|
@ -2,7 +2,8 @@ template: varta-energiespeicher
|
|||
products:
|
||||
- brand: VARTA
|
||||
description:
|
||||
generic: Energiespeicher
|
||||
de: Energiespeicher (mit PV-Sensor)
|
||||
en: Energiespeicher (with PV Sensor)
|
||||
guidedsetup:
|
||||
enable: true
|
||||
params:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
product:
|
||||
brand: VARTA
|
||||
description: Energiespeicher (kein PV-Sensor)
|
||||
render:
|
||||
- usage: grid
|
||||
default: |
|
||||
type: template
|
||||
template: varta-energiespeicher-battery-only
|
||||
usage: grid
|
||||
host: 192.0.2.2 # IP-Adresse oder Hostname
|
||||
port: 502 # Port # Optional
|
||||
- usage: battery
|
||||
default: |
|
||||
type: template
|
||||
template: varta-energiespeicher-battery-only
|
||||
usage: battery
|
||||
host: 192.0.2.2 # IP-Adresse oder Hostname
|
||||
port: 502 # Port # Optional
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
product:
|
||||
brand: VARTA
|
||||
description: Energiespeicher
|
||||
description: Energiespeicher (mit PV-Sensor)
|
||||
render:
|
||||
- usage: grid
|
||||
default: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue