Skip to content

Commit

Permalink
Add mazda2mqtt (#7985)
Browse files Browse the repository at this point in the history
  • Loading branch information
C64Axel committed May 15, 2023
1 parent f48dbd5 commit 63dc1a4
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
56 changes: 56 additions & 0 deletions 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 }}
28 changes: 28 additions & 0 deletions 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)
1 change: 1 addition & 0 deletions templates/evcc.io/brands.json
Expand Up @@ -179,6 +179,7 @@
"Jaguar",
"Kia",
"Land Rover",
"Mazda",
"Mini",
"Nissan",
"NIU",
Expand Down

0 comments on commit 63dc1a4

Please sign in to comment.