core: Nissan Leaf Component not works

The problem

From about 2 days ago, the Nissan Leaf comnponent doesn’t work. I noticed an error in log and some component in Lovelace doesn’t show up.

Environment

I make no change in configuration fiiles, but the integration start to not works. It’s possibile that this happened after I upgrade HA from 0.117.5 to latest 0.117.6, but I’m not sure. Now I’m sure (see first reply).

  • Home Assistant Core release with the issue: 0.117.6
  • Last working Home Assistant Core release (if known): 0.117.5
  • Operating environment (OS/Container/Supervised/Core): HA Stand Alone on Ubuntu 20.10
  • Integration causing this issue: Nissan Leaf Component
  • Link to integration documentation on our website: https://community.home-assistant.io/t/nissan-leaf-component-s-platform/38663

Problem-relevant configuration.yaml

nissan_leaf:
  username: "myemail@something.smt"
  password: "mypassword"
  region: "NE"
  update_interval:
    hours: 1
  update_interval_charging:
    minutes: 5
  update_interval_climate:
    minutes: 5

Traceback/Error logs

2020-11-13 16:57:47 DEBUG (SyncWorker_5) [homeassistant.components.nissan_leaf] Logging into You+Nissan...
2020-11-13 16:57:47 DEBUG (SyncWorker_5) [pycarwings2.pycarwings2] invoking carwings API: https://gdcportalgw.its-mo.com/api_v190426_NE/gdc/InitialApp_v2.php
2020-11-13 16:57:47 DEBUG (SyncWorker_5) [pycarwings2.pycarwings2] params: {
"RegionCode": "NE",
"custom_sessionid": "",
"initial_app_str": "9s5rfKVuMrT03RtzajWNcA",
"lg": "en-US"
}
2020-11-13 16:57:48 DEBUG (SyncWorker_5) [pycarwings2.pycarwings2] Response HTTP Status Code: 200
2020-11-13 16:57:48 DEBUG (SyncWorker_5) [pycarwings2.pycarwings2] Response HTTP Response Body: b'{"status":200,"message":"success","baseprm":"88dSp7wWnV3bvv9Z88zEwg"}'
2020-11-13 16:57:48 DEBUG (SyncWorker_5) [pycarwings2.pycarwings2] invoking carwings API: https://gdcportalgw.its-mo.com/api_v190426_NE/gdc/UserLoginRequest.php
2020-11-13 16:57:48 DEBUG (SyncWorker_5) [pycarwings2.pycarwings2] params: {
"Password": "XXXXXXXXXXXXXXXXXXX",
"RegionCode": "NE",
"UserId": "myemail@something.smt",
"custom_sessionid": "",
"initial_app_str": "9s5rfKVuMrT03RtzajWNcA"
}
2020-11-13 16:57:49 DEBUG (SyncWorker_5) [pycarwings2.pycarwings2] Response HTTP Status Code: 200
2020-11-13 16:57:49 DEBUG (SyncWorker_5) [pycarwings2.pycarwings2] Response HTTP Response Body: b'{"status":404,"message":"INVALID PARAMS"}'
2020-11-13 16:57:49 ERROR (SyncWorker_5) [pycarwings2.pycarwings2] carwings error INVALID PARAMS: 404
2020-11-13 16:57:49 ERROR (SyncWorker_5) [homeassistant.components.nissan_leaf] An unknown error occurred while connecting to Nissan: <class 'pycarwings2.pycarwings2.CarwingsError'>

Additional information

Nissan Connect EV website works correctly, like app on smartphone. I tryed to remove and re-add integration, but with no luck.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 24 (1 by maintainers)

Most upvoted comments

A workaround here.

By(t)e

This seems to be duplicate of Issue #43312

Hi phil

Good to see you are back! Yes, all tickets regarding the leaf plugin is duplicate, problem is as you understand by now the user-agent header in pycarwings2 have changed behaviour when urllib3 was bumped in pyrequest.

This seems to be duplicate of Issue #43312