bimmerconnected / bimmer_connected

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

Air condition not working with engine_start #146

Closed bhavishyachandra closed 4 years ago

bhavishyachandra commented 4 years ago

Describe the issue I have a 2020 M340i Xdrive that relies on remote engine start for the air condition to work. Every other function in the API works except for this one. Would be great if you could add the functionality to support cars with remote engine start.

Response from the API { "error": { "code": 500, "description": "(SmartPhoneUtil-A-2013) Action is forbidden. User is not allowed to use the service CLIMATE_NOW" } }

Output of bimmer_connected fingerprint { "vehicles": [ { "a4a": "NOT_SUPPORTED", "bodytype": "G20", "brand": "BMW", "breakdownNumber": "+4989358957103", "carCloud": "NOT_SUPPORTED", "chargeNow": "NOT_SUPPORTED", "chargingControl": "NOT_SUPPORTED", "climateControl": "NOT_SUPPORTED", "climateControlRES": "DEPARTURE_TIMER", "climateFunction": "ENGINE_START", "climateNow": "NOT_SUPPORTED", "climateNowRES": "ACTIVATED", "color": "PORTIMAO BLAU METALLIC", "colorCode": "C31", "countryCode": "V2-US", "dealer": { "city": "Solan", "country": "US", "name": "BMW Cleveland", "phone": "+1 440 542-0600", "postalCode": "44139", "street": "6135 Kruse Dr" }, "doorLock": "ACTIVATED", "doorUnlock": "ACTIVATED", "driveTrain": "CONV", "fuelType": "PETROL", "hasAlarmSystem": true, "hmiVersion": "id7", "hornBlow": "ACTIVATED", "hub": "HUB_US", "intermodalRouting": "NOT_AVAILABLE", "ipa": "NOT_SUPPORTED", "lastDestinations": "NOT_SUPPORTED", "lightFlash": "ACTIVATED", "lscType": "LSC_BASIS", "model": "M340i xDrive", "onlineSearchMode": "MAP", "rangeMap": "NOT_SUPPORTED", "remote360": "NOT_SUPPORTED", "remoteSoftwareUpgrade": "ACTIVATED", "sendPoi": "ACTIVATED", "smartSolution": "NOT_SUPPORTED", "statisticsAvailable": false, "statisticsCommunityEnabled": false, "steering": "LH", "vehicleFinder": "ACTIVATED", "vehicleFinderRestriction": "NONE", "vin": "some_vin", "yearOfConstruction": 2019 } ] }

rikroe commented 4 years ago

I suspect that at least for newer cars some more elaborate auth is needed...

If you have time and want to try something, can you test using my newapi_bkp branch from https://github.com/rikroe/bimmer_connected/tree/newapi_bkp? This uses some other REST endpoints and more steps in authentication.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.