Add volvo2mqtt (#16771)

This commit is contained in:
Triple IT 2024-10-23 16:24:35 +02:00 • committed by GitHub
parent 0b3aa11add
commit 85b658397d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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