Hello @weymann,
Thank you, your fix is working!
I’m really excited that with your binding I now can create rules to let OpenHab notify me when I locked the car when a window is left open, or when I leave the car unlocked (the functionality I really miss in the BMW app). So thanks again for all the effort you put in this project!
I have no intention to use the car service status data, but I think ‘Service Mileage’ is not working as it should. The state of the item is ‘- -’. The car dashboard says service is needed by 2022-01 or 29000 km.
In the Vehicle Troubleshoot Fingerprint Data I see different entries for “cbsRemainingMileage” with value 29000 but also 0.
Also I want to let you know the behaviour of the door and window state items. I think this is the behaviour as designed and for me It serves my purpose.
The state of the items seems to only reflect the last changed door/window. For example:
Car window driver front: open.
Car window passenger rear: half open (intermediate).
Car trunk: open.
Car door driverrear: open.
Item Door status state: ‘Driverrear Open’
Item Window Status state: ‘Driverfront Open’
The Vehicle Troubleshoot Fingerprint Data as it was in the above described situation:
2020-09-19 11:56:25.425 [WARN ] [rive.internal.handler.VehicleHandler] - ###### BMW ConnectedDrive Binding - Vehicle Troubleshoot Fingerprint Data - BEGIN ######
2020-09-19 11:56:25.427 [WARN ] [rive.internal.handler.VehicleHandler] - ### Discovery Result ###
2020-09-19 11:56:25.431 [WARN ] [rive.internal.handler.VehicleHandler] - {"vehicles":[{"vin":"ANONYMOUS","model":"318i","driveTrain":"CONV","brand":"BMW","yearOfConstruction":2019,"bodytype":"F31","color":"MINERALGRAU METALLIC","statisticsCommunityEnabled":false,"statisticsAvailable":false,"hasAlarmSystem":true,"dealer":{"name":"ANONYMOUS","street":"ANONYMOUS","postalCode":"ANONYMOUS","city":"ANONYMOUS","country":"ANONYMOUS","phone":"ANONYMOUS"},"breakdownNumber":"ANONYMOUS","chargingControl":"NOT_SUPPORTED","vehicleFinder":"ACTIVATED","hornBlow":"ACTIVATED","lightFlash":"ACTIVATED","doorLock":"ACTIVATED","doorUnlock":"ACTIVATED","climateNow":"ACTIVATED","sendPoi":"ACTIVATED","remote360":"NOT_SUPPORTED","climateControl":"START_TIMER","chargeNow":"NOT_SUPPORTED","lastDestinations":"NOT_SUPPORTED","carCloud":"ACTIVATED","remoteSoftwareUpgrade":"NOT_SUPPORTED","climateNowRES":"NOT_SUPPORTED","climateControlRES":"NOT_SUPPORTED","smartSolution":"NOT_SUPPORTED","ipa":"NOT_SUPPORTED"}]}
2020-09-19 11:56:25.433 [WARN ] [rive.internal.handler.VehicleHandler] - ### Vehicle Status ###
2020-09-19 11:56:25.441 [WARN ] [rive.internal.handler.VehicleHandler] - {"vehicleStatus":{"mileage":25725,"remainingFuel":52.0,"remainingRangeElectric":0.0,"remainingRangeElectricMls":0.0,"remainingRangeFuel":814.0,"remainingRangeFuelMls":505.0,"maxRangeElectric":0.0,"maxRangeElectricMls":0.0,"maxFuel":0.0,"chargingLevelHv":0.0,"vin":"ANONYMOUS","updateReason":"VEHICLE_SHUTDOWN","updateTime":"2020-09-19T09:55:06+0000","doorDriverFront":"CLOSED","doorDriverRear":"OPEN","doorPassengerFront":"CLOSED","doorPassengerRear":"CLOSED","windowDriverFront":"OPEN","windowDriverRear":"CLOSED","windowPassengerFront":"CLOSED","windowPassengerRear":"INTERMEDIATE","trunk":"OPEN","rearWindow":"CLOSED","hood":"CLOSED","doorLockState":"SECURED","parkingLight":"OFF","positionLight":"OFF","position":{"lat":-1.0,"lon":-1.0,"heading":-1,"status":"OK"},"internalDataTimeUTC":"2020-09-19T09:55:06","singleImmediateCharging":false,"vehicleCountry":"NL","DCS_CCH_Activation":"NA","DCS_CCH_Ongoing":false,"checkControlMessages":[],"cbsData":[{"cbsType":"OIL","cbsState":"OK","cbsDueDate":"2022-07","cbsDescription":"Next service due when the stated distance has been covered or by the specified date.","cbsRemainingMileage":29000},{"cbsType":"VEHICLE_CHECK","cbsState":"OK","cbsDueDate":"2022-07","cbsDescription":"Next visual inspection due when the stated distance has been covered or by the stated date.","cbsRemainingMileage":29000},{"cbsType":"BRAKE_FLUID","cbsState":"OK","cbsDueDate":"2022-01","cbsDescription":"Next change due at the latest by the stated date.","cbsRemainingMileage":0}]}}
2020-09-19 11:56:25.443 [WARN ] [rive.internal.handler.VehicleHandler] - ### Last Trip ###
2020-09-19 11:56:25.445 [WARN ] [rive.internal.handler.VehicleHandler] - {"lastTrip":{}}
2020-09-19 11:56:25.447 [WARN ] [rive.internal.handler.VehicleHandler] - ### All Trips ###
2020-09-19 11:56:25.449 [WARN ] [rive.internal.handler.VehicleHandler] - {"allTrips":{"avgElectricConsumption":{},"avgRecuperation":{},"chargecycleRange":{},"totalElectricDistance":{},"avgCombinedConsumption":{}}}
2020-09-19 11:56:25.451 [WARN ] [rive.internal.handler.VehicleHandler] - ### Charge Profile ###
2020-09-19 11:56:25.453 [WARN ] [rive.internal.handler.VehicleHandler] - {"destinations":[]}
2020-09-19 11:56:25.454 [WARN ] [rive.internal.handler.VehicleHandler] - ### Range Map Empty ###
2020-09-19 11:56:25.456 [WARN ] [rive.internal.handler.VehicleHandler] - ###### BMW ConnectedDrive Binding - Vehicle Troubleshoot Fingerprint Data - END ######
If I can test anything else with your binding and my car to help you improve the binding, please let me know.