66 lines
2.1 KiB
YAML
66 lines
2.1 KiB
YAML
template: mg2mqtt
|
|
products:
|
|
- description:
|
|
generic: mg2mqtt
|
|
group: generic
|
|
requirements:
|
|
description:
|
|
en: Required MQTT broker configuration and a SAIC/MQTT Gateway ([github.com/SAIC-iSmart-API/saic-python-mqtt-gateway](https://github.com/SAIC-iSmart-API/saic-python-mqtt-gateway) or [github.com/SAIC-iSmart-API/saic-java-client](https://github.com/SAIC-iSmart-API/saic-java-client))
|
|
de: Voraussetzung ist ein konfigurierter MQTT Broker und ein SAIC/MQTT Gateway ([github.com/SAIC-iSmart-API/saic-python-mqtt-gateway](https://github.com/SAIC-iSmart-API/saic-python-mqtt-gateway) oder [github.com/SAIC-iSmart-API/saic-java-client](https://github.com/SAIC-iSmart-API/saic-java-client))
|
|
params:
|
|
- name: user
|
|
required: true
|
|
- name: vin
|
|
required: true
|
|
- preset: vehicle-common
|
|
- preset: vehicle-online
|
|
- name: timeout
|
|
default: 1h
|
|
render: |
|
|
type: custom
|
|
{{- include "common" . }}
|
|
soc: # battery soc (%)
|
|
source: mqtt
|
|
topic: saic/{{ .user }}/vehicles/{{ .vin }}/drivetrain/soc
|
|
timeout: {{ .timeout }}
|
|
status:
|
|
source: combined
|
|
plugged:
|
|
source: mqtt
|
|
topic: saic/{{ .user }}/vehicles/{{ .vin }}/drivetrain/chargerConnected
|
|
timeout: {{ .timeout }}
|
|
charging:
|
|
source: mqtt
|
|
topic: saic/{{ .user }}/vehicles/{{ .vin }}/drivetrain/charging
|
|
timeout: {{ .timeout }}
|
|
range:
|
|
source: mqtt
|
|
topic: saic/{{ .user }}/vehicles/{{ .vin }}/drivetrain/range
|
|
timeout: {{ .timeout }}
|
|
climater:
|
|
source: go
|
|
script: |
|
|
remoteClimateState != "off"
|
|
in:
|
|
- name: remoteClimateState
|
|
type: string
|
|
config:
|
|
source: mqtt
|
|
topic: saic/{{ .user }}/vehicles/{{ .vin }}/climate/remoteClimateState
|
|
timeout: {{ .timeout }}
|
|
odometer:
|
|
source: mqtt
|
|
topic: saic/{{ .user }}/vehicles/{{ .vin }}/drivetrain/mileage
|
|
timeout: {{ .timeout }}
|
|
wakeup:
|
|
source: go
|
|
script: |
|
|
"force"
|
|
out:
|
|
- name: wakeUp
|
|
type: string
|
|
config:
|
|
source: mqtt
|
|
topic: saic/{{ .user }}/vehicles/{{ .vin }}/refresh/mode/set
|
|
timeout: {{ .timeout }}
|
|
{{ include "features" . }}
|