Connected Drive Plugin for Indigo 2022.1

Bildhauer
Posts: 160
Joined: Mon Sep 30, 2019 2:10 pm
Location: 22113 Oststeinbek (near Hamburg), Germany

Re: Connected Drive Plugin for Indigo 2022.1

Post by Bildhauer »

But I cannot add a vehicle:
Error in plugin execution GetUiDynamicList:

File "plugin.py", line 275, in get_vehicle_list
Best regards

Bildhauer!
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Connected Drive Plugin for Indigo 2022.1

Post by FlyingDiver »

Bildhauer wrote:But I cannot a a vehicle:

Code: Select all

Error in plugin execution GetUiDynamicList:

  File "plugin.py", line 275, in get_vehicle_list
Need debug log.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Turribeach
Posts: 437
Joined: Fri Feb 06, 2015 4:25 pm
Location: London, UK

Re: Connected Drive Plugin for Indigo 2022.1

Post by Turribeach »

My bad, I upgraded the wrong install of Python. Seems to get further now:

Code: Select all

   Connected Drive                 Starting Connected Drive
   Connected Drive                 BMW Connected Drive Account: Starting cdAccount Device
   Connected Drive Debug           BMW Connected Drive Account: VIN not found: VIN_NUMBER
   Connected Drive                 BMW Connected Drive Account: 1 vehicles found.
   Connected Drive                 BMW X1: Starting cdVehicle Device
   Trigger                         Var Update Temp Inside Changed
   Connected Drive Debug           BMW Connected Drive Account: Updating X1 sDrive20i (VIN_NUMBER) -->  BMW X1 (1004901346)
   Connected Drive Error           Error in plugin execution runConcurrentThread:

  File "plugin.py", line 149, in runConcurrentThread
  File "plugin.py", line 210, in _do_update
type: 'model'

   Connected Drive Error           plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Connected Drive Plugin for Indigo 2022.1

Post by FlyingDiver »

It's possible the 0.10.0 changes broke something in the plugin. I will investigate.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Turribeach
Posts: 437
Joined: Fri Feb 06, 2015 4:25 pm
Location: London, UK

Re: Connected Drive Plugin for Indigo 2022.1

Post by Turribeach »

0.9.3
What’s Changed
Add bmw-unit-preferences (#449) @rikroe
Breaking changes
bimmerconnected.vehicle.models has been moved to bimmerconnected.models
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Connected Drive Plugin for Indigo 2022.1

Post by FlyingDiver »

Turribeach wrote:0.9.3
What’s Changed
Add bmw-unit-preferences (#449) @rikroe
Breaking changes
bimmerconnected.vehicle.models has been moved to bimmerconnected.models
I see that, but that's not actually the missing "model" field. That's the library data objects models. I can't seem to find the model field anywhere anymore.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Turribeach
Posts: 437
Joined: Fri Feb 06, 2015 4:25 pm
Location: London, UK

Re: Connected Drive Plugin for Indigo 2022.1

Post by Turribeach »

Just did a fingerprint and it's on the vehicles_bmw_0.json not on the state_bmw_0.json:

Code: Select all

[
  {
    "appVehicleType": "CONNECTED",
    "attributes": {
      "a4aType": "BLUETOOTH",
      "bodyType": "F48",
      "brand": "BMW",
      "color": 4283783516,
      "countryOfOrigin": "GB",
      "driveTrain": "COMBUSTION",
      "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"
      },
      "headUnitType": "ENTRY_EVO",
      "hmiVersion": "ID5",
      "lastFetched": "2022-07-14T20:40:12.839Z",
      "model": "X1 sDrive20i",
      "softwareVersionCurrent": {
        "iStep": 545,
        "puStep": {
          "month": 11,
          "year": 20
        },
        "seriesCluster": "F056"
      },
      "softwareVersionExFactory": {
        "iStep": 531,
        "puStep": {
          "month": 11,
          "year": 18
        },
        "seriesCluster": "F056"
      },
      "telematicsUnit": "ATM1",
      "year": 2019
    },
    "mappingInfo": {
      "isAssociated": false,
      "isLmmEnabled": false,
      "isPrimaryUser": true,
      "mappingStatus": "CONFIRMED"
    },
    "vin": "some_vin"
  }
]
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Connected Drive Plugin for Indigo 2022.1

Post by FlyingDiver »

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Turribeach
Posts: 437
Joined: Fri Feb 06, 2015 4:25 pm
Location: London, UK

Re: Connected Drive Plugin for Indigo 2022.1

Post by Turribeach »

Nice one! I was going to say that Year got moved too but you just fixed it too. :mrgreen:

Many thanks, all working fine now again.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Connected Drive Plugin for Indigo 2022.1

Post by FlyingDiver »

The API is kinda wonky, IMO. I can get the model from the data dump, but the API actually reports the model value as the name property. And there is no year property in the API, have to grab it from the raw data as well.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Bildhauer
Posts: 160
Joined: Mon Sep 30, 2019 2:10 pm
Location: 22113 Oststeinbek (near Hamburg), Germany

Re: Connected Drive Plugin for Indigo 2022.1

Post by Bildhauer »

Here the log you asked for:

Code: Select all

15. Jul 2022 at 20:09:11
   Connected Drive Debug           closedPrefsConfigUi, logLevel = 5, updateFrequency = 1800.0
   Connected Drive Debug           SOMS BMW-Account: VIN not found: WBA6G310X0D931620

15. Jul 2022 at 20:09:51
   Connected Drive Debug           get_vehicle_state_list: typeId = cdVehicle, targetId = 1444498340, valuesDict = UiValuesDict : (dict)
   Connected Drive Debug           get_vehicle_list: typeId = cdVehicle, targetId = 1444498340, valuesDict = UiValuesDict : (dict)
   Connected Drive Error           Error in plugin execution GetUiDynamicList:

  File "plugin.py", line 275, in get_vehicle_list
type: ('year',)

   Connected Drive Debug           get_vehicle_state_list: typeId = cdVehicle, targetId = 1444498340, valuesDict = UiValuesDict : (dict)
     SupportsOnState : false (bool)
     SupportsSensorValue : true (bool)
     SupportsStatusRequest : true (bool)
     address :  (string)
     state_key : door_lock_state (string)
   Connected Drive Debug           get_vehicle_list: typeId = cdVehicle, targetId = 1444498340, valuesDict = UiValuesDict : (dict)
     SupportsOnState : false (bool)
     SupportsSensorValue : true (bool)
     SupportsStatusRequest : true (bool)
     address :  (string)
     state_key : door_lock_state (string)
   Connected Drive Error           Error in plugin execution GetUiDynamicList:

  File "plugin.py", line 275, in get_vehicle_list
type: ('year',)

   Connected Drive                 new device: Starting cdVehicle Device
   Connected Drive Debug           SOMS BMW-Account: VIN not found: WBA6G310X0D931620
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Connected Drive Plugin for Indigo 2022.1

Post by FlyingDiver »

Bildhauer wrote:Here the log you asked for:
Is that with the latest plugin linked above?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Bildhauer
Posts: 160
Joined: Mon Sep 30, 2019 2:10 pm
Location: 22113 Oststeinbek (near Hamburg), Germany

Re: Connected Drive Plugin for Indigo 2022.1

Post by Bildhauer »

I Installed Release 2022.1.1. and 010.0
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Connected Drive Plugin for Indigo 2022.1

Post by FlyingDiver »

Bildhauer wrote:I Installed Release 2022.1.1. and 010.0
It's showing a VIN not found error. Delete that device, restart the plugin, then try creating it again.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Bildhauer
Posts: 160
Joined: Mon Sep 30, 2019 2:10 pm
Location: 22113 Oststeinbek (near Hamburg), Germany

Re: Connected Drive Plugin for Indigo 2022.1

Post by Bildhauer »

Where should I delete the vehicle? On the BMW webpage?

Th device not found is the one of the BMW's webpage and the VN is correct.
Locked

Return to “Other Plugins”