Skip to content

Commit

Permalink
Switch sockets: add heating feature (#9996)
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis authored Sep 22, 2023
1 parent 34afaef commit 16a118b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion util/templates/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 7 additions & 1 deletion util/templates/includes/switchsocket.tpl
Original file line number Diff line number Diff line change
@@ -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 -}}

0 comments on commit 16a118b

Please sign in to comment.