Kostal: add Piko legacy template (#3557)
This commit is contained in:
parent
362da422b6
commit
d93cf01108
2 changed files with 39 additions and 0 deletions
27
templates/definition/meter/kostal-piko-legacy.yaml
Normal file
27
templates/definition/meter/kostal-piko-legacy.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
template: kostal-piko-legacy
|
||||
products:
|
||||
- brand: Kostal
|
||||
description:
|
||||
generic: Piko (legacy)
|
||||
guidedsetup:
|
||||
enable: true
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["pv"]
|
||||
- name: host
|
||||
- name: user
|
||||
required: true
|
||||
- name: password
|
||||
required: true
|
||||
render: |
|
||||
type: custom
|
||||
power:
|
||||
{{- if eq .usage "pv" }}
|
||||
source: http
|
||||
uri: http://{{ .host }}
|
||||
auth:
|
||||
type: basic
|
||||
user: {{ .user }}
|
||||
password: {{ .password }}
|
||||
regex: '(?s)aktuell.*?(\d+)<'
|
||||
{{- end -}}
|
||||
12
templates/docs/meter/kostal-piko-legacy_0.yaml
Normal file
12
templates/docs/meter/kostal-piko-legacy_0.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
product:
|
||||
brand: Kostal
|
||||
description: Piko (legacy)
|
||||
render:
|
||||
- usage: pv
|
||||
default: |
|
||||
type: template
|
||||
template: kostal-piko-legacy
|
||||
usage: pv
|
||||
host: 192.0.2.2 # IP-Adresse oder Hostname
|
||||
user: # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
|
||||
password: # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
|
||||
Loading…
Add table
Add a link
Reference in a new issue