evcc-io/util/templates/includes/mqtt.tpl
2023-03-18 09:17:52 +01:00

12 lines
228 B
Smarty

{{ define "mqtt" }}
broker: {{ .host }}:{{ .port }}
{{- if .user }}
user: {{ .user }}
{{- end }}
{{- if .password }}
password: {{ .password }}
{{- end }}
{{- if ne .timeout "30s" }}
timeout: {{ .timeout }}
{{- end }}
{{- end }}