diff --git a/templates/definition/vehicle/mazda2mqtt.yaml b/templates/definition/vehicle/mazda2mqtt.yaml new file mode 100644 index 0000000000..df9a282b6e --- /dev/null +++ b/templates/definition/vehicle/mazda2mqtt.yaml @@ -0,0 +1,56 @@ +template: mazda2mqtt +products: + - brand: Mazda + description: + generic: Publish all myMazda Car Data to MQTT (mazda2mqtt) +requirements: + description: + en: Required MQTT broker configuration + de: Voraussetzung ist ein konfigurierter MQTT Broker +params: + - name: title + - name: vin + required: true + - name: capacity + - name: phases + advanced: true + - name: icon + default: car + advanced: true + - name: timeout + default: 1h + advanced: true + - 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: mazda2mqtt/{{ .vin }}/chargeInfo/batteryLevelPercentage + timeout: {{ .timeout }} + status: + source: combined + plugged: + source: mqtt + topic: mazda2mqtt/{{ .vin }}/chargeInfo/pluggedIn + timeout: {{ .timeout }} + charging: + source: mqtt + topic: mazda2mqtt/{{ .vin }}/chargeInfo/charging + timeout: {{ .timeout }} + range: + source: mqtt + topic: mazda2mqtt/{{ .vin }}/chargeInfo/drivingRangeKm + timeout: {{ .timeout }} diff --git a/templates/docs/vehicle/mazda2mqtt_0.yaml b/templates/docs/vehicle/mazda2mqtt_0.yaml new file mode 100644 index 0000000000..188ab8511b --- /dev/null +++ b/templates/docs/vehicle/mazda2mqtt_0.yaml @@ -0,0 +1,28 @@ +product: + brand: Mazda + description: Publish all myMazda Car Data to MQTT (mazda2mqtt) +description: | + Voraussetzung ist ein konfigurierter MQTT Broker +render: + - default: | + type: template + template: mazda2mqtt + title: # Wird in der Benutzeroberfläche angezeigt (Optional) + vin: W... # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind + capacity: 50 # Akkukapazität in kWh (Optional) + advanced: | + type: template + template: mazda2mqtt + title: # Wird in der Benutzeroberfläche angezeigt (Optional) + vin: W... # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind + capacity: 50 # Akkukapazität in kWh (Optional) + phases: 3 # Die maximale Anzahl der Phasen welche genutzt werden können (Optional) + icon: car # Icon in der Benutzeroberfläche (Optional) + timeout: 1h # Optional + mode: # Möglich sind Off, Now, MinPV und PV, oder leer wenn keiner definiert werden soll (Optional) + minSoc: 25 # Ladung mit maximaler Geschwindigkeit bis zu dem angegeben Ladestand unabhängig PV-Erzeugung, wenn der Lademodus nicht auf 'Aus' steht (Optional) + targetSoc: 80 # Bis zu welchem Ladestand (Soc) soll das Fahrzeug geladen werden (Optional) + minCurrent: 6 # Definiert die minimale Stromstärke pro angeschlossener Phase mit welcher das Fahrzeug geladen werden soll (Optional) + maxCurrent: 16 # Definiert die maximale Stromstärke pro angeschlossener Phase mit welcher das Fahrzeug geladen werden soll (Optional) + identifiers: # Kann meist erst später eingetragen werden, siehe: https://docs.evcc.io/docs/guides/vehicles/#erkennung-des-fahrzeugs-an-der-wallbox (Optional) + priority: # Priorität des Ladepunktes oder Fahrzeugs in Relation zu anderen Ladepunkten oder Fahrzeugen für die Zuweisung von PV-Energie (Optional) diff --git a/templates/evcc.io/brands.json b/templates/evcc.io/brands.json index ae7ed07ea5..a20c9356b5 100644 --- a/templates/evcc.io/brands.json +++ b/templates/evcc.io/brands.json @@ -179,6 +179,7 @@ "Jaguar", "Kia", "Land Rover", + "Mazda", "Mini", "Nissan", "NIU",