IP Camera error

Hi,

I just got into the world of HA using a RB PI3 HassBian and starting off with some IP cameras while my order of zwave devices arrives! (very exited) I have a DIY surveillance system on a windows machine using the following software and hardware. I’ve had no luck with the camera, here is the configuration and logs, maybe someone can shine some light.

Software: BlueIris
Cameras: Reo-Link RLC-410 (https://reolink.com/)

Configuration.yaml

camera:
  platform: generic
  name: my sample camera
  username: myadmin
  password: mypassword
  still_image_url: http://mycamIP/jpg/image.jpg

logs

16-12-20 12:11:30 aiohttp.server: Error handling request
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web_server.py", line 61, in handle_request
    resp = yield from self._handler(request)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/web.py", line 249, in _handle
    resp = yield from handler(request)
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
    res = yield from res
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 427, in handle
    result = yield from result
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/__init__.py", line 186, in get
    response = yield from self.handle(request, camera)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/__init__.py", line 221, in handle
    yield from camera.handle_async_mjpeg_stream(request)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/__init__.py", line 118, in handle_async_mjpeg_stream
    img_bytes = yield from self.async_camera_image()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/camera/generic.py", line 115, in async_camera_image
    url, auth=self._auth)
  File "/home/homeassistant/.homeassistant/deps/aiohttp/client.py", line 530, in __iter__
    resp = yield from self._coro
  File "/home/homeassistant/.homeassistant/deps/aiohttp/client.py", line 136, in _request
    raise RuntimeError('Session is closed')
RuntimeError: Session is closed

Are you able to see the image from a browser using URL http://mycamIP/jpg/image.jpg ?

Can you download the image from your raspberry using “wget --user myadmin – password mypassword http://mycamIP/jpg/image.jpg

I was able to get it working by connecting to my NVR server (Blue Iris) and disabling lan credentials as it follows, where can I edit the timer between snapshots? Any idea how I can use the motion detect sensor on the cameras for other automation like turning outside lights on, while keeping the blue iris recording functionalities?

  • platform: mjpeg
    mjpeg_url: http://[blue iris nvr ip]/mjpg/fdoor
    name: Fdoor
    authentication: basic
1 Like

That’s not really related to home assistant, you should check your camera user guide for this kind of options.
For the second point I’m affraid it won’t be possible.

I have this camera. The URL for jpg snapshot explained in the FAQ.

https://reolink.com/faq/get-url-of-jpeg-image-captured-reolink-camera/

(I tried the URL and it does work) However, I use zoneminder to stream the h264 . (I haven’t yet integrated zoneminder to hass yet.