Homeassistant Switch: use common naming standard (BC) (#24307)
This commit is contained in:
parent
0940b325f6
commit
cee01bf7a3
1 changed files with 5 additions and 7 deletions
|
|
@ -8,8 +8,6 @@ group: switchsockets
|
|||
requirements:
|
||||
evcc: ["skiptest"]
|
||||
params:
|
||||
- name: baseurl
|
||||
deprecated: true
|
||||
- name: uri
|
||||
required: true
|
||||
example: http://homeassistant.local:8123
|
||||
|
|
@ -22,13 +20,13 @@ params:
|
|||
help:
|
||||
de: aus Home Assistant Profil
|
||||
en: from Home Assistant profile
|
||||
- name: switchentity
|
||||
- name: switch
|
||||
required: true
|
||||
description:
|
||||
de: Entity ID des schaltbaren Geräts
|
||||
en: Entity ID of the switch device
|
||||
example: switch.smartsocket
|
||||
- name: powerentity
|
||||
- name: power
|
||||
description:
|
||||
de: Entity ID für Leistungsmessung
|
||||
en: Entity ID for power measurement
|
||||
|
|
@ -36,8 +34,8 @@ params:
|
|||
- preset: switchsocket
|
||||
render: |
|
||||
type: homeassistant-switch
|
||||
uri: {{ if (eq .uri "") }}{{ .baseurl }}{{ else }}{{ .uri }}{{ end }}
|
||||
uri: {{ .uri }}
|
||||
token: {{ .token }}
|
||||
enable: {{ .switchentity }}
|
||||
power: {{ .powerentity }}
|
||||
enable: {{ .switch }}
|
||||
power: {{ .power }}
|
||||
{{ include "switchsocket" . }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue