ReneNulschDE / mbapi2020

Custom Component to integrate MercedesME devices into Home-Assistant
Other
149 stars 29 forks source link

Mercedes Me sensors offline #152

Closed vistalba closed 8 months ago

vistalba commented 9 months ago

Hi together

I run this integration since a few months. Got a new car last week and updated the config to get the new cars information. Everything was working well until 23. November at 09:02. Since then all sensors are unavailable. And beside of that, also in the Mercedes me app everything is offline and not available :(

I want to ask if anyone else has similar issues? May this integration spammed the API and I got banned?

ReneNulschDE commented 9 months ago

Hi, if it's not working in the MB App then call the MB Support and try to get the app running again. Afterthat your integration should work again. Most often this is a problem with account linking.

This integration is acting like the MB app and I have never heard that the integration produced problems with the MBApp.

Jealy91 commented 9 months ago

I contacted support about this over a week ago, they said it's a known issue at the moment.

Thank you for contacting Mercedes-Benz about the issue you face with the remote information of your vehicle. We are sorry for the inconvenience. Its a known issue and at the moment the technical department is trying to resolve it and implement the solution.

vistalba commented 9 months ago

Called the support line today. They told me the same. No information when this will be fixed. I tried to re-add the car at all to the Mercedes Me account. Now stuck on „activation…“ of the services. Was probably not a good idea. :-(

Jealy91 commented 9 months ago

Was considering calling them soon too, thanks for that.

Really annoying actually as I went to drive yesterday and my tyre was flat! If I had the app integration working it would have told me much earlier that I had a puncture! Typical.

StefanHesse commented 9 months ago

For me the App is working perfectly, but the HA Integration is not updating since "26. November 2023 um 23:07:26" I could open a case with MB, but they will not work on it because the App is working perfectly i guess. Any ideas how i could solve this problem?

ReneNulschDE commented 9 months ago

Hi,

Whenever the app is working than we have to dive deeper with this integration. Could you enable debug logging, share more details about your environment and more detailed error description?

StefanHesse commented 9 months ago

Of course. I started debug logging now. How long should i let this run before sending you the data? I updated my HA to version 2023.11.3 on November, 23rd and the integration worked after that update until November 26th. I have an automation sending the SoC to an openWB wallbox, but this automation is not triggered becaused the mbapi2020 does not update the SoC. It is fixed at 80%. What else do you need?

ReneNulschDE commented 9 months ago

@StefanHesse : Lets discuss this in a new issue as the problem is different from my perspective. #154

mafde2023 commented 9 months ago

Same problem here, Mercedes me in the car, app and HA stopped working yesterday afternoon. Wrote an email to CAC today morning, no feedback yet....

ReneNulschDE commented 9 months ago

As we have more and more messages about this problem: Could you check if the deletion of the Token-file (see here) solves the problem with the integration? If, yes, then a logoff in the app could help there too.

vistalba commented 9 months ago

As we have more and more messages about this problem: Could you check if the deletion of the Token-file (see here) solves the problem with the integration? If, yes, then a logoff in the app could help there too.

Tried multiple times in the past 5 days. No luck.

mafde2023 commented 9 months ago

I have done full reset incl. wipe of all data of the official Mercedes me App, but still doesn't work. As far as that won't work, I don't expect HA integration to work again.

ReneNulschDE commented 9 months ago

ok - thanks for the feedback!

mafde2023 commented 9 months ago

A colleague have me the advice to check the approval of the data protection guidelines. What should I say, after login to Mercedes me web portal I had to accept again all data protection guidelines and just afterwards the app started to work again, but not having all information available..... Unfortunately HA doesn't work yet, but I think I first have to drive some minutes with the car again to sync all settings and status information again to the backend of Mercedes. Will do that tomorrow and give feedback again.

Jealy91 commented 9 months ago

My app started working this evening, looks like Mercedes have fixed their services.

Reloaded the integration in Home Assistant and everything came to life.

bbird8 commented 9 months ago

Same issue here out of the blue this morning. Sensors unavailable. Nothing changed locally. App seems still working.

Update: After 3h and restarting the integration from time to time, it seems to be working again now. So, I expect the issue is clearly somewhere on the MB API side.

ReneNulschDE commented 9 months ago

@vistalba : Could you check again? Based on the feedback MB solved their problems.

jasgrif11 commented 9 months ago

Mine still isn't working. in logs I see http status 400 which is bad request, are your credentials still ok? ClientError requesting data from https://id.mercedes-benz.com/as/token.oauth2: 400, message='Bad Request', url=URL('https://id.mercedes-benz.com/as/token.oauth2') ClientError requesting data from https://id.mercedes-benz.com/as/token.oauth2: Cannot connect to host id.mercedes-benz.com:443 ssl:True [Try again]

ReneNulschDE commented 9 months ago

Please delete the auth-token file.

  1. Quit Home Assistant (HA)
  2. Delete the file .mercedesme-token-cache in the config folder of HA
  3. Restart HA
  4. A warning (task) appears in the frontend that the MBAPI2020 component has to log on again. Carry out these steps. (with the same account as in the MB app)
  5. Test
vistalba commented 9 months ago

@ReneNulschDE Can‘t test as I‘m on a business trip without the car. Will report when I‘m back.

jasgrif11 commented 9 months ago

Please delete the auth-token file.

  1. Quit Home Assistant (HA)
  2. Delete the file .mercedesme-token-cache in the config folder of HA
  3. Restart HA
  4. A warning (task) appears in the frontend that the MBAPI2020 component has to log on again. Carry out these steps. (with the same account as in the MB app)
  5. Test

I can confirm that this works. Thanks

nicolaus-hee commented 8 months ago

Update to 0.9.8 did the trick for me.

I was facing the issue with 0.9.6. Had deleted the config but could not re-login ("unknown error" after providing e-mail address). Worked again after update to 0.9.8 via HACS.