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

Home assistant Integration not fully loaded #642

Open rikroe opened 1 month ago

rikroe commented 1 month ago

Good morning, I have a BMW 318d from 2018 and I just installed the BMW Connected Drive integration. after having entered my login and password, it found 6 entities. but the problem is that everything remains “unknown”. Is there anything more I need to do after installing the integration? why doesn't this work? thank you.

_Originally posted by @schumi2309 in https://github.com/bimmerconnected/bimmer_connected/discussions/641_

rikroe commented 1 month ago

That seems not normal. Have you tried reloading the integration?

Otherwise, please go to the integrations page, download a diagnostic report and upload it.

schumi2309 commented 1 month ago

yes, I have already reloaded the integration, restarted Home Assistant, but that doesn't change anything. here is the diagnosis concerning the bmw integration:

Capture d’écran 2024-08-02 à 18 40 35

rikroe commented 1 month ago

Could you please provide the whole file? It is stripped of any personal information and safe to upload publicly.

schumi2309 commented 1 month ago

This:

bmw_connected_drive-01J44D5S2PWNMV1HFER81WBJ9P-318d-00132b25657d372666c744150f4e90a1.json

rikroe commented 1 month ago

Thanks for providing this! However I've got some bad news - on pre-LCI F31 vehicles (i.e. with NBT) the only thing we can provide are buttons (for the remote services), lock (to lock/unlock, but without the current lock state) and device_tracker (if vehicle finder server was run).

The API does not provide more information, thats also why you dont have more options in the MyBMW app.

schumi2309 commented 1 month ago

so if I understand you correctly, I have 6 entities but no status feedback, neither for the tracker, nor for the lock. no information comes back. ? so, what use are the 6 entities to me if in any case, nothing works and no state goes back to HA??? Is that what I should understand? My desire here was not to control my doors or horn etc, but to have the status tracker and door locking. information only.

Capture d’écran 2024-08-03 à 09 45 28 Capture d’écran 2024-08-03 à 09 45 43 Capture d’écran 2024-08-03 à 09 46 03 Capture d’écran 2024-08-03 à 09 51 46

rikroe commented 1 month ago

Exactly. On your pre-facelift 3 series F31, you can only control the car but will not get any status information back.

This is a limitation of the BMW API and the same in the MyBMW app. There is no possibility to change this except for buying a newer car, unfortunately.

schumi2309 commented 1 month ago

In my case, I don't even control my car in HA. nothing works. I only have the entities but they are of no use. If I press a button I have: Failed to call the service. so I don't even know how to control it. so, what is the point of integrating if I don't know how to control it or have the status??

rikroe commented 1 month ago

Is there any further log message when you call the service?

The point of this integration is that if you have a newer car (3 series after 2019) or some other newer model, you also have status.

Why BMW is not able to provide the status on their first generation connected vehicles, please ask BMW.

schumi2309 commented 1 month ago

Here is the message when I press the service: Capture d’écran 2024-08-03 à 10 46 32

However, in the MyBMW app, I have access to all these commands, for example, it opens or closes my doors, and sends me a notification on my smartphone after execution.

IMG_2736

rikroe commented 1 month ago

You should be able to lock/unlock your car.

For vehicle finder it seems that the BMW API reports it is unavailable, but apparently it will work nevertheless: image

I'll put in a PR for this. However please keep in mind that you will have to call this service to get it updated, as the car will not update it by itself. Calling the API too often will also result in rate limits by the API.

schumi2309 commented 1 month ago

Thanks for your help. But what is PR? Could you tell me what I should do? should I install bimmerconnected? because I just installed the BMW connected Drive integration. If yes, what is the procedure? with HACS? Thanks again...

rikroe commented 1 month ago

Pull request = the request to merge code, in this case #643. This needs to be merged into this code base first.

Then we need to create a new version release of this library and Create another PR with home assistant to have this included as well. Then you can get the latest update of HA and have the fixes.

It's a process, please have some patience.

schumi2309 commented 1 month ago

yes, yes, of course, no worries. I just wanted to know what to do and how to do it. should I still install "bimmerconnected"? and if so, what is the procedure? via hacs? that's very kind of you, once again a big thank you...

rybackisback commented 1 month ago

I also get the error failed to perform action error. see attached. HA 2024.8

Screenshot 2024-08-08 172325

My issue was related to my connected drive subscription running out. Once i renewed my subscription it started to work again.

rikroe commented 1 month ago

I just wanted to know what to do and how to do it.

Just install the latest Home Assistant. Although be warned that the current issue is not yet integrated.

@rybackisback please also provide a diagnostics json.

schumi2309 commented 2 weeks ago

Je voulais juste savoir quoi faire et comment le faire.

Il suffit d'installer la dernière version de Home Assistant. Sachez toutefois que la version actuelle n'est pas encore intégrée.

@rybackisbackveuillez également fournir un json de diagnostic.

Do you have any news regarding my problem? I just updated HA again, but nothing changes. Thanks in advance...

rikroe commented 1 week ago

The changes got merged into HA Core repo, so will be available with HA 2025.9.

schumi2309 commented 1 week ago

Ok, thanks.

But: HA 2025.9 or HA 2024.9 ?

rikroe commented 1 week ago

Sorry, 2024.9 😉

schumi2309 commented 1 day ago

hello, it's me again. I don't see anything new in version 2024.9 Do I need to re-install the BMW Connect integration? i have HA 2024.9.1