bimmerconnected / bimmer_connected

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

Vehicle status: {} is "suddenly" empty #337

Closed rsteininger closed 2 years ago

rsteininger commented 2 years ago

Describe the issue

I had bimmer_connect in my node-red environment with our BMW i3 up and running for some time (6+ months?). I noticed starting two days ago (9th of November?) that I suddenly no longer get details for the "Vehicle status".

I still receive: Found 1 vehicles: i3 VIN: WBY1Z54321V123456 Mileage: None Vehicle properties: { "vin": "WBY1Z54321V123456", "model": "i3", "bodytype": "I01", ... }

However the status comes back empty: Vehicle status: {}

The finger print function provides "only" 4 files: charging-sessions_0.txt charging-statistics_0.txt vehicles_0.txt vehicles_v2_0.txt

in March 2011 this delivered 7 files, INCLUDING the status: ALL_TRIPS_0.txt CHARGING_PROFILE_0.txt DESTINATIONS_0.txt LAST_TRIP_0.txt RANGEMAP_0.txt STATUS_0.txt vehicles_0.txt

I can still access our BMW i3 via the Android App and I can see batterys state, etc. No changes had been made to user name / password.

I can also see, that file "vehicles_v2_0.txt" HAS all the information I would be interested in. I just don't know how to access it using the CLI command library!

Thanks!

Expected behavior

reporting Vehicle status: {} using CLI command: bimmerconnected status

Which Home Assistant version are you using?

n/a - I am using node red

What was the last working version of Home Assistant Core?

n/a - I am using node red

What is your region?

Rest of world

ConnectedDrive website

Number of cars

Output of bimmer_connected fingerprint

vehicles_0.txt:
{
  "vehicles": [
    {
      "a4a": "USB_ONLY",
      "bodytype": "I01",
      "brand": "BMW_I",
      "breakdownNumber": "+4989358957103",
      "carCloud": "NOT_SUPPORTED",
      "chargeNow": "NOT_SUPPORTED",
      "chargingControl": "WEEKLY_PLANNER",
      "chargingUpdateMode": "NORMAL_PROGNOSE_BASED",
      "climateControl": "NOT_SUPPORTED",
      "climateControlRES": "NOT_SUPPORTED",
      "climateFunction": "AIRCONDITIONING",
      "climateNow": "ACTIVATED",
      "climateNowRES": "NOT_SUPPORTED",
      "color": "FLUID BLACK MIT AKZENT BMW I BLAU",
      "colorCode": "C2W",
      "countryCode": "B1-UK-IE",
      "dealer": {
        "city": "some_city",
        "country": "IE",
        "name": "some_name",
        "phone": "some_phone",
        "postalCode": "some_postal_code",
        "street": "some_street"
      },
      "doorLock": "ACTIVATED",
      "doorUnlock": "ACTIVATED",
      "driveTrain": "BEV",
      "egoVehiclePath": "",
      "hasAlarmSystem": true,
      "hmiVersion": "ID4",
      "hornBlow": "NOT_SUPPORTED",
      "hub": "HUB_ECE",
      "intermodalRouting": "NOT_AVAILABLE",
      "ipa": "NOT_SUPPORTED",
      "lastDestinations": "SUPPORTED",
      "licensePlate": "some_license_plate",
      "lightFlash": "ACTIVATED",
      "lscType": "I_LSC_IMM",
      "model": "i3",
      "onlineSearchMode": "MAP",
      "onlineSearchProvider": "GOOGLE",
      "puStep": "0321",
      "rangeMap": "RANGE_CIRCLE",
      "remote360": "NOT_SUPPORTED",
      "remoteSoftwareUpgrade": "NOT_SUPPORTED",
      "sendPoi": "ACTIVATED",
      "smartSolution": "NOT_SUPPORTED",
      "statisticsAvailable": true,
      "statisticsCommunityEnabled": true,
      "steering": "RH",
      "supportedChargingModes": [
        "AC_LOW",
        "AC_HIGH",
        "DC"
      ],
      "vehicleFinder": "ACTIVATED",
      "vehicleFinderRestriction": "NONE",
      "vin": "some_vin",
      "yearOfConstruction": 2016
    }
  ]
}

vehicles_v2_0.txt:
[
  {
    "a4aType": "USB_ONLY",
    "bodyType": "I01",
    "brand": "BMW",
    "capabilities": {
      "canRemoteHistoryBeDeleted": false,
      "climateNow": {
        "executionMessage": "Do you want to ventilate now? Remote functions may take a few seconds.",
        "executionPopup": {
          "executionMessage": "Turn pre-conditioning on now? Remote functions may take a few seconds.",
          "iconId": 59733,
          "popupType": "DIALOG",
          "primaryButtonText": "Start",
          "secondaryButtonText": "Cancel",
          "title": "Start Climatization"
        },
        "executionStopPopup": {
          "executionMessage": "Stop climate control in your vehicle now? Remote functions may take a few seconds.",
          "title": "Climate control is running"
        },
        "isEnabled": true,
        "isPinAuthenticationRequired": false
      },
      "isBmwChargingSupported": true,
      "isCarSharingSupported": false,
      "isChargeNowForBusinessSupported": false,
      "isChargingHistorySupported": true,
      "isChargingHospitalityEnabled": false,
      "isChargingLoudnessEnable": false,
      "isChargingPlanSupported": true,
      "isChargingPowerLimitEnable": false,
      "isChargingSettingsEnabled": false,
      "isChargingTargetSocEnable": false,
      "isCustomerEsimSupported": false,
      "isDCSContractManagementSupported": true,
      "isDataPrivacyEnabled": false,
      "isEasyChargeSupported": false,
      "isEvGoChargingSupported": false,
      "isFindChargingEnabled": true,
      "isMiniChargingSupported": false,
      "isRemoteHistorySupported": true,
      "isRemoteServicesActivationRequired": false,
      "isRemoteServicesBookingRequired": false,
      "isScanAndChargeSupported": false,
      "lastStateCall": {
        "isNonLscFeatureEnabled": false,
        "lscState": "ACTIVATED"
      },
      "lights": {
        "executionMessage": "Flash headlights now? Remote functions may take a few seconds.",
        "isEnabled": true,
        "isPinAuthenticationRequired": false
      },
      "lock": {
        "executionMessage": "Lock your vehicle now? Remote functions may take a few seconds.",
        "isEnabled": true,
        "isPinAuthenticationRequired": false
      },
      "sendPoi": {
        "executionMessage": "Send POI now? Remote functions may take a few seconds.",
        "isEnabled": true,
        "isPinAuthenticationRequired": false
      },
      "unlock": {
        "executionMessage": "Unlock your vehicle now? Remote functions may take a few seconds.",
        "isEnabled": true,
        "isPinAuthenticationRequired": true
      },
      "vehicleFinder": {
        "executionMessage": "Find your vehicle now? Remote functions may take a few seconds.",
        "isEnabled": true,
        "isPinAuthenticationRequired": false
      }
    },
    "connectedDriveServices": [],
    "driveTrain": "ELECTRIC",
    "driverGuideInfo": {
      "androidAppScheme": "com.bmwgroup.driversguide.row",
      "androidStoreUrl": "https://play.google.com/store/apps/details?id=com.bmwgroup.driversguide.row",
      "iosAppScheme": "bmwdriversguide:///open",
      "iosStoreUrl": "https://apps.apple.com/de/app/id714042749?mt=8",
      "title": "BMW\nDriver's Guide"
    },
    "exFactoryILevel": "I001-16-03-505",
    "exFactoryPUStep": "0316",
    "headUnit": "ID5",
    "hmiVersion": "ID4",
    "iStep": "I001-21-03-530",
    "isLscSupported": true,
    "isMappingPending": false,
    "isMappingUnconfirmed": false,
    "model": "i3",
    "properties": {
      "areDoorsClosed": true,
      "areDoorsLocked": true,
      "areDoorsOpen": false,
      "areWindowsClosed": true,
      "chargingState": {
        "chargePercentage": 63,
        "isChargerConnected": false,
        "state": "NOT_CHARGING",
        "type": "CONDUCTIVE"
      },
      "checkControlMessages": [],
      "climateControl": {},
      "combustionRange": {
        "distance": {
          "units": "KILOMETERS",
          "value": 0
        }
      },
      "doorsAndWindows": {
        "doors": {
          "driverFront": "CLOSED",
          "driverRear": "CLOSED",
          "passengerFront": "CLOSED",
          "passengerRear": "CLOSED"
        },
        "hood": "CLOSED",
        "trunk": "CLOSED",
        "windows": {
          "driverFront": "CLOSED",
          "passengerFront": "CLOSED"
        }
      },
      "electricRange": {
        "distance": {
          "units": "KILOMETERS",
          "value": 67
        }
      },
      "electricRangeAndStatus": {
        "chargePercentage": 63,
        "distance": {
          "units": "KILOMETERS",
          "value": 67
        }
      },
      "fuelLevel": {
        "units": "LITERS",
        "value": 0
      },
      "inMotion": false,
      "isServiceRequired": false,
      "lastUpdatedAt": "2021-11-10T19:25:03Z",
      "originCountryISO": "IE",
      "serviceRequired": [
        {
          "dateTime": "2022-07-01T00:00:00.000Z",
          "status": "OK",
          "type": "BRAKE_FLUID"
        },
        {
          "dateTime": "2022-07-01T00:00:00.000Z",
          "status": "OK",
          "type": "VEHICLE_CHECK"
        }
      ],
      "vehicleLocation": {
        "address": {
          "formatted": "some_formatted_address"
        },
        "coordinates": {
          "latitude": 12.3456,
          "longitude": 34.5678
        },
        "heading": 123
      }
    },
    "puStep": "0321",
    "status": {
      "chargingProfile": {
        "chargingControlType": "weeklyPlanner",
        "chargingMode": "immediateCharging",
        "chargingPreference": "chargingWindow",
        "chargingSettings": {
          "hospitality": "NO_ACTION",
          "idcc": "NO_ACTION",
          "isAcCurrentLimitActive": false,
          "targetSoc": 100
        },
        "climatisationOn": false,
        "departureTimes": [
          {
            "action": "deactivate",
            "id": 1,
            "timeStamp": {
              "hour": 7,
              "minute": 30
            },
            "timerWeekDays": [
              "monday",
              "tuesday",
              "wednesday",
              "thursday",
              "friday"
            ]
          },
          {
            "action": "deactivate",
            "id": 2,
            "timeStamp": {
              "hour": 17,
              "minute": 10
            },
            "timerWeekDays": [
              "monday"
            ]
          },
          {
            "action": "deactivate",
            "id": 3,
            "timeStamp": {
              "hour": 8,
              "minute": 15
            },
            "timerWeekDays": []
          },
          {
            "action": "deactivate",
            "id": 4,
            "timerWeekDays": []
          }
        ],
        "reductionOfChargeCurrent": {
          "end": {
            "hour": 12,
            "minute": 0
          },
          "start": {
            "hour": 7,
            "minute": 0
          }
        }
      },
      "checkControlMessages": [],
      "checkControlMessagesGeneralState": "No Issues",
      "currentMileage": {
        "formattedMileage": "41445",
        "mileage": 41445,
        "units": "km"
      },
      "doorsAndWindows": [
        {
          "criticalness": "nonCritical",
          "iconId": 59722,
          "state": "Closed",
          "title": "All doors and windows"
        }
      ],
      "doorsGeneralState": "Locked",
      "fuelIndicators": [
        {
          "barType": null,
          "chargingStatusIndicatorType": "DEFAULT",
          "chargingStatusType": "DEFAULT",
          "chargingType": null,
          "iconOpacity": "high",
          "infoIconId": 59694,
          "infoLabel": "State of Charge",
          "isCircleIcon": false,
          "isInaccurate": false,
          "levelIconId": 59694,
          "levelUnits": "%",
          "levelValue": "63",
          "mainBarValue": 63,
          "rangeIconId": 59683,
          "rangeUnits": "km",
          "rangeValue": "67",
          "secondaryBarValue": 0,
          "showBarGoal": false,
          "showsBar": true
        }
      ],
      "issues": {},
      "lastUpdatedAt": "2021-11-10T19:25:03Z",
      "recallExternalUrl": null,
      "recallMessages": [],
      "requiredServices": [
        {
          "criticalness": "nonCritical",
          "iconId": 60223,
          "id": "BrakeFluid",
          "longDescription": "Next service due by the specified date.",
          "subtitle": "Due in July 2022",
          "title": "Brake fluid"
        },
        {
          "criticalness": "nonCritical",
          "iconId": 60215,
          "id": "VehicleCheck",
          "longDescription": "Next vehicle check due after the specified distance or date.",
          "subtitle": "Due in July 2022",
          "title": "Vehicle check"
        }
      ],
      "timestampMessage": "Updated from vehicle 11/11/2021 07:25 PM"
    },
    "telematicsUnit": "TCB1",
    "themeSpecs": {
      "vehicleStatusBackgroundColor": {
        "blue": 68,
        "green": 68,
        "red": 68
      }
    },
    "vin": "some_vin",
    "year": 2016
  }
]

Anything in the logs that might be useful for us?

No response

Additional information

No response

luka6000 commented 2 years ago

same here for my G20

rikroe commented 2 years ago

Hi, there are some changes at the BMW API where we have to adjust our code for. Please see #325

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.