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
All vehicle controls are working except some of the Climate controls, such as defrost. I am able to turn on Climate. Below are the errors in logs when attempting to defrost. Any ideas?
Executing set_preconditioning_max on
set_preconditioning_max bad request
Failed to perform the action climate/set_preset_mode. unknown error
2025-02-09T10:32:55-05:00 [info ] Received GET request for /api/1/products
2025-02-09T10:32:55-05:00 [debug] Forwarding request to https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/products
2025-02-09T10:33:49-05:00 [info ] Received GET request for /api/1/vehicles/[my_vehicle]/vehicle_data
2025-02-09T10:33:49-05:00 [debug] Forwarding request to https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/[my_vehicle]/vehicle_data?endpoints=charge_state%3Bclimate_state%3Bdrive_state%3Bgui_settings%3Bvehicle_config%3Bvehicle_state%3Blocation_data
2025-02-09T10:33:56-05:00 [info ] Received GET request for /api/1/products
2025-02-09T10:33:56-05:00 [debug] Forwarding request to https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/products
2025-02-09T10:34:47-05:00 [info ] Received POST request for /api/1/vehicles/[my_vehicle]/command/auto_conditioning_stop
2025-02-09T10:34:47-05:00 [debug] Executing auto_conditioning_stop on [my_vehicle]
2025-02-09T10:34:47-05:00 [info ] Starting dispatcher service...
2025-02-09T10:34:47-05:00 [info ] Session for DOMAIN_INFOTAINMENT loaded from cache
2025-02-09T10:34:47-05:00 [info ] Session for DOMAIN_VEHICLE_SECURITY loaded from cache
2025-02-09T10:34:47-05:00 [debug] Sending request to https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/[my_vehicle]/signed_command: {"routable_message":"MgIIAzoSEhCJMeIZYCoenS5xptazCXhAmgMQqYta6Xn5TqrCO5k4XCQ4q1IEEgJSAGqCAQpDCkEEonr7hrbL3NcgcfKfvzjrhMpqmCX47zisgUwRj7TLs1t8YTGEyrpyCqW7rpHFGsDuxVWzuwns/NjdXjwnKAqok0I7ChAl5SNdvOn664A67gVzgTgjEAgd4gwCACIgVYVqlWSteeIBimWxVIAJVW1zpAWiaKXhTuIBv3A+6Bg="}
2025-02-09T10:34:47-05:00 [debug] Server returned 200: OK: {"response":"MhISEIkx4hlgKh6dLnGm1rMJeEA6AggDYgQIAhARkgMQqYta6Xn5TqrCO5k4XCQ4q3peCAcSQQSyCjMZV48Ux+liuPEj15axAjdlD6TKO3L1U8k8yv3GYxXjNNcyGlRTroZB0WuWA2+Ljfbczhe23fTSgnD7WDtuGhAl5SNdvOn664A67gVzgTgjJeMMAgAwB2okMiIKIDDpBcWlxrvOpeLLEnjhB37+9Mb1MSAkTqh7UpCYmPAF"}
2025-02-09T10:34:47-05:00 [info ] [a98b5ae979f94eaac23b99385c2438ab] Updated session info for DOMAIN_INFOTAINMENT
2025-02-09T10:34:48-05:00 [debug] Sending request to https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/[my_vehicle]/signed_command: {"routable_message":"MgIIAzoSEhCJMeIZYCoenS5xptazCXhAmgMQ9pdkISMFvkFZEKmaUzSAOlIEEgJSAGqCAQpDCkEEonr7hrbL3NcgcfKfvzjrhMpqmCX47zisgUwRj7TLs1t8YTGEyrpyCqW7rpHFGsDuxVWzuwns/NjdXjwnKAqok0I7ChAl5SNdvOn664A67gVzgTgjEAkd7AwCACIgtv7R83b7ZcBbN+sCcXqAtFMmtvgPWD8wcJRtCQwNccQ="}
2025-02-09T10:34:48-05:00 [debug] Server returned 200: OK: {"response":"MhISEIkx4hlgKh6dLnGm1rMJeEA6AggDYgCSAxD2l2QhIwW+QVkQqZpTNIA6mgMQRF5Gb+afQiJ6Ej7m26mka1ICCgA="}
2025-02-09T10:34:53-05:00 [info ] Received POST request for /api/1/vehicles/[my_vehicle]/command/set_preconditioning_max
2025-02-09T10:34:53-05:00 [debug] Executing set_preconditioning_max on [my_vehicle]
2025-02-09T10:34:53-05:00 [error] Returning error Bad Request
2025-02-09T10:34:54-05:00 [info ] Received POST request for /api/1/vehicles/[my_vehicle]/command/set_preconditioning_max
2025-02-09T10:34:54-05:00 [debug] Executing set_preconditioning_max on [my_vehicle]
2025-02-09T10:34:54-05:00 [error] Returning error Bad Request
2025-02-09T10:34:56-05:00 [info ] Received GET request for /api/1/products
Tesla Defrost: Error executing script. Unexpected error for device at pos 1:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 779, in _async_device_step
await device_action.async_call_action_from_config(
self._hass, self._action, self._variables, self._context
)
File "/usr/src/homeassistant/homeassistant/components/device_automation/action.py", line 72, in async_call_action_from_config
await platform.async_call_action_from_config(hass, config, variables, context)
File "/usr/src/homeassistant/homeassistant/components/climate/device_action.py", line 97, in async_call_action_from_config
await hass.services.async_call(
DOMAIN, service, service_data, blocking=True, context=context
)
File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2837, 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/climate/__init__.py", line 726, in async_handle_set_preset_mode_service
await self.async_set_preset_mode(preset_mode)
File "/config/custom_components/tesla_custom/climate.py", line 151, in async_set_preset_mode
await self._car.set_max_defrost(2)
File "/usr/local/lib/python3.13/site-packages/teslajsonpy/car.py", line 1119, in set_max_defrost
data = await self._send_command(
^^^^^^^^^^^^^^^^^^^^^^^^^
"MAX_DEFROST", on=state, wake_if_asleep=wake_if_asleep
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/teslajsonpy/car.py", line 785, in _send_command
raise ex
File "/usr/local/lib/python3.13/site-packages/teslajsonpy/car.py", line 770, in _send_command
data = await self._controller.api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
name, path_vars=path_vars, wake_if_asleep=wake_if_asleep, **kwargs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/teslajsonpy/controller.py", line 1373, in api
response = await self.__post_with_retries(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"", method=method, data=kwargs, url=uri
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/tenacity/asyncio/__init__.py", line 189, in async_wrapped
return await copy(fn, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tenacity/asyncio/__init__.py", line 111, in __call__
do = await self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
result = await action(retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
File "/usr/local/lib/python3.13/site-packages/tenacity/__init__.py", line 418, in exc_check
raise retry_exc.reraise()
~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/tenacity/__init__.py", line 185, in reraise
raise self.last_attempt.result()
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/local/lib/python3.13/site-packages/tenacity/asyncio/__init__.py", line 114, in __call__
result = await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/teslajsonpy/controller.py", line 1396, in __post_with_retries
return await self.__connection.post(command, method=method, data=data, url=url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/teslajsonpy/connection.py", line 166, in post
return await self.__open(url, method=method, headers=self.head, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/teslajsonpy/connection.py", line 223, in __open
raise TeslaException(resp.status_code)
teslajsonpy.exceptions.TeslaException
The text was updated successfully, but these errors were encountered:
All vehicle controls are working except some of the Climate controls, such as defrost. I am able to turn on Climate. Below are the errors in logs when attempting to defrost. Any ideas?
Executing set_preconditioning_max on
set_preconditioning_max bad request
Failed to perform the action climate/set_preset_mode. unknown error
The text was updated successfully, but these errors were encountered: