Skip to content

Commit

Permalink
Add ioBroker.bmw adapter (#17425)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Nov 25, 2024
1 parent f0aeb9b commit f411113
Showing 1 changed file with 66 additions and 0 deletions.
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:
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 }}

0 comments on commit f411113

Please sign in to comment.