Skip to content

Commit

Permalink
Fix for issue #17699: Using correct MQTT topic for charging state
Browse files Browse the repository at this point in the history
  • Loading branch information
Beme99 committed Jan 1, 2025
1 parent 2739488 commit 66c040c
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions templates/definition/vehicle/teslamate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,42 @@ params:
de: Fahrzeug-ID
en: Vehicle ID
default: 1
- name: timeout
default: 1h
render: |
type: custom
{{- include "vehicle-common" . }}
soc:
source: mqtt
topic: teslamate/cars/{{ .id }}/battery_level
timeout: 720h # 30d
timeout: {{ .timeout }}
status:
source: combined
plugged:
source: mqtt
topic: teslamate/cars/{{ .id }}/plugged_in
timeout: 720h # 30d
timeout: {{ .timeout }}
charging:
source: mqtt
topic: teslamate/cars/{{ .id }}/charger_actual_current
timeout: 720h # 30d
source: go
script: |
charging_state == "Charging"
in:
- name: charging_state
type: string
config:
source: mqtt
topic: teslamate/cars/{{ .id }}/charging_state
timeout: {{ .timeout }}
range:
source: mqtt
topic: teslamate/cars/{{ .id }}/rated_battery_range_km
timeout: 720h # 30d
timeout: {{ .timeout }}
odometer:
source: mqtt
topic: teslamate/cars/{{ .id }}/odometer
timeout: 720h # 30d
timeout: {{ .timeout }}
limitsoc:
source: mqtt
topic: teslamate/cars/{{ .id }}/charge_limit_soc
timeout: 720h
features: ["coarsecurrent"]
timeout: {{ .timeout }}
features: ["coarsecurrent"]

0 comments on commit 66c040c

Please sign in to comment.