From 16a118b55bfc23928b656e5efc318f1c5d4dbfb8 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Fri, 22 Sep 2023 08:54:33 +0200 Subject: [PATCH] Switch sockets: add heating feature (#9996) --- util/templates/defaults.yaml | 8 +++++++- util/templates/includes/switchsocket.tpl | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/util/templates/defaults.yaml b/util/templates/defaults.yaml index f31c73df1..d6556e0ae 100644 --- a/util/templates/defaults.yaml +++ b/util/templates/defaults.yaml @@ -331,9 +331,15 @@ presets: - name: integrateddevice type: bool advanced: true - description: + help: de: Integriertes Gerät (keine Fahrzeugverbindung) en: Integrated device (no vehicle connection) + - name: heating + type: bool + advanced: true + help: + de: Wärmeerzeuger (°C anstatt %) + en: Heating device (°C instead of %) - name: icon advanced: true ocpp: diff --git a/util/templates/includes/switchsocket.tpl b/util/templates/includes/switchsocket.tpl index 7f3419434..e37766386 100644 --- a/util/templates/includes/switchsocket.tpl +++ b/util/templates/includes/switchsocket.tpl @@ -1,5 +1,11 @@ {{ define "switchsocket" }} standbypower: {{ .standbypower }} -{{ if .integrateddevice }}features: ["integrateddevice"]{{ end }} +features: +{{- if .integrateddevice }} +- integrateddevice +{{- end }} +{{- if .heating }} +- heating +{{- end }} {{ if .icon }}icon: {{ .icon }}{{ end }} {{ end -}}