Closed Lockie85 closed 3 months ago
v3.20.4
2024.8.4
Model Y
Unable to authenticate
Utilising https://github.com/sebmatton/TeslaApiTokenGenerator to gain my API token I am expecting to be able to use this token and my e-mail address to authenticate.
2024-03-18 10:55:31.144 INFO (MainThread) [homeassistant.setup] Setting up tesla_wall_connector 2024-03-18 10:55:31.144 INFO (MainThread) [homeassistant.setup] Setup of domain tesla_wall_connector took 0.0 seconds 2024-03-18 10:55:33.500 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Tesla doors unlocked' failed to setup triggers and has been disabled: Unknown device '7b666cd2dff4621121b254901992d80e' 2024-03-18 10:55:34.207 INFO (MainThread) [backoff] Backing off async_request(...) for 0.6s (tesla_wall_connector.exceptions.WallConnectorConnectionTimeoutError: Timeout while connecting to Wall Connector at 192.168.50.30) 2024-03-18 10:55:35.587 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up tesla_wall_connector.binary_sensor 2024-03-18 10:55:35.590 INFO (MainThread) [homeassistant.components.sensor] Setting up tesla_wall_connector.sensor 2024-03-18 10:55:40.304 INFO (MainThread) [homeassistant.components.automation.lauren_close_to_home] Initialized trigger Tesla Close To Home 2024-03-18 10:55:40.304 INFO (MainThread) [homeassistant.components.automation.tesla_peak_charging] Initialized trigger Tesla Peak Charging 2024-03-18 10:55:40.305 INFO (MainThread) [homeassistant.components.automation.tesla_arrival_time] Initialized trigger Tesla Arrival Time 2024-03-18 10:55:40.305 INFO (MainThread) [homeassistant.components.automation.tesla_update] Initialized trigger Tesla Update 2024-03-18 11:21:19.856 INFO (MainThread) [custom_components.hacs] <Integration alandtse/tesla> Running pre installation steps 2024-03-18 11:21:19.856 INFO (MainThread) [custom_components.hacs] <Integration alandtse/tesla> Pre installation steps completed 2024-03-18 11:21:19.856 INFO (MainThread) [custom_components.hacs] <Integration alandtse/tesla> Running installation steps 2024-03-18 11:21:21.989 INFO (MainThread) [custom_components.hacs] <Integration alandtse/tesla> Download of tesla_custom.zip completed 2024-03-18 11:21:21.992 INFO (MainThread) [custom_components.hacs] <Integration alandtse/tesla> Installation steps completed 2024-03-18 11:21:21.992 INFO (MainThread) [custom_components.hacs] <Integration alandtse/tesla> Running post installation steps 2024-03-18 11:21:22.014 INFO (SyncWorker_28) [homeassistant.loader] Loaded tesla_custom from custom_components.tesla_custom 2024-03-18 11:21:22.014 WARNING (SyncWorker_28) [homeassistant.loader] We found a custom integration tesla_custom 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-03-18 11:21:22.016 INFO (MainThread) [custom_components.hacs] <Integration alandtse/tesla> Post installation steps completed 2024-03-18 11:38:38.172 INFO (MainThread) [homeassistant.setup] Setting up tesla_custom 2024-03-18 11:38:38.172 INFO (MainThread) [homeassistant.setup] Setup of domain tesla_custom took 0.0 seconds 2024-03-18 11:38:53.532 WARNING (MainThread) [homeassistant.config_entries] Config entry 'address@domain.com' for tesla_custom integration could not authenticate 2024-03-18 11:40:07.596 WARNING (MainThread) [homeassistant.config_entries] Config entry 'address@domain.com' for tesla_custom integration could not authenticate 2024-03-18 11:41:16.380 WARNING (MainThread) [homeassistant.config_entries] Config entry 'address@domain.com' for tesla_custom integration could not authenticate 2024-03-18 11:42:05.484 DEBUG (MainThread) [teslajsonpy.controller] 552 endpoints loaded 2024-03-18 11:42:05.485 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in -19801 days, 12:17:55 2024-03-18 11:42:05.485 DEBUG (MainThread) [teslajsonpy.connection] Oauth expiration detected 2024-03-18 11:42:05.485 DEBUG (MainThread) [teslajsonpy.connection] Refreshing access token with refresh_token 2024-03-18 11:42:05.849 DEBUG (MainThread) [teslajsonpy.connection] Unable to refresh sso oauth token 2024-03-18 11:42:05.849 DEBUG (MainThread) [teslajsonpy.connection] Auth returned {'error': 'server_error', 'error_description': 'Internal server error', 'error_uri': 'https://auth.tesla.com/error/reference/277318ba-60d0-4cd6-b051-9a14b47fea2b-1710762125715'} 2024-03-18 11:42:07.279 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in -19801 days, 12:17:53 2024-03-18 11:42:07.279 DEBUG (MainThread) [teslajsonpy.connection] Oauth expiration detected 2024-03-18 11:42:07.279 DEBUG (MainThread) [teslajsonpy.connection] Refreshing access token with refresh_token 2024-03-18 11:42:08.176 DEBUG (MainThread) [teslajsonpy.connection] Unable to refresh sso oauth token 2024-03-18 11:42:08.176 DEBUG (MainThread) [teslajsonpy.connection] Auth returned {'error': 'server_error', 'error_description': 'Internal server error', 'error_uri': 'https://auth.tesla.com/error/reference/d3d571f0-3c30-4ae2-acbf-92962f5cd0bd-1710762127797'} 2024-03-18 11:42:11.173 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in -19801 days, 12:17:49 2024-03-18 11:42:11.173 DEBUG (MainThread) [teslajsonpy.connection] Oauth expiration detected 2024-03-18 11:42:11.173 DEBUG (MainThread) [teslajsonpy.connection] Refreshing access token with refresh_token 2024-03-18 11:42:11.522 DEBUG (MainThread) [teslajsonpy.connection] Unable to refresh sso oauth token 2024-03-18 11:42:11.522 DEBUG (MainThread) [teslajsonpy.connection] Auth returned {'error': 'server_error', 'error_description': 'Internal server error', 'error_uri': 'https://auth.tesla.com/error/reference/85d95037-092a-42eb-852d-3638fe2be897-1710762131416'} 2024-03-18 11:42:16.331 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in -19801 days, 12:17:44 2024-03-18 11:42:16.332 DEBUG (MainThread) [teslajsonpy.connection] Oauth expiration detected 2024-03-18 11:42:16.332 DEBUG (MainThread) [teslajsonpy.connection] Refreshing access token with refresh_token 2024-03-18 11:42:16.608 DEBUG (MainThread) [teslajsonpy.connection] Unable to refresh sso oauth token 2024-03-18 11:42:16.608 DEBUG (MainThread) [teslajsonpy.connection] Auth returned {'error': 'server_error', 'error_description': 'Internal server error', 'error_uri': 'https://auth.tesla.com/error/reference/86bc1ef8-3ed8-4db9-a5ba-d7840dba9cad-1710762136508'} 2024-03-18 11:42:20.485 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in -19801 days, 12:17:40 2024-03-18 11:42:20.485 DEBUG (MainThread) [teslajsonpy.connection] Oauth expiration detected 2024-03-18 11:42:20.485 DEBUG (MainThread) [teslajsonpy.connection] Refreshing access token with refresh_token 2024-03-18 11:42:20.784 DEBUG (MainThread) [teslajsonpy.connection] Unable to refresh sso oauth token 2024-03-18 11:42:20.784 DEBUG (MainThread) [teslajsonpy.connection] Auth returned {'error': 'server_error', 'error_description': 'Internal server error', 'error_uri': 'https://auth.tesla.com/error/reference/f484a00b-57df-4a78-a827-f607c0ffa2c8-1710762140674'} 2024-03-18 11:42:20.784 WARNING (MainThread) [homeassistant.config_entries] Config entry 'address@domain.com' for tesla_custom integration could not authenticate
Worth noting that my account has both a Tesla Model Y car and a Powerwall 2 associated with it.
Looks like I miss used the python script and got the wrong token.
Is there an existing issue for this?
Version of the Tesla component
v3.20.4
Version of the Tesla car software
2024.8.4
Model
Model Y
Current Behavior
Unable to authenticate
Expected Behavior
Utilising https://github.com/sebmatton/TeslaApiTokenGenerator to gain my API token I am expecting to be able to use this token and my e-mail address to authenticate.
Debug logs
Anything else?
Worth noting that my account has both a Tesla Model Y car and a Powerwall 2 associated with it.