diff --git a/templates/definition/charger/chargex.yaml b/templates/definition/charger/chargex.yaml index 356eaf528..31fa15c4c 100644 --- a/templates/definition/charger/chargex.yaml +++ b/templates/definition/charger/chargex.yaml @@ -21,6 +21,4 @@ params: render: | type: chargex {{- include "modbus" . }} - {{- if ne .connector "1" }} connector: {{ .connector }} - {{- end }} diff --git a/templates/definition/charger/evecube.yaml b/templates/definition/charger/evecube.yaml index 5fd3b6c67..c8cb4b81d 100644 --- a/templates/definition/charger/evecube.yaml +++ b/templates/definition/charger/evecube.yaml @@ -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 }} diff --git a/templates/definition/charger/homematic.yaml b/templates/definition/charger/homematic.yaml index 18e73394a..3c98b9473 100644 --- a/templates/definition/charger/homematic.yaml +++ b/templates/definition/charger/homematic.yaml @@ -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 }} diff --git a/templates/definition/charger/openwb.yaml b/templates/definition/charger/openwb.yaml index bcc1e26da..239f1d076 100644 --- a/templates/definition/charger/openwb.yaml +++ b/templates/definition/charger/openwb.yaml @@ -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 }} diff --git a/templates/definition/charger/shelly.yaml b/templates/definition/charger/shelly.yaml index 5ce1305b2..0763544a4 100644 --- a/templates/definition/charger/shelly.yaml +++ b/templates/definition/charger/shelly.yaml @@ -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" . }} diff --git a/templates/definition/charger/tasmota.yaml b/templates/definition/charger/tasmota.yaml index 58b995206..d0e8fd882 100644 --- a/templates/definition/charger/tasmota.yaml +++ b/templates/definition/charger/tasmota.yaml @@ -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" . }} diff --git a/templates/definition/meter/homematic.yaml b/templates/definition/meter/homematic.yaml index 5b5d50912..4b22cef2d 100644 --- a/templates/definition/meter/homematic.yaml +++ b/templates/definition/meter/homematic.yaml @@ -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 }} diff --git a/templates/definition/meter/shelly-1pm.yaml b/templates/definition/meter/shelly-1pm.yaml index aa9c6655e..956203484 100644 --- a/templates/definition/meter/shelly-1pm.yaml +++ b/templates/definition/meter/shelly-1pm.yaml @@ -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 diff --git a/templates/definition/meter/shelly-pro-3em.yaml b/templates/definition/meter/shelly-pro-3em.yaml index 8ae0d48ef..20df873c0 100644 --- a/templates/definition/meter/shelly-pro-3em.yaml +++ b/templates/definition/meter/shelly-pro-3em.yaml @@ -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 diff --git a/util/templates/defaults.yaml b/util/templates/defaults.yaml index 3fe09e663..0be379198 100644 --- a/util/templates/defaults.yaml +++ b/util/templates/defaults.yaml @@ -377,6 +377,7 @@ params: description: en: Channel de: Kanal + type: int - name: clientid description: generic: Client ID