dan-r / homeassistant-nissanconnect Goto Github PK
View Code? Open in Web Editor NEWUnofficial Home Assistant integration for interacting with Nissan Connect vehicles ๐
License: Apache License 2.0
Unofficial Home Assistant integration for interacting with Nissan Connect vehicles ๐
License: Apache License 2.0
Hello,
Is it possible to start the charging process remotely with this integration ?
I can see if the cable is connected and if the car is charging, but I didn't find a button to start the charge (like on the NissanConnect app) Is it plan to implement it ?
Thank you ;-)
Cyril
Hello sorry for my English
I will try to explain you my problem
I write my account, mail and password but it's a bad configuration, no update is possible.
I have an Ariya of December 23 in France.
I download it on HACS, install it, restart HA and in integration panel wrote my account but no issue... Thanks a lot
Invalid credentials provided
I own a Nissan Ariya from Spain.
I have installed your module. When I try to connect to the Nissan Connect (EU) service, I get an error (see screenshot)
I enter login and password the same as in NissanConnect Services application.
I tried to find this error in the HomeAssistans logs, but I could not find it anywhere.
I would like your help in solving this problem.
Thank you.
What happened?
Restarted HA and got the error that Nissan Connect was unable to setup. Had been working fine prior to this.
Log Output
Logger: homeassistant.config_entries
Source: config_entries.py:575
First occurred: 09:01:00 (2 occurrences)
Last logged: 09:29:47
Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/__init__.py", line 47, in async_setup_entry
await hass.async_add_executor_job(kamereon_session.login,
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 698, in login
oauth_authorize_url = resp.headers['location']
~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/structures.py", line 52, in __getitem__
return self._store[key.lower()][1]
~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'location'
Home Assistant Version
2024.5.3
Integration Version
1.0.0
What happened?
Monthly Efficiency and Daily Efficiency may be marked 'Unavailable' and a division by zero error logged when the car has not been driven during the day. This is generally notice when restarting Home Assistant before the vehicle has been used on the day.
To Reproduce
Expected behavior
Log Output
Mar 02 16:49:08 hass hass[57717]: self.async_update_listeners()
Mar 02 16:49:08 hass hass[57717]: File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 183, in async_update_listeners
Mar 02 16:49:08 hass hass[57717]: update_callback()
Mar 02 16:49:08 hass hass[57717]: File "/home/homeassistant/.homeassistant/custom_components/nissan_connect/sensor.py", line 235, in _handle_coordinator_update
Mar 02 16:49:08 hass hass[57717]: self._state = self._lambda(summary[0])
Mar 02 16:49:08 hass hass[57717]: ^^^^^^^^^^^^^^^^^^^^^^^^
Mar 02 16:49:08 hass hass[57717]: File "/home/homeassistant/.homeassistant/custom_components/nissan_connect/sensor.py", line 48, in <lambda>
Mar 02 16:49:08 hass hass[57717]: StatisticSensor(coordinator_stats, data[vehicle], 'daily', lambda x: x.total_distance / x.consumed_electricity, 'daily_efficiency', 'mdi:ev-station', SensorDeviceClass.DISTANCE, UnitOfLength.KILOMETERS, 2, imperial_distance),
Mar 02 16:49:08 hass hass[57717]: ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Mar 02 16:49:08 hass hass[57717]: ZeroDivisionError: float division by zero
Home Assistant Version
2024.2.5 in python 3.12 venv on Ubuntu VM on Xen Orchestra
Integration Version
0.4.2
Additional context
Vehicle is Nissan Ariya
What happened?
Not Really a bug. The documentation needs correction.
Installation instructions under HACS says "Search for and install the Ohme addon from HACS"
It should say "Search for and install the Nissan Connect addon from HACS"
To Reproduce
N/A
Expected behavior
N/A
Log Output
N/A
Home Assistant Version
N/A
Integration Version
N/A
Additional context
N/A
Firstly, just wanted to say thanks for making this an integration! I've been using the Node-Red hack method of getting the information into HA for months, so having this is much easier :-)
However, one thing i'm missing from the Node-Red method is the current range of the car (Nissan Ariya). I can see that there are two entities exposed by this integration (Range AC off and Range AC on), but they don't seem to update, just show as unknown.
Are these two range entities available for the Ariya? If not, is it possible to expose the range?
What happened?
On reflection, I think I might be resurrecting issue #3 which petered out. Here goes...
Using Nissan Ariya EV. The following 5 sensors are always in the Unknown state:
I don't know whether this is relevant, but the debug log reports Unknown feature 308 & Unknown feature 420. No warnings or errors thrown in logs.
To Reproduce
Always happens in my configuration
Expected behavior
If possible, the five sensors are populated with the appropriate information. The NissanConnect App does show [last updated] and [estimated range] (although it doesn't say whether this is A/C on or off.
If definitely not available from the API I would like to know so I can disable them.
Note that I see most of these sensors are interesting, but not essential, except that 'Last Updated' would be useful.
Log Output
2024-02-14 07:57:10.638 INFO (MainThread) [custom_components.nissan_connect] Logging in to service
2024-02-14 07:57:12.010 DEBUG (MainThread) [custom_components.nissan_connect] Finding vehicles
2024-02-14 07:57:12.994 DEBUG (SyncWorker_6) [custom_components.nissan_connect.kamereon] Unknown feature 308
2024-02-14 07:57:12.995 DEBUG (SyncWorker_6) [custom_components.nissan_connect.kamereon] Unknown feature 420
2024-02-14 07:57:12.995 DEBUG (SyncWorker_6) [custom_components.nissan_connect.kamereon] Active features:
[<Feature.BREAKDOWN_ASSISTANCE_CALL: '1'>,
<Feature.MY_CAR_FINDER: '12'>,
<Feature.MIL_ON_NOTIFICATION: '15'>,
<Feature.VEHICLE_HEALTH_REPORT: '18'>,
<Feature.APP_DOOR_LOCKING: '27'>,
<Feature.APP_BASED_NAVIGATION: '35'>,
<Feature.DESTINATION_SEND_TO_CAR: '37'>,
<Feature.GOOGLE_PLACES_SEARCH: '40'>,
<Feature.PREMIUM_TRAFFIC: '43'>,
<Feature.MOBILE_INFORMATION: '74'>,
<Feature.PERSONAL_DATA_SYNC: '80'>,
<Feature.HORN_AND_LIGHTS: '97'>,
<Feature.CURFEW_ALERT: '98'>,
<Feature.MAINTENANCE_ALERT: '101'>,
<Feature.VEHICLE_SOFTWARE_UPDATES: '107'>,
<Feature.VEHICLE_STATUS_CHECK: '202'>,
<Feature.NAVIGATION_FACTORY_RESET: '208'>,
<Feature.VEHICLE_WIFI: '213'>,
<Feature.ADVANCED_VEHICLE_DIAGNOSTICS: '215'>,
<Feature.NAVIGATION_MAP_UPDATES: '217'>,
<Feature.LAST_MILE_NAVIGATION: '227'>,
<Feature.GOOGLE_STREET_VIEW: '229'>,
<Feature.GOOGLE_SATELITE_VIEW: '230'>,
<Feature.DYNAMIC_EV_ICE_RANGE: '232'>,
<Feature.ECO_ROUTE_CALCULATION: '233'>,
<Feature.DRIVING_JOURNEY_HISTORY: '235'>,
<Feature.ONLINE_PARKING_INFO: '243'>,
<Feature.ONLINE_RESTAURANT_INFO: '244'>,
<Feature.ONLINE_SPEED_RESTRICTION_INFO: '245'>,
<Feature.WEATHER_INFO: '246'>,
<Feature.VEHICLE_ACCESS_TO_EMAIL: '248'>,
<Feature.VEHICLE_ACCESS_TO_MUSIC: '249'>,
<Feature.VEHICLE_ACCESS_TO_CONTACTS: '262'>,
<Feature.ZONE_ALERT: '281'>,
<Feature.SPEEDING_ALERT: '282'>,
<Feature.CHARGING_SPOT_INFO: '288'>,
<Feature.CHARGING_START: '299'>,
<Feature.CLIMATE_ON_OFF_NOTIFICATION: '311'>,
<Feature.CHARGING_SPOT_SEARCH: '312'>,
<Feature.PLUG_IN_REMINDER: '314'>,
<Feature.CHARGING_STOP_NOTIFICATION: '317'>,
<Feature.BATTERY_STATUS: '319'>,
<Feature.VEHICLE_STATE_OF_CHARGE_PERCENT: '322'>,
<Feature.DRIVING_ANALYSIS: '340'>,
<Feature.CO2_GAS_SAVINGS: '341'>,
<Feature.ELECTRICITY_FEE_CALCULATION: '342'>,
<Feature.CHARGING_CONSUMPTION_HISTORY: '344'>,
<Feature.BATTERY_MONITORING: '345'>,
<Feature.BATTERY_DATA: '347'>,
<Feature.CHARGING_SPOT_UPDATES: '354'>,
<Feature.RECHARGEABLE_AREA: '358'>,
<Feature.NO_CHARGING_SPOT_INFO: '359'>,
<Feature.EV_RANGE: '360'>,
<Feature.CLIMATE_ON_OFF: '366'>,
<Feature.VIRTUAL_PERSONAL_ASSISTANT: '734'>,
<Feature.ALEXA_ONBOARD_ASSISTANT: '736'>,
<Feature.SCHEDULED_ROUTE_CLIMATE_CONTROL: '747'>,
<Feature.SCHEDULED_ROUTE_CALENDAR_INTERGRATION: '819'>,
<Feature.OWNER_MANUAL: '827'>,
<Feature.LOCK_STATUS_CHECK: '2021'>,
<Feature.TEMPERATURE: '2042'>,
<Feature.VEHICLE_DATA: '2121'>,
<Feature.VEHICLE_DATA_2: '2122'>]
2024-02-14 07:57:16.232 DEBUG (MainThread) [custom_components.nissan_connect] Initialising entities
2024-02-14 07:57:18.253 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Changing next update interval to 60 minutes
2024-02-14 07:57:18.253 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 2.022 seconds (success: True)
2024-02-14 07:57:18.254 DEBUG (MainThread) [custom_components.nissan_connect.sensor] Updating odometer state
2024-02-14 07:57:18.545 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Statistics Coordinator data in 0.291 seconds (success: True)
2024-02-14 07:57:18.759 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Poll Coordinator data in 0.213 seconds (success: True)
2024-02-14 07:57:20.844 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 2.085 seconds (success: True)
2024-02-14 08:07:23.126 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 3.137 seconds (success: True)
2024-02-14 08:17:24.242 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 1.252 seconds (success: True)
2024-02-14 08:27:25.921 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 1.931 seconds (success: True)
2024-02-14 08:37:28.259 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 2.270 seconds (success: True)
2024-02-14 08:47:30.203 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 2.214 seconds (success: True)
2024-02-14 08:57:18.460 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Poll Coordinator data in 0.431 seconds (success: True)
2024-02-14 08:57:20.081 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 1.620 seconds (success: True)
2024-02-14 08:57:20.222 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Statistics Coordinator data in 2.155 seconds (success: True)
2024-02-14 09:07:22.538 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 2.549 seconds (success: True)
2024-02-14 09:17:23.344 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 1.354 seconds (success: True)
2024-02-14 09:27:25.489 DEBUG (MainThread) [custom_components.nissan_connect.coordinator] Finished fetching Update Coordinator data in 2.500 seconds (success: True)
Home Assistant Version
Home Assistant Core 2024.2.1 running on Ubuntu VM in Python 3.12 venv
Integration Version
v0.4.1
Additional context
Installed for the first time a couple of days ago; sensors seem to have always been a Unknown since first installation.
Many thanks for developing this integration; much better than having to blend the limited leaf2mqtt data with parsed Android notifications!
Happy to explore returned API data and/or test other end points if you tell me how :))
Could you add this translation to the repository
Happy to help
nl.json
I'm really excited to have found this integration that works well with my UK 2020 Nissan Leaf N-Connecta.
It would be great to collaborate with others on HA dashboard design that goes beyond displaying values exposed by the integration by combining them with other entities and features in HA.
Here are my initial thoughts on what would be useful:
Suggestions could then be published as a recipes file in the repo or a wiki.
What happened?
I meant to post this a couple of weeks ago when it happened. I had drafted a bug report but obviously did not press submit!
Basically the 12v battery was flat
To Reproduce
Leave the car plugged in for 48 hours
Expected behavior
Not to have a flat battery
Log Output
Home Assistant Version
2024.3
Integration Version
0.42
Additional context
Basically you are checking for car being plugged in rather than charging to set the increased charging polling frequency.
When the car is plugged in and NOT charging it will drain the battery with increased polling.
With the EU/UK Ariya - I only get "Charging" and "Plugged In" as the only 2 entities.
Should there be more?
I really just want battery % ideally at minimum.
A bonus would be Climate, Temp and Tracker.
I have the latest stable version of HA and previously this year (or maybe the end of the last?) I had a working installation of this NissanConnect component by uploading the individual files.
Later I experienced something was broken and - details are unclear - after a while I reinstalled the component. When reconfiguring, it gave me the error: "Access is denied for this resource"
I believe the error came at about the same time as my personal phone needed an update of the NissanConnect Services app, but my personal Android is too old and no longer supported. A friend's iPhone runs the app however, where login and Car connection works.
Either way, I shook my head and waited a couple of months, to see if it magically solved itself. But here I am now, experiencing the same issue. App login works and has been re-tested before this post.
HA component login validation works, so I am using the correct credentials. I verify this by noting that the component refuses to set up if I supply an incorrect password.
With a successful login, and the component gives me a success message, it goes on to setting up. In this phase, I am informed about an error "Failed to set up" and I am informed I should check the logs.
Starting debug logs, I get the following:
2024-06-16 08:42:31.861 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nissan_connect 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
2024-06-16 08:54:53.356 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
2024-06-16 08:55:04.402 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
2024-06-16 08:55:42.964 INFO (MainThread) [custom_components.nissan_connect] Logging in to service
2024-06-16 08:55:43.535 DEBUG (MainThread) [custom_components.nissan_connect] Finding vehicles
2024-06-16 08:55:44.531 DEBUG (SyncWorker_29) [custom_components.nissan_connect.kamereon] Active features: [<Feature.MY_CAR_FINDER: '12'>, <Feature.MIL_ON_NOTIFICATION: '15'>, <Feature.VEHICLE_HEALTH_REPORT: '18'>, <Feature.APP_DOOR_LOCKING: '27'>, <Feature.FLEET_ASSET_INFORMATION: '29'>, <Feature.PAY_AS_YOU_DRIVE: '34'>, <Feature.APP_BASED_NAVIGATION: '35'>, <Feature.DESTINATION_SEND_TO_CAR: '37'>, <Feature.GOOGLE_PLACES_SEARCH: '40'>, <Feature.PREMIUM_TRAFFIC: '43'>, <Feature.THEFT_BURGLAR_NOTIFICATION_APP: '87'>, <Feature.HORN_AND_LIGHTS: '97'>, <Feature.CURFEW_ALERT: '98'>, <Feature.NAVIGATION_MAP_UPDATES: '217'>, <Feature.LAST_MILE_NAVIGATION: '227'>, <Feature.GOOGLE_STREET_VIEW: '229'>, <Feature.GOOGLE_SATELITE_VIEW: '230'>, <Feature.DRIVING_JOURNEY_HISTORY: '235'>, <Feature.ONLINE_PARKING_INFO: '243'>, <Feature.ONLINE_RESTAURANT_INFO: '244'>, <Feature.ONLINE_SPEED_RESTRICTION_INFO: '245'>, <Feature.WEATHER_INFO: '246'>, <Feature.ZONE_ALERT: '281'>, <Feature.SPEEDING_ALERT: '282'>, <Feature.CHARGING_START: '299'>, <Feature.CLIMATE_ON_OFF_NOTIFICATION: '311'>, <Feature.PLUG_IN_REMINDER: '314'>, <Feature.CHARGING_STOP_NOTIFICATION: '317'>, <Feature.BATTERY_STATUS: '319'>, <Feature.BATTERY_HEATING_NOTIFICATION: '320'>, <Feature.VEHICLE_STATE_OF_CHARGE_PERCENT: '322'>, <Feature.DRIVING_ANALYSIS: '340'>, <Feature.CO2_GAS_SAVINGS: '341'>, <Feature.ELECTRICITY_FEE_CALCULATION: '342'>, <Feature.CHARGING_CONSUMPTION_HISTORY: '344'>, <Feature.CHARGING_SPOT_UPDATES: '354'>, <Feature.CLIMATE_ON_OFF: '366'>, <Feature.LOCK_STATUS_CHECK: '2021'>, <Feature.TEMPERATURE: '2042'>]
2024-06-16 08:55:45.062 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
2024-06-16 08:57:38.721 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
2024-06-16 09:00:09.518 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
2024-06-16 10:54:01.129 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
2024-06-16 10:55:14.541 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
2024-06-16 10:55:22.140 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
2024-06-16 10:55:24.478 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
2024-06-16 10:55:58.614 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
2024-06-16 10:56:03.748 INFO (MainThread) [custom_components.nissan_connect] Logging in to service
2024-06-16 10:56:04.327 DEBUG (MainThread) [custom_components.nissan_connect] Finding vehicles
2024-06-16 10:56:05.283 DEBUG (SyncWorker_41) [custom_components.nissan_connect.kamereon] Active features: [<Feature.MY_CAR_FINDER: '12'>, <Feature.MIL_ON_NOTIFICATION: '15'>, <Feature.VEHICLE_HEALTH_REPORT: '18'>, <Feature.APP_DOOR_LOCKING: '27'>, <Feature.FLEET_ASSET_INFORMATION: '29'>, <Feature.PAY_AS_YOU_DRIVE: '34'>, <Feature.APP_BASED_NAVIGATION: '35'>, <Feature.DESTINATION_SEND_TO_CAR: '37'>, <Feature.GOOGLE_PLACES_SEARCH: '40'>, <Feature.PREMIUM_TRAFFIC: '43'>, <Feature.THEFT_BURGLAR_NOTIFICATION_APP: '87'>, <Feature.HORN_AND_LIGHTS: '97'>, <Feature.CURFEW_ALERT: '98'>, <Feature.NAVIGATION_MAP_UPDATES: '217'>, <Feature.LAST_MILE_NAVIGATION: '227'>, <Feature.GOOGLE_STREET_VIEW: '229'>, <Feature.GOOGLE_SATELITE_VIEW: '230'>, <Feature.DRIVING_JOURNEY_HISTORY: '235'>, <Feature.ONLINE_PARKING_INFO: '243'>, <Feature.ONLINE_RESTAURANT_INFO: '244'>, <Feature.ONLINE_SPEED_RESTRICTION_INFO: '245'>, <Feature.WEATHER_INFO: '246'>, <Feature.ZONE_ALERT: '281'>, <Feature.SPEEDING_ALERT: '282'>, <Feature.CHARGING_START: '299'>, <Feature.CLIMATE_ON_OFF_NOTIFICATION: '311'>, <Feature.PLUG_IN_REMINDER: '314'>, <Feature.CHARGING_STOP_NOTIFICATION: '317'>, <Feature.BATTERY_STATUS: '319'>, <Feature.BATTERY_HEATING_NOTIFICATION: '320'>, <Feature.VEHICLE_STATE_OF_CHARGE_PERCENT: '322'>, <Feature.DRIVING_ANALYSIS: '340'>, <Feature.CO2_GAS_SAVINGS: '341'>, <Feature.ELECTRICITY_FEE_CALCULATION: '342'>, <Feature.CHARGING_CONSUMPTION_HISTORY: '344'>, <Feature.CHARGING_SPOT_UPDATES: '354'>, <Feature.CLIMATE_ON_OFF: '366'>, <Feature.LOCK_STATUS_CHECK: '2021'>, <Feature.TEMPERATURE: '2042'>]
2024-06-16 10:56:05.845 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NissanConnect Account for nissan_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/init.py", line 54, in async_setup_entry
await hass.async_add_executor_job(vehicle.refresh)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nissan_connect/kamereon.py", line 863, in refresh
self.fetch_all()
File "/config/custom_components/nissan_connect/kamereon.py", line 866, in fetch_all
self.fetch_cockpit()
File "/config/custom_components/nissan_connect/kamereon.py", line 1327, in fetch_cockpit
raise ValueError(body['errors'])
ValueError: [{'status': 'Forbidden', 'code': '403', 'title': 'security.access', 'detail': 'Access is denied for this resource'}]
Home Assistant Version
Home Assistant
Core 2024.6.3
Supervisor 2024.06.0
Operating System 12.3
Frontend 20240610.1
Integration Version
Zip download today. Release was made 3 days ago at time of writing:
@dan-r dan-r
v0.5.2
a09d16b
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.