From 9b2b42ac7d638b1114d4db2d98bed2e0984f462f Mon Sep 17 00:00:00 2001 From: StMond <110757379+StMond@users.noreply.github.com> Date: Fri, 27 Feb 2026 16:52:18 +0100 Subject: [PATCH] Add Mitsubishi Outlander PHEV (#27547) --- .../definition/vehicle/outlanderphev.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 templates/definition/vehicle/outlanderphev.yaml diff --git a/templates/definition/vehicle/outlanderphev.yaml b/templates/definition/vehicle/outlanderphev.yaml new file mode 100644 index 000000000..2aae9c830 --- /dev/null +++ b/templates/definition/vehicle/outlanderphev.yaml @@ -0,0 +1,39 @@ +template: outlanderphev +products: + - description: + generic: phev2mqtt +group: generic +requirements: + description: + en: Support for Mitsubishi Outlander PHEV via [github.com/buxtronix/phev2mqtt](https://github.com/buxtronix/phev2mqtt). MQTT broker required. + de: Unterstützung für Mitsubishi Outlander PHEV über [github.com/buxtronix/phev2mqtt](https://github.com/buxtronix/phev2mqtt). MQTT-Broker erforderlich. +params: + - preset: vehicle-common + - name: timeout + default: 600s + advanced: true +render: | + type: custom + {{- include "vehicle-common" . }} + soc: + source: mqtt + topic: phev/battery/level + timeout: {{ .timeout }} + jq: ((. - 6) * 100 / 88 | if . < 0 then 0 elif . > 100 then 100 else . end) + status: + source: combined + plugged: + source: mqtt + topic: phev/charge/plug + timeout: {{ .timeout }} + jq: (. == "connected") + charging: + source: mqtt + topic: phev/charge/charging + timeout: {{ .timeout }} + jq: (. == "on") + climater: + source: mqtt + topic: phev/climate/status + timeout: {{ .timeout }} + jq: (. != "off")