Co-authored-by: andig <cpuidle@gmail.com> Co-authored-by: Michael Geers <michael@geers.tv>
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
template: homeassistant-switch
|
|
products:
|
|
- brand: Home Assistant
|
|
description:
|
|
generic: Switch
|
|
group: switchsockets
|
|
requirements:
|
|
evcc: ["skiptest"]
|
|
description:
|
|
en: Home Assistant instances in your network will be auto-discovered and suitable entities (e.g. `switch.*`, `sensor.*`) will be suggested.
|
|
de: Home Assistant Instanzen in deinem Netzwerk werden automatisch erkannt und passende Entitäten (z.B. `switch.*`, `sensor.*`) werden vorgeschlagen.
|
|
auth:
|
|
type: homeassistant
|
|
params: [uri, insecure]
|
|
params:
|
|
- name: uri
|
|
description:
|
|
de: Home Assistant URI
|
|
en: Home Assistant URI
|
|
example: http://homeassistant.local:8123
|
|
help:
|
|
en: " " # overwrite default
|
|
de: " " # overwrite default
|
|
service: homeassistant/instances
|
|
required: true
|
|
- name: token
|
|
deprecated: true
|
|
- name: home
|
|
deprecated: true
|
|
- name: insecure
|
|
- name: switch
|
|
description:
|
|
de: Entity ID des schaltbaren Geräts
|
|
en: Entity ID of the switch device
|
|
service: homeassistant/entities?uri={uri}&insecure={insecure}&domain=switch
|
|
example: switch.smartsocket
|
|
required: true
|
|
- name: power
|
|
description:
|
|
de: Entity ID für Leistungsmessung
|
|
en: Entity ID for power measurement
|
|
service: homeassistant/entities?uri={uri}&insecure={insecure}&domain=sensor
|
|
example: sensor.smartsocket_power
|
|
- preset: switchsocket
|
|
render: |
|
|
type: homeassistant-switch
|
|
uri: {{ .uri }}
|
|
home: {{ .home }} # deprecated
|
|
insecure: {{ .insecure }}
|
|
enable: {{ .switch }}
|
|
power: {{ .power }}
|
|
{{ include "switchsocket" . }}
|