Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homematic: Add Template Cache Parameter #7863

Merged
merged 14 commits into from
Jul 2, 2023
Prev Previous commit
Next Next commit
simplification
  • Loading branch information
thierolm committed Jun 5, 2023
commit 95469f7c9fb8292aa7a5162c0ea28a6b56b83436
6 changes: 3 additions & 3 deletions templates/definition/charger/homematic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ render: |
type: homematic
uri: {{ .host }}:{{ .port }}
device: {{ .device }}
{{ if ne .user "" }}
{{ if .user }}
user: {{ .user }}
{{ end }}
{{ if ne .password "" }}
{{ if .password }}
password: {{ .password }}
{{ end }}
meterchannel: {{ .meterchannel }}
switchchannel: {{ .switchchannel }}
{{ include "switchsocket" . }}
{{- if ne .cache "" }}
{{- if .cache }}
cache: {{ .cache }}
{{- end }}
4 changes: 2 additions & 2 deletions templates/definition/meter/homematic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ render: |
uri: {{ .host }}:{{- if (eq .usage "grid")}}2001{{ else }}2010{{end}}
device: {{ .device }}
meterchannel: {{ if (eq .usage "grid")}}1{{ else }}{{ .meterchannel }}{{end}}
{{ if ne .user "" }}
{{ if .user }}
user: {{ .user }}
{{ end }}
{{ if ne .password "" }}
{{ if .password }}
password: {{ .password }}
{{ end }}
{{- if .cache }}
Expand Down