core: Nissan Leaf Integration Error (error connecting to nissan)

The problem

While trying to setup the integration it errors stating it cannot connect to Nissan.

What version of Home Assistant Core has the issue?

core-2023.1.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

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: <i'm a pikachu in a pikaworld>
  password: <life's fantastic i'm so static>
  region: NE

Anything in the logs that might be useful for us?

2023-01-23 20:12:10.858 DEBUG (SyncWorker_2) [homeassistant.components.nissan_leaf] Logging into You+Nissan
2023-01-23 20:12:15.619 ERROR (SyncWorker_2) [homeassistant.components.nissan_leaf] An unknown error occurred while connecting to Nissan: <class 'pycarwings2.pycarwings2.CarwingsError'>

Additional information

No response

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 1
  • Comments: 43 (21 by maintainers)

Commits related to this issue

Most upvoted comments

I think something has changed at Nissan at the beginning of October. Stuff that no longer works: HA

2023-10-06 08:39:01.539 DEBUG (SyncWorker_2) [homeassistant.components.nissan_leaf] Logging into You+Nissan
2023-10-06 08:39:18.378 ERROR (SyncWorker_2) [homeassistant.components.nissan_leaf] An unknown error occurred while connecting to Nissan: <class 'pycarwings2.pycarwings2.CarwingsError'>
2023-10-06 08:59:25.767 DEBUG (MainThread) [homeassistant.components.nissan_leaf] Vin xxxxxxxxxxxxxxx not recognised for update

leaf2mqtt

[09:14:03] INFO: Starting leaf2mqtt...
WARNING: 2023-10-06 09:14:45.471058: main: An error occured while logging in. Please make sure you have selected the right LEAF_TYPE, LEAF_USERNAME and LEAF_PASSWORD. Retrying in 5 seconds.
WARNING: 2023-10-06 09:14:45.471220: main: Could not execute request.

The Nissan android app (now says “The service cannot be provided Please try again or contact NISSAN”) The android myLeaf app

Stuff that works The you+nissan web page

I suspect Nissan has changed the apis again

I did some digging into this, and it appears that the EU app uses kamereon api, which is the same as renault… So maybe the renault codebase can be leveraged to output nissan data…