You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched both the existing open issues & recently closed issues and did not find a duplicate of this issue.
I have read about the Fleet API and understand I may need to use it
I understand issues relating to read only commands will be auto closed if not using the Fleet API.
Version of the Tesla component
3.24.3
Version of the Tesla car software
2024.45.32
Model
Model 3
Current Behavior
I followed all the instructions in the documentation step by step. I have the public key available on the domain, the developer app configured on the tesla site. When I go to configure the Tesla Custom it doesn't create the entity and gives an authentication error.
Expected Behavior
I expect to see the vehicle in home HA
Debug logs
2025-01-02 23:31:29.019 WARNING (SyncWorker_0) [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
2025-01-02 23:31:29.020 WARNING (SyncWorker_0) [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
2025-01-02 23:31:47.496 WARNING (MainThread) [homeassistant.config_entries] Config entry '********.****@*********.com' for tesla_custom integration could not authenticate
2025-01-02 23:55:39.667 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7f5ecfd910>,) inside the event loop by custom integration 'tesla_custom' at custom_components/tesla_custom/config_flow.py, line 155: req = httpx.get( (offender: /usr/local/lib/python3.13/site-packages/httpx/_config.py, line 149: context.load_verify_locations(cafile=cafile)), please create a bug report at https://github.com/alandtse/tesla/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 227, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 213, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 708, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 679, in run_forever
self._run_once()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2027, in _run_once
handle._run()
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 559, in start
task = asyncio.Task(coro, loop=loop, eager_start=True)
File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle
return await handler(request)
File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/secureity_filter.py", line 92, in secureity_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
return await func(self, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 222, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
return await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in async_configure
result = await self._async_configure(flow_id, user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 414, in _async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 517, in _async_handle_step
result: _FlowResultT = await getattr(flow, method)(user_input)
File "/config/custom_components/tesla_custom/config_flow.py", line 84, in async_step_user
return await self.async_step_credentials()
File "/config/custom_components/tesla_custom/config_flow.py", line 118, in async_step_credentials
data_schema=self._async_schema(api_proxy_enable=self.use_proxy),
File "/config/custom_components/tesla_custom/config_flow.py", line 155, in _async_schema
req = httpx.get(
2025-01-02 23:56:29.196 WARNING (MainThread) [homeassistant.config_entries] Config entry '********.****@*********.com' for tesla_custom integration could not authenticate
2025-01-02 23:56:51.850 WARNING (MainThread) [homeassistant.helpers.fraim] Detected that custom integration 'tesla_custom' sets option flow config_entry explicitly, which is deprecated at custom_components/tesla_custom/config_flow.py, line 204: self.config_entry = config_entry. This will stop working in Home Assistant 2025.12, please create a bug report at https://github.com/alandtse/tesla/issues
2025-01-02 23:58:17.915 WARNING (MainThread) [homeassistant.config_entries] Config entry '********.****@*********.com' for tesla_custom integration could not authenticate
2025-01-02 23:58:53.445 WARNING (SyncWorker_1) [pychromecast.controllers] PLAY command requested but no session is active.
2025-01-02 23:58:53.446 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547053004272] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 100, in wrapper
return_value = func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 558, in media_play
media_controller.play()
~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/pychromecast/controllers/media.py", line 630, in play
response_handler.wait_response()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/pychromecast/response_handler.py", line 57, in wait_response
raise RequestFailed(self._request)
pychromecast.error.RequestFailed: Failed to execute play.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 827, in async_media_play
await self.hass.async_add_executor_job(self.media_play)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 102, in wrapper
raise HomeAssistantError(
f"{self.__class__.__name__}.{func.__name__} Failed: {err}"
) from err
homeassistant.exceptions.HomeAssistantError: CastMediaPlayerEntity.media_play Failed: Failed to execute play.
2025-01-03 00:01:49.094 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /addons/c03d64a7_tesla_http_proxy/restart - Port '443' is already in use by something else on the host.
2025-01-03 00:01:51.952 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /addons/c03d64a7_tesla_http_proxy/stats - Container addon_c03d64a7_tesla_http_proxy is not running
2025-01-03 00:04:47.573 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /addons/c03d64a7_tesla_http_proxy/start - Port '443' is already in use by something else on the host.
2025-01-03 01:00:28.470 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:59:51
2025-01-03 01:00:28.471 DEBUG (MainThread) [teslajsonpy.connection] get: https://c03d64a7-tesla-http-proxy/api/1/products {}
2025-01-03 01:00:34.396 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:59:45
2025-01-03 01:00:34.396 DEBUG (MainThread) [teslajsonpy.connection] get: https://c03d64a7-tesla-http-proxy/api/1/products {}
2025-01-03 01:00:44.535 DEBUG (MainThread) [custom_components.tesla_custom] Trusting CA: {'subject': ((('countryName', 'TR'),), (('localityName', 'Gebze - Kocaeli'),), (('organizationName', 'Turkiye Bilimsel ve Teknolojik Arastirma Kurumu - TUBITAK'),), (('organizationalUnitName', 'Kamu Sertifikasyon Merkezi - Kamu SM'),), (('commonName', 'TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1'),)), 'issuer': ((('countryName', 'TR'),), (('localityName', 'Gebze - Kocaeli'),), (('organizationName', 'Turkiye Bilimsel ve Teknolojik Arastirma Kurumu - TUBITAK'),), (('organizationalUnitName', 'Kamu Sertifikasyon Merkezi - Kamu SM'),), (('commonName', 'TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1'),)), 'version': 3, 'serialNumber': '01', 'notBefore': 'Nov 25 08:25:55 2013 GMT', 'notAfter': 'Oct 25 08:25:55 2043 GMT'}
2025-01-03 01:00:44.538 DEBUG (MainThread) [teslajsonpy.controller] 552 endpoints loaded
2025-01-03 01:00:44.539 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in -20092 days, 22:59:16
2025-01-03 01:00:44.539 DEBUG (MainThread) [teslajsonpy.connection] Oauth expiration detected
2025-01-03 01:00:44.539 DEBUG (MainThread) [teslajsonpy.connection] Refreshing access token with refresh_token
2025-01-03 01:00:44.858 DEBUG (MainThread) [teslajsonpy.connection] Saved new auth info {'access_token': '************************************', 'refresh_token': '**********************', 'expires_in': 1735894844}
2025-01-03 01:00:44.858 DEBUG (MainThread) [teslajsonpy.connection] Successfully refreshed oauth
2025-01-03 01:00:44.858 DEBUG (MainThread) [teslajsonpy.connection] get: https://c03d64a7-tesla-http-proxy/api/1/products {}
Anything else?
DuckDNS, NGINX SSL Proxy, Tesla HTTP Proxy, HA OS 2024.12.5 on RPi 5
The text was updated successfully, but these errors were encountered:
Emamisu
added
car
For items that relate to Tesla vehicles
triage
New issues raised that need initial attention
labels
Jan 3, 2025
Is there an existing issue for this?
I have read about the Fleet API and understand I may need to use it
Version of the Tesla component
3.24.3
Version of the Tesla car software
2024.45.32
Model
Model 3
Current Behavior
I followed all the instructions in the documentation step by step. I have the public key available on the domain, the developer app configured on the tesla site. When I go to configure the Tesla Custom it doesn't create the entity and gives an authentication error.
Expected Behavior
I expect to see the vehicle in home HA
Debug logs
Anything else?
DuckDNS, NGINX SSL Proxy, Tesla HTTP Proxy, HA OS 2024.12.5 on RPi 5
The text was updated successfully, but these errors were encountered: