ReneNulschDE / mbapi2020

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

Chinese Market - PIN code request is not working #157

Closed harlonjo closed 7 months ago

harlonjo commented 8 months ago

sensors offine suddenly

ReneNulschDE commented 8 months ago

Hi @harlonjo ,

please take the time to explain your problem properly

what do you do? What is your setup? What is not working? What have you tried already? What are the errors in the log? What elso do you know that could help me to answer your question?

BR Rene

harlonjo commented 8 months ago

Still can't receive PIN code(six numbers) after I login my mercedes me account, it worked before yesterday and sensors were created normally. @ReneNulschDE

ReneNulschDE commented 8 months ago

Hi, its not a general problem with the component, I received several PINs today. Without a detailed error-log its impossible to help. Please try first to use the MB mobile app. Logout and login in the mobile app and check if its working in the app.

harlonjo commented 8 months ago

It worked in app during the component worked with problem, how can I provide error logs to you. I may try to reinstall the component first. @ReneNulschDE

ReneNulschDE commented 8 months ago

Hi,

Are you really sure that you logged-out in the MB app and logged-in again to test the PIN process? If yes, did you checked your Spam Folder? The PIN code process is quite simple. As long as the email-address is correct and you selected the right region, it should work.

To enable the logging:

  1. Goto the integration page of MBAPI2020 and click on "Enable debug logging".
  2. Restart HA
  3. Reauthenticate the integration
  4. Goto the integration page of MBAPI2020 and click on "Disable debug logging", save the file and send the file to mb.dev.issue157@nulsch.de
harlonjo commented 8 months ago

I'm sure that I logged-out in the MB app and logged-in again to test the PIN process, it's still working on my phone. I tried to use my email, but I can't fine PIN neither in my inbox, nor in my spam folder. I used my phone number to logged-in with +86, and selected CN, it did work before. Now, I'm not able to go to the integration page, because I can't reauthenticate the integration. /sad face @ReneNulschDE

ReneNulschDE commented 8 months ago

You are from China?

You can enable the debug logging via the configuration.yaml too, see the readme at the end - but I expect that something has changed in your region.

ReneNulschDE commented 8 months ago

@gnep88 : Do you still use the integration? Does the PIN request works for you in China?

harlonjo commented 8 months ago

Oh...I just configurated my car dashboard in HA, did even not use it for 1 day... @ReneNulschDE QQ截图20231213084721

ReneNulschDE commented 8 months ago

@harlonjo : Could you please share the debug log?

harlonjo commented 8 months ago

OK, I try to get my debug log. @ReneNulschDE

SolarZom commented 7 months ago

I'm a Chinese user and I can't get my PIN either。

Logger: custom_components.mbapi2020.oauth Source: custom_components/mbapi2020/oauth.py:224 Integration: MercedesME 2020 (documentation, issues) First occurred: 15:59:17 (1 occurrences) Last logged: 15:59:17

ClientError requesting data from https://ciam-1.mercedes-benz.com.cn/as/token.oauth2: 400, message='Bad Request', url=URL('https://ciam-1.mercedes-benz.com.cn/as/token.oauth2')

ReneNulschDE commented 7 months ago

Hi @SolarZom ,

unfortunately, I have no access to any Chinese car and therefor I can't test this currently.

I have an idea what the problem is, but I need a Chinese user to test this.

What is your technical level? Could you change some easy points in the source code and restart HA?

SolarZom commented 7 months ago

Hi @ReneNulschDE ,I am very happy to assist you, but my technical level may not be enough. You can tell me what needs to be modified, and I can try it out as much as I can.

Caferriade commented 7 months ago

Guten Tag, ich versuche, Mercedes ME 2020 zu verwenden. Ich gebe die E-Mail-Adresse ein, erhalte jedoch keine PIN. Ich bin in Italien und habe Europa ausgewählt. Während ich für andere Leute gelesen habe, habe ich mich von der App und der Webseite abgemeldet, erhalte aber immer noch keine PIN. Können Sie mir ein paar Hinweise geben? Danke

ReneNulschDE commented 7 months ago

Please check this link: https://github.com/ReneNulschDE/mbapi2020/issues/184#issuecomment-1930897256

This should solve the problem with china too.

ReneNulschDE commented 7 months ago

fixed with v0.10.1