forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Varta: add template without pv sensor (evcc-io#3281)
- Loading branch information
Showing
4 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
templates/definition/meter/varta-energiespeicher-battery-only.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
templates/docs/meter/varta-energiespeicher-battery-only_0.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters