chore: simplify templates (#26868)
This commit is contained in:
parent
1c49be86fa
commit
6bf8b46f2a
10 changed files with 1 additions and 39 deletions
|
|
@ -21,6 +21,4 @@ params:
|
|||
render: |
|
||||
type: chargex
|
||||
{{- include "modbus" . }}
|
||||
{{- if ne .connector "1" }}
|
||||
connector: {{ .connector }}
|
||||
{{- end }}
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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" . }}
|
||||
|
|
|
|||
|
|
@ -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" . }}
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -377,6 +377,7 @@ params:
|
|||
description:
|
||||
en: Channel
|
||||
de: Kanal
|
||||
type: int
|
||||
- name: clientid
|
||||
description:
|
||||
generic: Client ID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue