Skip to content

Commit 44dcd03

Browse files
committed
MQTT: fix namespace clash (revert #26999)
1 parent c563112 commit 44dcd03

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

templates/definition/vehicle/mg2mqtt.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ requirements:
88
en: Required MQTT broker configuration and a SAIC/MQTT Gateway (https://github.com/SAIC-iSmart-API/saic-python-mqtt-gateway or https://github.com/SAIC-iSmart-API/saic-java-client)
99
de: Voraussetzung ist ein konfigurierter MQTT Broker und ein SAIC/MQTT Gateway (https://github.com/SAIC-iSmart-API/saic-python-mqtt-gateway oder https://github.com/SAIC-iSmart-API/saic-java-client)
1010
params:
11-
- preset: mqtt
1211
- name: user
1312
required: true
1413
- name: vin
@@ -21,22 +20,22 @@ render: |
2120
{{- include "vehicle-common" . }}
2221
soc: # battery soc (%)
2322
source: mqtt
24-
{{- include "mqtt" . | indent 2 }}
2523
topic: saic/{{ .user }}/vehicles/{{ .vin }}/drivetrain/soc
24+
timeout: {{ .timeout }}
2625
status:
2726
source: combined
2827
plugged:
2928
source: mqtt
30-
{{- include "mqtt" . | indent 4 }}
3129
topic: saic/{{ .user }}/vehicles/{{ .vin }}/drivetrain/chargerConnected
30+
timeout: {{ .timeout }}
3231
charging:
3332
source: mqtt
34-
{{- include "mqtt" . | indent 4 }}
3533
topic: saic/{{ .user }}/vehicles/{{ .vin }}/drivetrain/charging
34+
timeout: {{ .timeout }}
3635
range:
3736
source: mqtt
38-
{{- include "mqtt" . | indent 2 }}
3937
topic: saic/{{ .user }}/vehicles/{{ .vin }}/drivetrain/range
38+
timeout: {{ .timeout }}
4039
climater:
4140
source: go
4241
script: |
@@ -46,12 +45,12 @@ render: |
4645
type: string
4746
config:
4847
source: mqtt
49-
{{- include "mqtt" . | indent 8 }}
5048
topic: saic/{{ .user }}/vehicles/{{ .vin }}/climate/remoteClimateState
49+
timeout: {{ .timeout }}
5150
odometer:
5251
source: mqtt
53-
{{- include "mqtt" . | indent 2 }}
5452
topic: saic/{{ .user }}/vehicles/{{ .vin }}/drivetrain/mileage
53+
timeout: {{ .timeout }}
5554
wakeup:
5655
source: go
5756
script: |
@@ -61,5 +60,5 @@ render: |
6160
type: string
6261
config:
6362
source: mqtt
64-
{{- include "mqtt" . | indent 8 }}
6563
topic: saic/{{ .user }}/vehicles/{{ .vin }}/refresh/mode/set
64+
timeout: {{ .timeout }}

templates/definition/vehicle/teslamate.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ requirements:
88
en: Open source Tesla data logger [github.com/adriankumpf/teslamate](https://github.com/adriankumpf/teslamate). MQTT broker required.
99
de: Open Source Tesla Datenlogger [github.com/adriankumpf/teslamate](https://github.com/adriankumpf/teslamate). Voraussetzung ist konfigurierter MQTT Broker.
1010
params:
11-
- preset: mqtt
1211
- preset: vehicle-common
1312
- name: id
1413
description:
@@ -22,29 +21,29 @@ render: |
2221
{{- include "vehicle-common" . }}
2322
soc:
2423
source: mqtt
25-
{{- include "mqtt" . | indent 2 }}
2624
topic: teslamate/cars/{{ .id }}/battery_level
25+
timeout: {{ .timeout }}
2726
status:
2827
source: combined
2928
plugged:
3029
source: mqtt
31-
{{- include "mqtt" . | indent 4 }}
3230
topic: teslamate/cars/{{ .id }}/plugged_in
31+
timeout: {{ .timeout }}
3332
charging:
3433
source: mqtt
35-
{{- include "mqtt" . | indent 4 }}
3634
topic: teslamate/cars/{{ .id }}/charger_actual_current
35+
timeout: {{ .timeout }}
3736
jq: . > 0
3837
range:
3938
source: mqtt
40-
{{- include "mqtt" . | indent 2 }}
4139
topic: teslamate/cars/{{ .id }}/rated_battery_range_km
40+
timeout: {{ .timeout }}
4241
odometer:
4342
source: mqtt
44-
{{- include "mqtt" . | indent 2 }}
4543
topic: teslamate/cars/{{ .id }}/odometer
44+
timeout: {{ .timeout }}
4645
limitsoc:
4746
source: mqtt
48-
{{- include "mqtt" . | indent 2 }}
4947
topic: teslamate/cars/{{ .id }}/charge_limit_soc
48+
timeout: {{ .timeout }}
5049
features: ["coarsecurrent"]

0 commit comments

Comments
 (0)