Kostal: add Piko legacy template (#3557)

This commit is contained in:
premultiply 2022-06-04 12:27:56 +02:00 • committed by GitHub
parent 362da422b6
commit d93cf01108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View 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 -}}

View 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)