Switch sockets: add heating feature (#9996)
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled

This commit is contained in:
Michael Geers 2023-09-22 08:54:33 +02:00 • committed by GitHub
parent 34afaef175
commit 16a118b55b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View file

@ -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:

View file

@ -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 -}}