iobroker.bmw: add streaming feature (#25272)

This commit is contained in:
Marcel Goerentz 2025-11-13 14:54:33 +01:00 • committed by GitHub
parent 762462fcda
commit 4141b2e4d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,8 @@ params:
en: Instance ID
advanced: true
- preset: vehicle-features
- name: streaming
default: true
render: |
type: custom
{{ include "vehicle-common" . }}
@ -62,5 +64,5 @@ render: |
finishtime:
source: http
uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.stream.vehicle.drivetrain.electricEngine.charging.timeRemaining.value?noStringify
jq: if . == null or . == 0 then null else (now + (. * 60) | strftime("%Y-%m-%dT%H:%M:%SZ")) end
jq: if (. == null) or (. == 0) or (type != "number") or (. < 0) then null else (now + (. * 60) | strftime("%Y-%m-%dT%H:%M:%SZ")) end
{{ include "vehicle-features" . }}