Add volvo2mqtt (#16771)
This commit is contained in:
parent
0b3aa11add
commit
85b658397d
1 changed files with 58 additions and 0 deletions
58
templates/definition/vehicle/volvo2mqtt.yaml
Normal file
58
templates/definition/vehicle/volvo2mqtt.yaml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
template: volvo2mqtt
|
||||
products:
|
||||
- description:
|
||||
generic: volvo2mqtt
|
||||
group: generic
|
||||
requirements:
|
||||
description:
|
||||
en: Requires MQTT broker configuration and a volvo2mqtt installation https://github.com/Dielee/volvo2mqtt
|
||||
de: Erforderlich ist eine konfigurierte MQTT Broker-Konfiguration und eine volvo2mqtt-Installation https://github.com/Dielee/volvo2mqtt.
|
||||
params:
|
||||
- name: title
|
||||
- name: icon
|
||||
default: car
|
||||
advanced: true
|
||||
- name: vin
|
||||
required: true
|
||||
help:
|
||||
de: Erforderlich
|
||||
en: Required
|
||||
- name: capacity
|
||||
- name: phases
|
||||
advanced: true
|
||||
- name: timeout
|
||||
default: 720h
|
||||
- preset: vehicle-identify
|
||||
render: |
|
||||
type: custom
|
||||
{{- if .title }}
|
||||
title: {{ .title }}
|
||||
{{- end }}
|
||||
{{- if .icon }}
|
||||
icon: {{ .icon }}
|
||||
{{- end }}
|
||||
{{- if .capacity }}
|
||||
capacity: {{ .capacity }}
|
||||
{{- end }}
|
||||
{{- if .phases }}
|
||||
phases: {{ .phases }}
|
||||
{{- end }}
|
||||
{{- include "vehicle-identify" . }}
|
||||
soc:
|
||||
source: mqtt
|
||||
topic: homeassistant/sensor/{{ .vin }}_battery_charge_level/state
|
||||
timeout: {{ .timeout }}
|
||||
status:
|
||||
source: combined
|
||||
plugged:
|
||||
source: mqtt
|
||||
topic: homeassistant/sensor/{{ .vin }}_charging_connection_status/state
|
||||
timeout: {{ .timeout }}
|
||||
charging:
|
||||
source: mqtt
|
||||
topic: homeassistant/sensor/{{ .vin }}_charging_system_status/state
|
||||
timeout: {{ .timeout }}
|
||||
range:
|
||||
source: mqtt
|
||||
topic: homeassistant/sensor/{{ .vin }}_electric_range/state
|
||||
timeout: {{ .timeout }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue