bimmerconnected / bimmer_connected

🚘 Library to query the status of your BMW or Mini from the ConnectedDrive portal
Apache License 2.0
362 stars 79 forks source link

sensor.cooper_s_e_all4_remaining_range_electric is not availble when car is not charged #389

Closed licheng5625 closed 2 years ago

licheng5625 commented 2 years ago

Describe the issue

Hi, wish you and your family have a happy xmas and new year sensor.cooper_s_e_all4_remaining_range_electric sensor shows as not availble when car is not charged. In app it shows as "--", it just means 0. { "barType": null, "chargingStatusIndicatorType": "DEFAULT", "chargingStatusType": "DEFAULT", "chargingType": null, "iconOpacity": "high", "infoIconId": 59694, "infoLabel": "State of Charge", "isCircleIcon": false, "isInaccurate": false, "levelIconId": 59694, "levelUnits": "%", "levelValue": "9", "mainBarValue": 9, "rangeIconId": 59683, "rangeUnits": "km", "rangeValue": "- -", "secondaryBarValue": 0, "showBarGoal": false, "showsBar": true },

Expected behavior

show as 0 km

Which Home Assistant version are you using?

core-2021.12.4

What was the last working version of Home Assistant Core?

No response

What is your region?

Rest of world

ConnectedDrive website

Number of cars

Output of bimmer_connected fingerprint

{
          "barType": null,
          "chargingStatusIndicatorType": "DEFAULT",
          "chargingStatusType": "DEFAULT",
          "chargingType": null,
          "iconOpacity": "high",
          "infoIconId": 59694,
          "infoLabel": "State of Charge",
          "isCircleIcon": false,
          "isInaccurate": false,
          "levelIconId": 59694,
          "levelUnits": "%",
          "levelValue": "9",
          "mainBarValue": 9,
          "rangeIconId": 59683,
          "rangeUnits": "km",
          "rangeValue": "- -",
          "secondaryBarValue": 0,
          "showBarGoal": false,
          "showsBar": true
        },


### Anything in the logs that might be useful for us?

_No response_

### Additional information

_No response_
rikroe commented 2 years ago

Thanks, hope you had great holidays with your family as well! From what I can see in other provided fingerprints, - - rather means "BMW cannot calculate a remaining range".

Therefore, having a 0 output doesn't seem right to me, even if BMW is providing "incorrect" values.

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.