iobroker.bmw: add streaming feature (#25272)
This commit is contained in:
parent
762462fcda
commit
4141b2e4d7
1 changed files with 3 additions and 1 deletions
|
|
@ -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" . }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue