First things first: To everyone that helped update the Nest integration to the new SDM API, thank you and nicely done! Rather quick turnaround on that,
Before posting a bug, I was wondering if anyone else might be having this issue. I have a Nest doorbell and HASS isn’t able to pull the video feed. On the frontend, I am getting 500 errors returned by HASS when the image is requested. On the backend, looks like HASS is getting 500 errors from Google when requesting the image.
Logger: aiohttp.server
Source: components/nest/camera_sdm.py:109
First occurred: 12:08:06 PM (190 occurrences)
Last logged: 12:24:01 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/google_nest_sdm/auth.py", line 55, in raise_for_status
resp.raise_for_status()
File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1002, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://smartdevicemanagement.googleapis.com/v1/enterprises/REDACTED/devices/REDACTED:executeCommand')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 502, in get
return await self.handle(request, camera)
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 519, in handle
image = await camera.async_camera_image()
File "/usr/src/homeassistant/homeassistant/components/nest/camera_sdm.py", line 165, in async_camera_image
stream_url = await self.stream_source()
File "/usr/src/homeassistant/homeassistant/components/nest/camera_sdm.py", line 109, in stream_source
self._stream = await trait.generate_rtsp_stream()
File "/usr/local/lib/python3.8/site-packages/google_nest_sdm/camera_traits.py", line 144, in generate_rtsp_stream
resp = await self._cmd.execute(data)
File "/usr/local/lib/python3.8/site-packages/google_nest_sdm/traits.py", line 22, in execute
return AbstractAuth.raise_for_status(resp)
File "/usr/local/lib/python3.8/site-packages/google_nest_sdm/auth.py", line 59, in raise_for_status
raise ApiException(f"Error from API: {err}") from err
google_nest_sdm.exceptions.ApiException: Error from API: 500, message='Internal Server Error', url=URL('https://smartdevicemanagement.googleapis.com/v1/enterprises/REDACTED/devices/REDACTED:executeCommand')