Switch sockets: add heating feature (#9996)
Some checks failed
Some checks failed
This commit is contained in:
parent
34afaef175
commit
16a118b55b
2 changed files with 14 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 -}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue