File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
templates/definition/vehicle Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ params:
2727 help :
2828 de : Port des Tesla BLE HTTP Proxy
2929 en : Port of the Tesla BLE HTTP Proxy
30+ - name : timeout
31+ default : 30s
3032render : |
3133 type: custom
3234 {{- include "vehicle-common" . }}
@@ -47,23 +49,27 @@ render: |
4749 source: http
4850 uri: {{ .url }}:{{ .port }}/api/1/vehicles/{{ .vin }}/vehicle_data?endpoints=charge_state
4951 jq: .response.response.charge_state.battery_level
50- timeout: 30s
52+ timeout: {{ .timeout }}
53+ cache: 1s
5154 getmaxcurrent:
5255 source: http
5356 uri: {{ .url }}:{{ .port }}/api/1/vehicles/{{ .vin }}/vehicle_data?endpoints=charge_state
5457 jq: .response.response.charge_state.charge_amps
55- timeout: 30s
58+ timeout: {{ .timeout }}
59+ cache: 1s
5660 limitsoc:
5761 source: http
5862 uri: {{ .url }}:{{ .port }}/api/1/vehicles/{{ .vin }}/vehicle_data?endpoints=charge_state
5963 jq: .response.response.charge_state.charge_limit_soc
60- timeout: 30s
64+ timeout: {{ .timeout }}
65+ cache: 1s
6166 range:
6267 source: http
6368 uri: {{ .url }}:{{ .port }}/api/1/vehicles/{{ .vin }}/vehicle_data?endpoints=charge_state
6469 jq: .response.response.charge_state.battery_range
6570 scale: 1.60934
66- timeout: 30s
71+ timeout: {{ .timeout }}
72+ cache: 1s
6773 status:
6874 source: http
6975 uri: {{ .url }}:{{ .port }}/api/1/vehicles/{{ .vin }}/vehicle_data?endpoints=charge_state
@@ -73,4 +79,5 @@ render: |
7379 elif (.response.response.charge_state.charging_state == "NoPower") then "B"
7480 elif (.response.response.charge_state.charging_state == "Complete") then "B"
7581 else "A" end)
76- timeout: 30s
82+ timeout: {{ .timeout }}
83+ cache: 1s
You can’t perform that action at this time.
0 commit comments