evcc-io/templates/definition/vehicle/teslalogger.yaml

69 lines
1.9 KiB
YAML

template: teslalogger
products:
- description:
generic: TeslaLogger
group: generic
requirements:
description:
de: Open Source Tesla Datenlogger [github.com/bassmaster187/TeslaLogger](https://github.com/bassmaster187/TeslaLogger)
en: Open source Tesla data logger [github.com/bassmaster187/TeslaLogger](https://github.com/bassmaster187/TeslaLogger)
params:
- preset: vehicle-common
- preset: vehicle-online
- name: id
description:
de: TeslaLogger CarID
en: TeslaLogger CarID
default: 1
- name: url
required: true
example: http://192.0.2.2
- name: port
default: 5000
render: |
type: custom
{{- include "common" . }}
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
limitsoc:
source: http
uri: {{ .url }}:{{ .port }}/currentjson/{{ .id }}
jq: .charge_limit_soc
wakeup:
source: http
uri: {{ .url }}:{{ .port }}/command/{{ .id }}/wake_up
chargeEnable:
source: http
uri: {{ .url }}:{{ .port }}/command/{{ .id }}/charge_start_stop?${chargeenable}
maxcurrent:
source: http
uri: {{ .url }}:{{ .port }}/command/{{ .id }}/set_charging_amps?${maxcurrent}
{{ include "features" . }}