Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reolink Integration Generating Errors with core-2025.1.2 #135863

Open
sergioblesa opened this issue Jan 17, 2025 · 1 comment
Open

Reolink Integration Generating Errors with core-2025.1.2 #135863

sergioblesa opened this issue Jan 17, 2025 · 1 comment
Assignees

Comments

@sergioblesa
Copy link

The problem

Since I updated I'm getting the following errors for a E1 Zoom camera in an automation call, when trying to take an snapshot:

Registrador: homeassistant.components.automation.aviso_puerta_abierta_beta
Fuente: helpers/script.py:526
integración: Automatización (documentación, problemas)
Ocurrió por primera vez: 17:27:03 (3 ocurrencias)
Última vez registrado: 17:29:07

Aviso puerta abierta (beta): Error executing script. Unexpected error for call_service at pos 2:
Aviso puerta abierta (beta): Parallel action at step 1: parallel 1: Error executing script. Unexpected error for call_service at pos 1:
Aviso puerta abierta (beta): Error executing script. Unexpected error for parallel at pos 1:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 1182, in async_handle_snapshot_service
else await camera.async_camera_image()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/reolink/util.py", line 103, in decorator_raise_translated_error
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/reolink/camera.py", line 148, in async_camera_image
return await self._host.api.get_snapshot(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._channel, self.entity_description.stream
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/reolink_aio/api.py", line 3044, in get_snapshot
response = await self.send(body, param, expected_response_type="image/jpeg")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/reolink_aio/api.py", line 5385, in send
return await self.send_chunk(body, param, expected_response_type, retry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/reolink_aio/api.py", line 5468, in send_chunk
async with self._send_mutex:
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/locks.py", line 14, in aenter
await self.acquire()
File "/usr/local/lib/python3.13/asyncio/locks.py", line 110, in acquire
await fut
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

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 764, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, 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 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 1178, in async_handle_snapshot_service
async with asyncio.timeout(CAMERA_IMAGE_TIMEOUT):
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit
raise TimeoutError from exc_val
TimeoutError

What version of Home Assistant Core has the issue?

2025.1.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Reolink

Link to integration documentation on our website

https://www.home-assistant.io/integrations/reolink/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

@home-assistant
Copy link

Hey there @starkillerOG, mind taking a look at this issue as it has been labeled with an integration (reolink) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of reolink can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign reolink Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


reolink documentation
reolink source
(message by IssueLinks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants