diff --git a/custom_components/ilifestyle/blank_image.jpg b/custom_components/ilifestyle/blank_image.jpg new file mode 100644 index 0000000..adab2f0 Binary files /dev/null and b/custom_components/ilifestyle/blank_image.jpg differ diff --git a/custom_components/ilifestyle/camera.py b/custom_components/ilifestyle/camera.py index 89a3b00..8625fd0 100644 --- a/custom_components/ilifestyle/camera.py +++ b/custom_components/ilifestyle/camera.py @@ -88,12 +88,13 @@ async def async_camera_image( ) -> bytes | None: """Return a still image response from the camera.""" + url = self._url if self.is_streaming == False: - return None + url = "/config/custom_components/ilifestyle/blank_image.jpg" return await ffmpeg.async_get_image( self.hass, - self._url, + url, output_format=IMAGE_JPEG, extra_cmd=self._options, )