From e31c708274cad7641fefb36d81610e093522b37b Mon Sep 17 00:00:00 2001 From: Chris685 Date: Sat, 4 Oct 2025 18:34:15 +0200 Subject: [PATCH] ioBroker.bmw: upgrade adapter (#24100) --- .../definition/vehicle/ioBroker.bmw.yaml | 67 ++++++------------- 1 file changed, 21 insertions(+), 46 deletions(-) diff --git a/templates/definition/vehicle/ioBroker.bmw.yaml b/templates/definition/vehicle/ioBroker.bmw.yaml index ca251675e..d170ec03b 100644 --- a/templates/definition/vehicle/ioBroker.bmw.yaml +++ b/templates/definition/vehicle/ioBroker.bmw.yaml @@ -34,54 +34,29 @@ render: | type: custom {{ include "vehicle-common" . }} soc: - source: valid - valid: - source: http - uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.info.connection - cache: 10s - value: - source: http - uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.state.electricChargingState.chargingLevelPercent - limitsoc: - source: valid - valid: - source: http - uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.info.connection - cache: 10s - value: - source: http - uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.state.electricChargingState.chargingTarget + source: http + uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.stream.vehicle.drivetrain.batteryManagement.header.value status: - source: valid - valid: + source: combined + plugged: source: http - uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.info.connection - cache: 10s - value: - 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"' + uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.stream.vehicle.body.chargingPort.status.value + jq: '. == "CONNECTED"' + charging: + source: http + uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.stream.vehicle.drivetrain.electricEngine.charging.status.value + jq: '. == "CHARGINGACTIVE"' range: - source: valid - valid: - source: http - uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.info.connection - cache: 10s - value: - source: http - uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.state.electricChargingState.range + source: http + uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.stream.vehicle.drivetrain.electricEngine.kombiRemainingElectricRange.value odometer: - source: valid - valid: - source: http - uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.info.connection - cache: 10s - value: - source: http - uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.state.currentMileage + source: http + uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.stream.vehicle.vehicle.travelledDistance.value + climater: + source: http + uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.stream.vehicle.vehicle.preConditioning.activity.value + jq: if .state == "HEATING" or .state == "heating" or .state == "COOLING" or .state == "cooling" then true else false end + limitsoc: + source: http + uri: {{ .uri }}/getPlainValue/bmw.{{ .id }}.{{ .vin }}.stream.vehicle.powertrain.electric.battery.stateofcharge.target.value {{ include "vehicle-features" . }}