I managed to find some time now to try this plugin out. It throws some errors in log after I created vehicle:
- Code: Select all
Failed to establish a new connection: [Errno 60] Operation timed out',))
BMW Connected Drive Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 120, in runConcurrentThread
File "plugin.py", line 175, in updateVehicle
TypeError: state value type must be bool, int, real, or string
BMW Connected Drive Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
6 Jan 2020 at 15.11.00
BMW Connected Drive Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 120, in runConcurrentThread
File "plugin.py", line 175, in updateVehicle
TypeError: state value type must be bool, int, real, or string
Maybe due to slow response from BMW Connected Drive service?
My car data now, both are PHEVs, deleted VINs, location data & car SIM(?, breakdown number) numbers:
- Code: Select all
BMW Connected Drive Vehicle Data:
{
"xxx": {
"DCS_CCH_Activation": "NA",
"DCS_CCH_Ongoing": false,
"cbsData": [
{
"cbsDescription": "Next service due when the stated distance has been covered or by the specified date.",
"cbsDueDate": "2021-07",
"cbsRemainingMileage": 23000,
"cbsState": "OK",
"cbsType": "OIL"
},
{
"cbsDescription": "Next visual inspection due when the stated distance has been covered or by the stated date.",
"cbsDueDate": "2023-07",
"cbsRemainingMileage": 60000,
"cbsState": "OK",
"cbsType": "VEHICLE_CHECK"
},
{
"cbsDescription": "Next change due at the latest by the stated date.",
"cbsDueDate": "2022-07",
"cbsState": "OK",
"cbsType": "BRAKE_FLUID"
}
],
"chargingConnectionType": "CONDUCTIVE",
"chargingInductivePositioning": "NOT_POSITIONED",
"chargingLevelHv": 100,
"chargingStatus": "FINISHED_FULLY_CHARGED",
"checkControlMessages": [],
"connectionStatus": "CONNECTED",
"doorDriverFront": "CLOSED",
"doorDriverRear": "CLOSED",
"doorLockState": "SECURED",
"doorPassengerFront": "CLOSED",
"doorPassengerRear": "CLOSED",
"fuelPercent": 25,
"hood": "CLOSED",
"internalDataTimeUTC": "2020-01-06T12:35:51",
"lastChargingEndReason": "CHARGING_GOAL_REACHED",
"lastChargingEndResult": "SUCCESS",
"mileage": 8459,
"parkingLight": "OFF",
"position": {
"heading": 100,
"lat": LAT,
"lon": LON,
"status": "OK"
},
"positionLight": "OFF",
"rearWindow": "INVALID",
"remainingFuel": 9,
"remainingRangeElectric": 42,
"remainingRangeElectricMls": 26,
"remainingRangeFuel": 184,
"remainingRangeFuelMls": 114,
"singleImmediateCharging": false,
"trunk": "CLOSED",
"updateReason": "DOOR_STATE_CHANGED",
"updateTime": "2020-01-06T12:35:51+0000",
"vehicleCountry": "FI",
"vin": "xxx",
"windowDriverFront": "CLOSED",
"windowDriverRear": "CLOSED",
"windowPassengerFront": "CLOSED",
"windowPassengerRear": "CLOSED"
},
"yyy": {
"DCS_CCH_Activation": "NA",
"DCS_CCH_Ongoing": false,
"cbsData": [
{
"cbsDescription": "Next service due when the stated distance has been covered or by the specified date.",
"cbsDueDate": "2021-03",
"cbsRemainingMileage": 29000,
"cbsState": "OK",
"cbsType": "OIL"
},
{
"cbsDescription": "Next visual inspection due when the stated distance has been covered or by the stated date.",
"cbsDueDate": "2023-03",
"cbsRemainingMileage": 60000,
"cbsState": "OK",
"cbsType": "VEHICLE_CHECK"
},
{
"cbsDescription": "Next change due at the latest by the stated date.",
"cbsDueDate": "2022-03",
"cbsState": "OK",
"cbsType": "BRAKE_FLUID"
}
],
"chargingConnectionType": "CONDUCTIVE",
"chargingInductivePositioning": "NOT_POSITIONED",
"chargingLevelHv": 56,
"chargingStatus": "CHARGING",
"chargingTimeRemaining": 115,
"checkControlMessages": [],
"connectionStatus": "CONNECTED",
"doorDriverFront": "CLOSED",
"doorDriverRear": "CLOSED",
"doorLockState": "SECURED",
"doorPassengerFront": "CLOSED",
"doorPassengerRear": "CLOSED",
"hood": "CLOSED",
"internalDataTimeUTC": "2020-01-06T12:36:06",
"lastChargingEndReason": "UNKNOWN",
"lastChargingEndResult": "UNKNOWN",
"maxRangeElectric": 27,
"maxRangeElectricMls": 17,
"mileage": 2183,
"parkingLight": "OFF",
"position": {
"heading": 281,
"lat": LAT,
"lon": LON,
"status": "OK"
},
"positionLight": "OFF",
"rearWindow": "INVALID",
"remainingFuel": 21,
"remainingRangeElectric": 14,
"remainingRangeElectricMls": 8,
"remainingRangeFuel": 342,
"remainingRangeFuelMls": 212,
"singleImmediateCharging": false,
"trunk": "CLOSED",
"updateReason": "CHARGING_STARTED",
"updateTime": "2020-01-06T13:11:39+0000",
"vehicleCountry": "FI",
"vin": "yyy",
"windowDriverFront": "CLOSED",
"windowDriverRear": "CLOSED",
"windowPassengerFront": "CLOSED",
"windowPassengerRear": "CLOSED"
},
"vehicles": [
{
"a4a": "NOT_SUPPORTED",
"bodytype": "G20",
"brand": "BMW",
"breakdownNumber": "sss",
"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": "ALPINWEISS III",
"colorCode": "300",
"countryCode": "B1-NE-FI",
"dealer": {
"city": "Lappeenranta",
"country": "FI",
"name": "Veljekset Laakkonen Oy, Lappeenrant",
"phone": "+358 10 2149555",
"postalCode": "53500",
"street": "Katsastajankatu 4"
},
"doorLock": "ACTIVATED",
"doorUnlock": "ACTIVATED",
"driveTrain": "PHEV",
"hasAlarmSystem": true,
"hmiVersion": "id7",
"hornBlow": "ACTIVATED",
"hub": "HUB_ECE",
"intermodalRouting": "NOT_AVAILABLE",
"ipa": "NOT_SUPPORTED",
"lastDestinations": "NOT_SUPPORTED",
"lightFlash": "ACTIVATED",
"lscType": "LSC_PHEV",
"model": "330e",
"onlineSearchMode": "MAP",
"rangeMap": "NOT_SUPPORTED",
"remote360": "NOT_SUPPORTED",
"remoteSoftwareUpgrade": "ACTIVATED",
"sendPoi": "ACTIVATED",
"smartSolution": "NOT_SUPPORTED",
"statisticsAvailable": false,
"statisticsCommunityEnabled": false,
"steering": "LH",
"supportedChargingModes": [
"AC_LOW"
],
"vehicleFinder": "ACTIVATED",
"vehicleFinderRestriction": "NONE",
"vin": "xxx",
"yearOfConstruction": 2019
},
{
"a4a": "BLUETOOTH",
"bodytype": "G30",
"brand": "BMW",
"breakdownNumber": "SSS",
"carCloud": "ACTIVATED",
"chargeNow": "NOT_SUPPORTED",
"chargingControl": "WEEKLY_PLANNER",
"chargingUpdateMode": "NORMAL_PROGNOSE_BASED",
"climateControl": "NOT_SUPPORTED",
"climateControlRES": "NOT_SUPPORTED",
"climateFunction": "AIRCONDITIONING",
"climateNow": "ACTIVATED",
"climateNowRES": "NOT_SUPPORTED",
"color": "BLACK SAPPHIRE METALLIC",
"colorCode": "475",
"countryCode": "B1-NE-FI",
"dealer": {
"city": "Jyv\u00e4skyl\u00e4",
"country": "FI",
"name": "Veljekset Laakkonen Oy, Jyv\u00e4skyl\u00e4",
"phone": "+358 10 2148400",
"postalCode": "40320",
"street": "Palokankaantie 20"
},
"doorLock": "ACTIVATED",
"doorUnlock": "ACTIVATED",
"driveTrain": "PHEV",
"hasAlarmSystem": true,
"hmiVersion": "ID5",
"hornBlow": "ACTIVATED",
"hub": "HUB_ECE",
"intermodalRouting": "NOT_AVAILABLE",
"ipa": "NOT_SUPPORTED",
"lastDestinations": "NOT_SUPPORTED",
"lightFlash": "ACTIVATED",
"lscType": "LSC_PHEV",
"model": "530e iPerformance",
"onlineSearchMode": "MAP",
"rangeMap": "NOT_SUPPORTED",
"remote360": "NOT_SUPPORTED",
"remoteSoftwareUpgrade": "NOT_SUPPORTED",
"sendPoi": "ACTIVATED",
"smartSolution": "NOT_SUPPORTED",
"statisticsAvailable": true,
"statisticsCommunityEnabled": false,
"steering": "LH",
"supportedChargingModes": [
"AC_LOW"
],
"vehicleFinder": "ACTIVATED",
"vehicleFinderRestriction": "NONE",
"vin": "yyy",
"yearOfConstruction": 2019
}
]
}