diff --git a/templates/definition/vehicle/teslamate.yaml b/templates/definition/vehicle/teslamate.yaml index 93301b62f..35005d4d5 100644 --- a/templates/definition/vehicle/teslamate.yaml +++ b/templates/definition/vehicle/teslamate.yaml @@ -46,4 +46,9 @@ render: | source: mqtt topic: teslamate/cars/{{ .id }}/charge_limit_soc timeout: {{ .timeout }} + finishtime: + source: mqtt + topic: teslamate/cars/{{ .id }}/time_to_full_charge + timeout: {{ .timeout }} + jq: if (. == null) or (. == 0) or (type != "number") or (. < 0) then null else (now + (. * 3600) | strftime("%Y-%m-%dT%H:%M:%SZ")) end features: ["coarsecurrent"]