Nissan leaf

Hello

I would like to add my nissan leaf in the home assistant but I don’t see any entity.
I added that

nissan_leaf:
username: “YOUR_USERNAME”
password: “YOUR_PASSWORD”
region: “YOUR_REGION”

How to do ?

Thank you

I assume you understood that username: and password: are your actual username/password to the nissan cloud, right?
Also region: must be NE, NNA, …

Yes

nissan_leaf:
username: [email protected]
password: xxxxxxx
region: NE

but I don’t see any entity

Did you solve it? I’m having the same issue.

Check your logs for errors :smiley: and post them here

This is what I got:

2021-10-01 10:15:48 DEBUG (SyncWorker_1) [homeassistant.components.nissan_leaf] Logging into You+Nissan

2021-10-01 10:15:50 ERROR (SyncWorker_1) [homeassistant.components.nissan_leaf] An unknown error occurred while connecting to Nissan: <class ‘pycarwings2.pycarwings2.CarwingsError’>

Just looked through the code, and I think i found why it is thrown but i am not sure what you can do about it, as it returns an object instead of the error. This seems to be a bug. To find out more you can try to run the python module separately in command line

Hello,
no I have not solved my problem.
Still no entity

When you still have problems: Have you checked that you can login with the NissanConnectEV app?

On the webpage i was able to login but not the app and therefore homeassistant wasn’t able to fetch the details of the car. I had to contact Nissan-Support to fix my account so that I was able to login with the Connect App - now it works like intended.

So maybe its an account problem on your side as well?

my car is a 2021 model. It does not use the NissanEV application but NissanConnect.

Is it the same for you?

No i use older models which use the NissanConnectEV app - sadly not NissanConnect.

But as I had multiple problems with the online services from Nissan in the past i assumed that it might be a problem on their side and not yours.

I get the same error. No entities are present.

Logger: homeassistant.components.nissan_leaf
Source: components/nissan_leaf/init.py:188
Integration: Nissan Leaf (documentation, issues)
First occurred: 17:09:31 (1 occurrences)
Last logged: 17:09:31

An unknown error occurred while connecting to Nissan: <class ‘pycarwings2.pycarwings2.CarwingsError’>

Connection to the car via the Nissan Connect app works fine with the same credentials and region.

Anyone got this working? Thanks, Mark.

There are many items on this subject without real solutions. I’m trying to add nissan_leaf to my installation (pi hassio). Modified configuration.yaml with my credentials. My app is Nissanconnect.

Below is the log seen after a reboot. Looks like a dataconflict.

Issue is pending since at least 2019. Any solutions yet that work?

LOG

2023-03-27 18:11:13.101 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

2023-03-27 18:11:49.486 DEBUG (SyncWorker_7) [homeassistant.components.nissan_leaf] Logging into You+Nissan

2023-03-27 18:11:49.489 DEBUG (SyncWorker_7) [pycarwings2.pycarwings2] invoking carwings API: https://gdcportalgw.its-mo.com/api_v210707_NE/gdc/InitialApp_v2.php

2023-03-27 18:11:49.493 DEBUG (SyncWorker_7) [pycarwings2.pycarwings2] params: {

   "RegionCode": "NE",

   "custom_sessionid": "",

   "initial_app_str": "******",

   "lg": "en-US"

}

2023-03-27 18:11:50.909 DEBUG (SyncWorker_7) [pycarwings2.pycarwings2] Response HTTP Status Code: 200

2023-03-27 18:11:50.910 DEBUG (SyncWorker_7) [pycarwings2.pycarwings2] Response HTTP Response Body: b'{"status":200,"message":"success","baseprm":"88dSp7wWnV3bvv9Z88zEwg"}'

2023-03-27 18:11:51.009 DEBUG (SyncWorker_7) [pycarwings2.pycarwings2] invoking carwings API: https://gdcportalgw.its-mo.com/api_v210707_NE/gdc/UserLoginRequest.php

2023-03-27 18:11:51.010 DEBUG (SyncWorker_7) [pycarwings2.pycarwings2] params: {

   "Password": "******",

   "RegionCode": "NE",

   "UserId": "******",

   "custom_sessionid": "",

   "initial_app_str": "*****"

}

2023-03-27 18:11:54.021 DEBUG (SyncWorker_7) [pycarwings2.pycarwings2] Response HTTP Status Code: 200

2023-03-27 18:11:54.022 DEBUG (SyncWorker_7) [pycarwings2.pycarwings2] Response HTTP Response Body: b'{"status":"-2010","message":"INVALID PARAMS"}'

2023-03-27 18:11:54.022 ERROR (SyncWorker_7) [pycarwings2.pycarwings2] carwings error INVALID PARAMS: -2010

2023-03-27 18:11:54.133 ERROR (SyncWorker_7) [homeassistant.components.nissan_leaf] An unknown error occurred while connecting to Nissan: <class 'pycarwings2.pycarwings2.CarwingsError'>

any progress on this?

Hi,
I own a 2014 Nissan Leaf. The official HA Nissan module has not been able to connect to the server (EU) since last week. I also cannot login with the NissanConnectEV app. Is anyone else experiencing the same issue?

Thx