forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'evcc-io:master' into master
- Loading branch information
Showing
1 changed file
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
template: teslalogger | ||
products: | ||
- description: | ||
generic: TeslaLogger | ||
group: generic | ||
requirements: | ||
description: | ||
de: Open Source Tesla Datenlogger https://github.com/bassmaster187/TeslaLogger | ||
en: Open source Tesla data logger https://github.com/bassmaster187/TeslaLogger | ||
params: | ||
- name: title | ||
- name: id | ||
description: | ||
de: TeslaLogger CarID | ||
en: TeslaLogger CarID | ||
default: 1 | ||
- name: url | ||
required: true | ||
example: http://192.0.2.2 | ||
- name: port | ||
example: 5000 | ||
default: 5000 | ||
- name: capacity | ||
- name: phases | ||
advanced: true | ||
- name: icon | ||
default: car | ||
advanced: true | ||
- preset: vehicle-identify | ||
|
||
render: | | ||
type: custom | ||
{{- if .title }} | ||
title: {{ .title }} | ||
{{- end }} | ||
{{- if .icon }} | ||
icon: {{ .icon }} | ||
{{- end }} | ||
{{- if .capacity }} | ||
capacity: {{ .capacity }} | ||
{{- end }} | ||
{{- if .phases }} | ||
phases: {{ .phases }} | ||
{{- end }} | ||
{{- include "vehicle-identify" . }} | ||
soc: # battery soc (%) | ||
source: http | ||
uri: {{ .url }}:{{ .port }}/currentjson/{{ .id }} | ||
jq: .battery_level | ||
status: | ||
source: combined | ||
plugged: | ||
source: http | ||
uri: {{ .url }}:{{ .port }}/currentjson/{{ .id }} | ||
jq: .plugged_in | ||
charging: | ||
source: http | ||
uri: {{ .url }}:{{ .port }}/currentjson/{{ .id }} | ||
jq: .charging | ||
range: | ||
source: http | ||
uri: {{ .url }}:{{ .port }}/currentjson/{{ .id }} | ||
jq: .battery_range_km | ||
odometer: | ||
source: http | ||
uri: {{ .url }}:{{ .port }}/currentjson/{{ .id }} | ||
jq: .odometer | ||
climater: | ||
source: http | ||
uri: {{ .url }}:{{ .port }}/currentjson/{{ .id }} | ||
jq: .is_preconditioning | ||
getMaxCurrent: | ||
source: http | ||
uri: {{ .url }}:{{ .port }}/currentjson/{{ .id }} | ||
jq: .charge_current_request | ||
wakeup: | ||
source: http | ||
uri: {{ .url }}:{{ .port }}/command/{{ .id }}/wake_up | ||
chargeEnable: | ||
source: http | ||
uri: {{ .url }}:{{ .port }}/command/{{ .id }}/charge_start_stop?${enable} | ||
maxcurrent: | ||
source: http | ||
uri: {{ .url }}:{{ .port }}/command/{{ .id }}/set_charging_amps?${maxcurrent} |