JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
967 stars 81 forks source link

Error -64306 tapo_control.save_preset #404

Closed mrUlrik closed 10 months ago

mrUlrik commented 10 months ago

Description

Receiving error code -64306 when attempting to save a preset.

Reproduction Steps

Create a new script in Home Assistant with the following contents:

alias: Save Camera Preset
sequence:
  - service: tapo_control.save_preset
    data:
      name: Back Door
    target:
      entity_id: camera.hallway_hd_stream
mode: single

Run the script and receive the following output:

Failed to call service script/save_camera_preset. Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306}

Expected behavior

Save the camera position with a preset titled "Back Door"

If applicable, add error logs.

2023-09-06 12:42:45.152 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:42:45.304 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:42:45.446 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:42:45.616 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:42:45.764 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:42:45.909 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:42:46.043 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:42:46.190 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:42:46.350 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:43:45.201 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:43:45.383 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:43:45.569 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:43:45.710 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:43:45.835 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:43:45.984 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:43:46.151 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:43:46.263 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:43:46.408 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:44:45.282 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:44:45.385 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:44:45.548 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:44:45.710 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:44:45.870 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:44:45.988 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:44:46.168 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:44:46.306 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:44:46.448 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:45:45.313 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:45:45.438 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:45:45.596 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:45:45.791 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:45:45.920 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:45:46.061 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:45:46.212 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:45:46.380 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:45:46.520 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:45:46.650 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:46:45.242 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:46:45.404 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:46:45.589 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:46:45.762 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:46:45.900 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:46:46.037 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:46:46.185 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:46:46.345 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:46:46.514 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:46:46.641 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:47:45.277 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:47:45.397 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:47:45.527 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:47:45.662 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:47:45.814 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:47:45.965 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:47:46.109 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:47:46.239 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:47:46.381 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:47:46.518 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:48:45.206 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:48:45.330 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:48:45.481 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:48:45.636 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:48:45.764 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:48:45.884 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:48:46.002 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:48:46.136 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:48:46.276 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:48:46.411 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:49:45.307 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:49:45.471 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:49:45.612 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:49:45.763 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:49:45.908 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:49:46.047 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:49:46.180 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:49:46.311 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:49:46.466 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:49:46.597 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:45.434 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:45.573 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:45.716 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:45.871 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:46.027 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:46.158 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:46.276 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:46.440 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:46.572 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:46.719 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:50:46.845 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:37.363 ERROR (MainThread) [homeassistant.components.script.save_camera_preset] Save Camera Preset: Error executing script. Unexpected error for call_service at pos 1: Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 703, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 665, in _async_run_long_action return long_task.result() ^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 828, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/tapo_control/camera.py", line 234, in save_preset await self.hass.async_add_executor_job(self._controller.savePreset, name) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 934, in savePreset self.executeFunction( File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 161, in executeFunction raise Exception( Exception: Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} 2023-09-06 12:51:37.389 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547553828928] Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 226, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 607, in _service_handler response = await self._async_start_run( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 566, in _async_start_run return await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 596, in _async_run return await self.script.async_run(script_vars, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1569, in async_run return await asyncio.shield(run.async_run()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step self._handle_exception( File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 493, in _handle_exception raise exception File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 703, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 665, in _async_run_long_action return long_task.result() ^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 828, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/tapo_control/camera.py", line 234, in save_preset await self.hass.async_add_executor_job(self._controller.savePreset, name) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 934, in savePreset self.executeFunction( File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 161, in executeFunction raise Exception( Exception: Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} 2023-09-06 12:51:45.288 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:45.431 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:45.602 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:45.761 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:45.892 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:46.052 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:46.208 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:46.352 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:46.515 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:46.682 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:51:46.843 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:52:48.909 ERROR (MainThread) [homeassistant.components.script.save_camera_preset] Save Camera Preset: Error executing script. Unexpected error for call_service at pos 1: Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 703, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 665, in _async_run_long_action return long_task.result() ^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 828, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/tapo_control/camera.py", line 234, in save_preset await self.hass.async_add_executor_job(self._controller.savePreset, name) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 934, in savePreset self.executeFunction( File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 161, in executeFunction raise Exception( Exception: Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} 2023-09-06 12:52:48.929 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547553828928] Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 226, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 607, in _service_handler response = await self._async_start_run( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 566, in _async_start_run return await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 596, in _async_run return await self.script.async_run(script_vars, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1569, in async_run return await asyncio.shield(run.async_run()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step self._handle_exception( File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 493, in _handle_exception raise exception File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 703, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 665, in _async_run_long_action return long_task.result() ^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 828, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/tapo_control/camera.py", line 234, in save_preset await self.hass.async_add_executor_job(self._controller.savePreset, name) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 934, in savePreset self.executeFunction( File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 161, in executeFunction raise Exception( Exception: Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} 2023-09-06 12:52:55.267 ERROR (MainThread) [homeassistant.components.script.save_camera_preset] Save Camera Preset: Error executing script. Unexpected error for call_service at pos 1: Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 703, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 665, in _async_run_long_action return long_task.result() ^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 828, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/tapo_control/camera.py", line 234, in save_preset await self.hass.async_add_executor_job(self._controller.savePreset, name) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 934, in savePreset self.executeFunction( File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 161, in executeFunction raise Exception( Exception: Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} 2023-09-06 12:52:55.292 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547553828928] Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 226, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 607, in _service_handler response = await self._async_start_run( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 566, in _async_start_run return await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 596, in _async_run return await self.script.async_run(script_vars, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1569, in async_run return await asyncio.shield(run.async_run()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step self._handle_exception( File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 493, in _handle_exception raise exception File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 703, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 665, in _async_run_long_action return long_task.result() ^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 828, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/tapo_control/camera.py", line 234, in save_preset await self.hass.async_add_executor_job(self._controller.savePreset, name) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 934, in savePreset self.executeFunction( File "/usr/local/lib/python3.11/site-packages/pytapo/init.py", line 161, in executeFunction raise Exception( Exception: Error: -64306, Response: {"method": "addMotorPostion", "result": {}, "error_code": -64306} 2023-09-06 12:53:08.285 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:53:08.436 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:53:08.603 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:53:08.793 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:53:08.928 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:53:09.064 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:53:09.229 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:53:09.369 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:53:09.506 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:53:09.669 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:03.961 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:04.118 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:04.253 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:04.365 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:04.522 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:04.648 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:04.792 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:04.953 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:05.112 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:05.275 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:45.322 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:45.571 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:46.280 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:46.516 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:46.672 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:46.808 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:46.956 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:47.095 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:47.215 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:55:47.364 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:56:45.289 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:56:45.435 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:56:45.600 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:56:45.730 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:56:45.876 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:56:46.033 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:56:46.179 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:56:46.322 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:56:46.460 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress. 2023-09-06 12:56:46.636 WARNING (MainThread) [custom_components.tapo_control] Recording is currently in progress.

Device Firmware

1.0.20 Build 230523 Rel.62326n

Using stream component

No

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

Raspberry Pi Home Assistant 2023.8.4 Supervisor 2023.08.3 Operating System 10.5 Frontend 20230802.1 - latest

Search for similar issues

Yes

Additional information

The repeated Recording is currently in progress will fill up log files quite quickly.

I already have two working presets: "Front Door" and "Living Area". I created them with the same method I am attempting to create "Back Door" with.

mrUlrik commented 10 months ago

This may have been my doing, in some way or another. After restarting Home Assistant I suddenly saw every attempt I'd made to create the preset.