Home Assistant Community Add-on: motionEye

:tada: Release v0.5.0

Full Changelog

This is a big, but general maintenance release.

:hammer: Changes

  • :arrow_up: Updates motioneye to v0.40 (#37)
  • :arrow_up: Upgrades python to 2.7.16-r1
  • :arrow_up: Upgrades curl to 7.64.0-r2 (CVE-2019-5435, CVE-2019-5436)
  • :arrow_up: Updates pycurl to v7.43.0.3 (#41)
  • :arrow_up: Upgrades add-on base image to v4.0.1
  • :pencil2: Maintaince -> Maintenance
  • :fire: Removes now deprecated ssl directive
  • :arrow_up: Upgrades curl to 7.65.1-r0
  • :arrow_up: Upgrades musl-dev to 1.1.22-r2
  • :arrow_up: Upgrades py-setuptools to 40.8.0-r1
  • :arrow_up: Upgrades cifs-utils to 6.9-r0
  • :arrow_up: Upgrades ffmpeg to 4.1.3-r1
  • :arrow_up: Upgrades mosquitto-clients to 1.6.3-r0
  • :arrow_up: Upgrades nginx to 1.16.0-r2
  • :sparkles: Adds FUNDING.yml

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

1 Like

If you have MotionEye set to record any of those cameras then the RPi is definitely going to struggle

Hi @all,

I’m running 4 rtsp cameras with motion detection and recording on a normal rpi 3 without any performance issues.

I struggled at the beginning and thought the performance is not sufficient, but it was just the wrong settings I used. for example:

  • I allocated too many frames before and after a motion event to be recorded (20-50 frames in memory), as I thought motionEye will need this to respond in time and not to loose frames
  • I had the frame rate on my camera’s very high to ensure I capture all frames ( I still had dropped frames)
  • I used a remote storage for my video files, as I did not want my SD card to be corrupted

With the above settings I was able to setup 2 camera’s with good performance but was not happy with that result. I did below steps to optimize my systems.

  • I did a full re-install of motionEye on a dedicated rpi3
  • I configured 1 rtsp camera
    — >with HD resolution
    —> set the frame rate to 20 frames
    —> set Keyframes to every 5 frames
  • I kept the standard motionEye parameters and only changed
    –> detect motion within 3 frames
    –> number of leading frames 3
    –> silence between frames (for new motion) = 10 frames
    –> store the video on SD card for 1 week
    –> disabled pictures and streaming
    –> configured webhook to send the filename to NR when a motion was detected

I kept these settings for a few hours and the results were great. All my motions were detected and correctly recorded. The utilization of the rpi was under 10%

I added a second camera with the same settings and had the same good results with only a slight increase to the system load

I did the same for camera 3 & 4 and it works like a charm for all cameras. My system load is now at 50% when no motion is detected and about 75-80% when 2 or 3 cameras are getting motion detected and recording the stream.

On rare occasions I have motion detection on all camera’s at the same time and the load is going to 100% resulting in frames dropped, but this is something I can live with.

I’m sure there can be further optimization for motionEye or on the rpi but I’m no exert and found these settings working for me on trial and error.

My recommendation: Don’t try to tweak motionEye too much as it is very performant.

I hope that helped a bit

5 Likes

Ok, I’ve just installed and configured my camera, and it’s working ok on my sidebar. But please, could you provide any simple example of how to show the stream inside a card on lovelace home screen? I mean, is it possible? Sorry for the dumb question, I’m new to all of this…

1 Like

The easiest way is to enable the streaming option in motionEye. The stream should than be visible with your web browser

than you have to add the HA stream component https://www.home-assistant.io/components/stream

Already did that, but it seems it tries to stream to another port, I’m using Nabucasa, the link generated doesnt work on web browser for some reason…

The stream from motionEye must work first. Check with VLC, you can access RTSP streams by entering the address with CTRL-N.

Yes it is working on motioneye and also with VLC.

strange :frowning: it worked for me at once!

have you checked the error message (and solution) at the bottom of page https://www.home-assistant.io/components/stream

or check MJPEG CAM or Generic CAM

:tada: Release v0.5.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates pillow to v6.1.0 (#44)
  • :arrow_up: Upgrades add-on base image to v4.0.2
  • :arrow_up: Updates futures to v3.3.0 (#47)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Has anyone successfully integrated a REolink RLC420 into motioneye?

Any chance of a feature that allows me to specify where the videos go? My auto backup to Google drive fails because the share directory is huge.

I started having a problem with my cameras a few days ago. I logged into motionEye via the web interface. Normally it would show live images from my cameras, now all I get is the spinning wheel it shows when trying to load the streams.

I’ve had this setup working rock solid for the last 3 months, so I know none of the config changed for motionEye and I’m the only one who knows how to log into it.

I’ve also noticed this in the motionEye log:
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
ERROR: failed to mount smb share “//192.168.10.33/share_folder” at “/media/motioneye_192_168_10_33_share_folder_username”

Any suggestions?

I’m having the same issue although I was running motioneye as a seperate docker image(My setup is I3 Nuc with Ubuntu 18.04 running Hassio in docker, motioneye in docker as well as a few other images off the host) . I also tried installing the hassio addon version of motioneye and adding my rtsp feeds into that, with the same result. Maybe FFMPEG updatd and broke it or something, I’m really not sure.

Is there any way to get the videos to save to an external HDD? I can’t seem to find a way to mount a HDD to HassIO (running NUC image)

hello, I am experiencing the same problem when I go to the motioneye card where my cameras are configured, the loading circles rotate without loading anything, the strange thing that this happens only from the smartphone because with the desktop PC it works regularly.

motion eye stopped working after updating to hassio 0.97, also tried updating motioneye to latest version 0.5.1.
loading circles rotate without loading anything.

I’ve experiencing the same issue.

The video is still working in the background as motion detection is still working and recording videos, streams work on VLC etc, but when trying to view on the main Motioneye screen I just get the loading circles.

:tada: Release v0.5.2

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades add-on base image to v4.0.3
  • :arrow_up: Upgrades musl-dev to 1.1.22-r3

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

:tada: Release v0.5.3

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades motioneye to 0.41rc1

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck