Add ioBroker.bmw adapter (#17425)
This commit is contained in:
parent
f0aeb9ba3a
commit
f4111139ba
1 changed files with 66 additions and 0 deletions
66
templates/definition/vehicle/ioBroker.bmw.yaml
Normal file
66
templates/definition/vehicle/ioBroker.bmw.yaml
Normal file
|
|
@ -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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue