chore: simplify templates (#26868)

This commit is contained in:
andig 2026-01-21 11:39:11 +01:00 • committed by GitHub
parent 1c49be86fa
commit 6bf8b46f2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 1 additions and 39 deletions

View file

@ -21,6 +21,4 @@ params:
render: |
type: chargex
{{- include "modbus" . }}
{{- if ne .connector "1" }}
connector: {{ .connector }}
{{- end }}

View file

@ -34,12 +34,6 @@ params:
render: |
type: evecube
uri: http://{{ .host }}
{{- if .user }}
user: {{ .user }}
{{- end }}
{{- if .password }}
password: {{ .password }}
{{- end }}
{{- if ne .connector "1" }}
connector: {{ .connector }}
{{- end }}

View file

@ -61,15 +61,9 @@ render: |
type: homematic
uri: {{ .host }}:{{ .port }}
device: {{ .device }}
{{- if .user }}
user: {{ .user }}
{{- end }}
{{- if .password }}
password: {{ .password }}
{{- end }}
meterchannel: {{ .meterchannel }}
switchchannel: {{ .switchchannel }}
{{ include "switchsocket" . }}
{{- if .cache }}
cache: {{ .cache }}
{{- end }}

View file

@ -20,9 +20,7 @@ params:
render: |
type: openwb
broker: {{ .host }}
{{- if ne .connector "1" }}
id: {{ .connector }} # loadpoint id
{{- end }}
{{- if ne .phases1p3p "false" }}
phases1p3p: true
{{- end }}

View file

@ -16,11 +16,7 @@ params:
render: |
type: shelly
uri: http://{{ .host }}
{{- if .user }}
user: {{ .user }}
{{- end }}
{{- if .password }}
password: {{ .password }}
{{- end }}
channel: {{ .channel }} # shelly device relay channel
{{ include "switchsocket" . }}

View file

@ -26,11 +26,7 @@ params:
render: |
type: tasmota
uri: http://{{ .host }}
{{- if .user }}
user: {{ .user }}
{{- end }}
{{- if .password }}
password: {{ .password }}
{{- end }}
channel: [{{ .channel }}] # list of relay channels [1,2,....,8]
{{ include "switchsocket" . }}

View file

@ -45,12 +45,6 @@ render: |
uri: {{ .host }}:{{- if (eq .usage "grid") }}2001{{- else }}2010{{- end }}
device: {{ .device }}
meterchannel: {{ if (eq .usage "grid") }}1{{ else }}{{ .meterchannel }}{{ end }}
{{- if .user }}
user: {{ .user }}
{{- end }}
{{- if .password }}
password: {{ .password }}
{{- end }}
{{- if .cache }}
cache: {{ .cache }}
{{- end }}

View file

@ -16,15 +16,10 @@ params:
- name: user
- name: password
- name: channel
default: 0
render: |
type: shelly
uri: http://{{ .host }} # shelly device ip address (local)
{{- if .user }}
user: {{ .user }}
{{- end }}
{{- if .password }}
password: {{ .password }}
{{- end }}
usage: {{ .usage }}
channel: {{ .channel }} # shelly device relay channel

View file

@ -12,11 +12,7 @@ params:
render: |
type: shelly
uri: http://{{ .host }} # shelly device ip address (local)
{{- if .user }}
user: {{ .user }}
{{- end }}
{{- if .password }}
password: {{ .password }}
{{- end }}
usage: {{ .usage }}
channel: 0 # shelly device relay channel

View file

@ -377,6 +377,7 @@ params:
description:
en: Channel
de: Kanal
type: int
- name: clientid
description:
generic: Client ID