Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ioBroker.bmw adapter #17425

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions templates/definition/vehicle/ioBroker.bmw.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
template: ioBroker.bmw
products:
- description:
generic: ioBroker.bmw
group: generic
requirements:
andig marked this conversation as resolved.
Show resolved Hide resolved
description:
en: ioBroker BMW Adapter. Requires ioBroker.bmw and ioBroker.simple-api
de: ioBroker BMW Adapter. Benötigt ioBroker.bmw und ioBroker.simple-api
params:
- name: title
- name: icon
default: car
advanced: true
- name: capacity
type: float
- name: phases
advanced: true
- name: vin
example: WBMW...
- preset: vehicle-identify
- name: uri
help:
generic: ioBroker URL
- name: id
default: 0
type: number
help:
de: Instanz-ID
en: Instance ID
advanced: true
- name: coarsecurrent
advanced: true
- name: welcomecharge
advanced: true
render: |
type: custom
{{ include "vehicle-common" . }}
{{ include "vehicle-identify" . }}
soc:
source: http
uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.state.electricChargingState.chargingLevelPercent
status:
source: combined
plugged:
source: http
uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.state.electricChargingState.isChargerConnected
charging:
source: http
uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.state.electricChargingState.chargingStatus
jq: '. == "CHARGING"'
range:
source: http
uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.state.electricChargingState.range
odometer:
source: http
uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.state.currentMileage
{{- if or (eq .coarsecurrent "true") (eq .welcomecharge "true") }}
features:
{{- if eq .coarsecurrent "true" }}
- coarsecurrent
{{- end }}
{{- if eq .welcomecharge "true" }}
- welcomecharge
{{- end }}
{{- end }}