For a long time, I’ve been using camera.snapshot to capture doorbell images but it seems that as of some time in July, this stopped working and I get the following errors now. Any idea what might have changed?
Here’s one of the automation steps:
service: camera.snapshot
data:
filename: /config/www/camera/back-door-{{now().strftime("%Y%m%d_%H%M%S")}}.jpg
target:
entity_id: camera.back_door
and here’s the error:
Logger: homeassistant.core
Source: components/camera/__init__.py:523
First occurred: 11:50:10 AM (10 occurrences)
Last logged: 12:30:22 PM
Error executing service: <ServiceCall camera.snapshot (c:01GBZJWJJK69VBCFDJH2ZPTNEV): filename=Template("/config/www/camera/back-door-20220902_121012.jpg"), entity_id=['camera.back_door']>
Error executing service: <ServiceCall camera.snapshot (c:01GBZKEWGPFCTSJ43478T326RK): filename=Template("/config/www/camera/front-door-20220902_122000.jpg"), entity_id=['camera.front_door']>
Error executing service: <ServiceCall camera.snapshot (c:01GBZKEWGPFCTSJ43478T326RK): filename=Template("/config/www/camera/back-door-20220902_122012.jpg"), entity_id=['camera.back_door']>
Error executing service: <ServiceCall camera.snapshot (c:01GBZM16EQB7S7MQHF8TRXGGHG): filename=Template("/config/www/camera/front-door-20220902_123000.jpg"), entity_id=['camera.front_door']>
Error executing service: <ServiceCall camera.snapshot (c:01GBZM16EQB7S7MQHF8TRXGGHG): filename=Template("/config/www/camera/back-door-20220902_123012.jpg"), entity_id=['camera.back_door']>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 524, in async_create_stream
source = await self.stream_source()
File "/usr/src/homeassistant/homeassistant/components/nest/camera_sdm.py", line 143, in stream_source
self._stream = await trait.generate_rtsp_stream()
File "/usr/local/lib/python3.10/site-packages/google_nest_sdm/camera_traits.py", line 255, in generate_rtsp_stream
response_data = await self._cmd.execute_json(data)
File "/usr/local/lib/python3.10/site-packages/google_nest_sdm/traits.py", line 37, in execute_json
return await self._auth.post_json(
File "/usr/local/lib/python3.10/site-packages/google_nest_sdm/auth.py", line 100, in post_json
resp = await self.post(url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/google_nest_sdm/auth.py", line 93, in post
resp = await self.request("post", url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/google_nest_sdm/auth.py", line 64, in request
return await self._websession.request(method, url, **kwargs, headers=headers)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 559, in _request
await resp.start(conn)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 898, in start
message, payload = await protocol.read() # type: ignore[union-attr]
File "/usr/local/lib/python3.10/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 911, in async_handle_snapshot_service
image = await camera.async_camera_image()
File "/usr/src/homeassistant/homeassistant/components/nest/camera_sdm.py", line 212, in async_camera_image
stream = await self.async_create_stream()
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 523, in async_create_stream
async with async_timeout.timeout(CAMERA_STREAM_SOURCE_TIMEOUT):
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError