tesla-ble: add finishtime (#32768)

This commit is contained in:
JKSProds 2026-08-12 12:56:12 +01:00 • committed by GitHub
parent 768c1c7f53
commit fb18f33d78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,6 +70,12 @@ render: |
scale: 1.60934
timeout: {{ .timeout }}
cache: 1s
finishtime:
source: http
uri: {{ .url }}:{{ .port }}/api/1/vehicles/{{ .vin }}/vehicle_data?endpoints=charge_state
jq: 'if (.response.response.charge_state.minutes_to_full_charge > 0) then (now + (.response.response.charge_state.minutes_to_full_charge * 60) | strftime("%Y-%m-%dT%H:%M:%SZ")) else "" end'
timeout: {{ .timeout }}
cache: 1s
status:
source: http
uri: {{ .url }}:{{ .port }}/api/1/vehicles/{{ .vin }}/vehicle_data?endpoints=charge_state