home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.56k stars 30.73k forks source link

Nissan Leaf INVALID PARAMS: -2010 #90884

Closed hkusulja closed 1 year ago

hkusulja commented 1 year ago

The problem

Hello, I am new to Nissan Connect. I have it on Android phone and it works. now trying to setup first time in Home Assistant, but it does not work. I have provided logs and configuration below, password is correct. That i have and I am unable to troubleshoot further, please advise what needs to be done next from my side, or interation is broken and does not work?

What version of Home Assistant Core has the issue?

core-2023.3.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Nissan Leaf

Link to integration documentation on our website

https://www.home-assistant.io/integrations/nissan_leaf/

Diagnostics information

No response

Example YAML snippet

nissan_leaf:
  username: "<myemail>"
  password: "<mypass>"
  region: "NE"
  update_interval:
    hours: 1

Anything in the logs that might be useful for us?

2023-04-06 01:11:45.867 ERROR (SyncWorker_3) [pycarwings2.pycarwings2] carwings error INVALID PARAMS: -2010
2023-04-06 01:11:45.929 ERROR (SyncWorker_3) [homeassistant.components.nissan_leaf] An unknown error occurred while connecting to Nissan: <class 'pycarwings2.pycarwings2.CarwingsError'>

Additional information

I am in EU region.

home-assistant[bot] commented 1 year ago

Hey there @filcole, mind taking a look at this issue as it has been labeled with an integration (nissan_leaf) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `nissan_leaf` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign nissan_leaf` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


nissan_leaf documentation nissan_leaf source (message by IssueLinks)

Jopand commented 1 year ago

I have the same issue. Started yesterday

Kerdika commented 1 year ago

Same Issue, just tried to install/configure this integration and got -2010 in logs

An unknown error occurred while connecting to Nissan: <class 'pycarwings2.pycarwings2.CarwingsError'> 12:32:36 AM – (ERROR) Nissan Leaf carwings error INVALID PARAMS: -2010 12:32:36 AM – (ERROR) components/nissan_leaf/init.py

oveand commented 1 year ago

Found a solution!

On April 5th I got a mail from Nissan stating that the NissanConnect EV services would be undergoing maintenance for the next months. The following is Google Translated from Danish to English: The NissanConnect EV services will be temporarily unavailable. Very annoying but could be the cause of our issues.

Dear [name] Important maintenance will be carried out on the NissanConnect EV in the coming months, starting in April. It will happen in phases and during these maintenance periods you will experience interruptions in the NissanConnect EV services. You will be informed about upcoming maintenance periods in the NissanConnect EV app and on the connection portals. Once the maintenance period is over, the services will be available again. We apologize for the inconvenience and thank you for your understanding. If you are unable to access the NissanConnect EV services after the maintenance period has ended, please use the feedback form below to contact your customer service team.

Can you log into the Nissan EV app? I could not. While investigating this I did log into You+Nissan web page, went to My Garage, clicked Connected services and got the following message:

Already have an account with You+Nissan? In the latest upgrade of You+Nissan, we strengthened access security. Please reset your password to still enjoy our services. Thanks!

Apparently my account has been disabled as my password was not strong enough. Resetting my password now requires special characters. After updating my password I tried logging in again on My Garage but got notified I had to wait 15 minutes due to to many failed login attempts. While waiting 15 minutes I updated my password in HA after after 15 minutes I restarted HA and now everything is working again!

So apparently Nissan disabled all our accounts due to password policy being updated, but forgot to tell anyone. I have no words covering this f*****. Not very professional..

rooey commented 1 year ago

I'm also seeing this - I don't have any issues with my account or app access. I guess You+Nissan is country specific. There's no "garage" as such here for me, just a page with my leaf's registration number on it - no connectivity to the apps etc from there. Regardless, I also tried a password reset - just incase... to no avail.

An unknown error occurred while connecting to Nissan: <class 'pycarwings2.pycarwings2.CarwingsError'>
23:33:05 – (ERROR) Nissan Leaf
carwings error INVALID PARAMS: -2010
23:33:05 – (ERROR) components/nissan_leaf/__init__.py
azpoul commented 1 year ago

Same issue for me. I've reset the password and verified it works with the You+ Nissan website, but it doesn't work with the integration.

azpoul commented 1 year ago

Found a solution!

On April 5th I got a mail from Nissan stating that the NissanConnect EV services would be undergoing maintenance for the next months. The following is Google Translated from Danish to English: The NissanConnect EV services will be temporarily unavailable. Very annoying but could be the cause of our issues.

Dear [name] Important maintenance will be carried out on the NissanConnect EV in the coming months, starting in April. It will happen in phases and during these maintenance periods you will experience interruptions in the NissanConnect EV services. You will be informed about upcoming maintenance periods in the NissanConnect EV app and on the connection portals. Once the maintenance period is over, the services will be available again. We apologize for the inconvenience and thank you for your understanding. If you are unable to access the NissanConnect EV services after the maintenance period has ended, please use the feedback form below to contact your customer service team.

Can you log into the Nissan EV app? I could not. While investigating this I did log into You+Nissan web page, went to My Garage, clicked Connected services and got the following message:

Already have an account with You+Nissan? In the latest upgrade of You+Nissan, we strengthened access security. Please reset your password to still enjoy our services. Thanks!

Apparently my account has been disabled as my password was not strong enough. Resetting my password now requires special characters. After updating my password I tried logging in again on My Garage but got notified I had to wait 15 minutes due to to many failed login attempts. While waiting 15 minutes I updated my password in HA after after 15 minutes I restarted HA and now everything is working again!

So apparently Nissan disabled all our accounts due to password policy being updated, but forgot to tell anyone. I have no words covering this f*****. Not very professional..

I got an email from Nissan about updating my password. Check your spam folder :)

Meatballs1 commented 1 year ago

The password reset link from Nissan explicitly says not use special characters? 🤣 But it appears to depend where you do it from.

rooey commented 1 year ago

I've still had no luck making this work. I can access the app just fine.

rooey commented 1 year ago

@filcole does anything here shine a light for you? i'd left it a few weeks in case their maintenance was impacting but alas no joy.

engelchrisi commented 1 year ago

I never succeeded with pycarwings2 based solutions. With my user the server always returned the above error.

I create today 2 new users for DE and UK, same password, same user. The Iphone app could still login with the old user as the Kameron Platform user seems to be a different one. So I tried all 3 users (DE/UK you+ and Kameron used by the Nissan IPhone app) with pycarwings2 library. All failed with the 2010 error.

After googling I found the Leaf2Mqtt homeassistant addon which uses the Kameron Dart API. This works perfectly and hopefully for a long time - not sure when Nissan is changing the next URL path.

https://github.com/yp87/leaf2mqtt#sensor-examples

Meatballs1 commented 1 year ago

For the app changing the region to Japan rather than UK works... For MyLeaf at least, the NissanEV app logs in but doesn't show any data. For the integration it logs in but says Unable to fetch car details... do you actually have a Leaf connected to your account?

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.