Home Assistant with MotionEye

Hi all,

I’m trying to get some of my MotionEye streams (webcams connected to rPi’s) to show in Home Assistant, but it doesn’t really work as well as I’d like.

At the moment I’m just taking the video stream “http://ip_address:port/video” and adding it as a picture. This gets me a view of the camera, but it’s criminally inconsistent, blank window, change in size etc, like it’s not rendering properly. I also have an Android IP camera in my configuration and this works flawlessly.

Anyone else with similar issues with a possible fix?

What hardware you using.

Change framerate from motioneye or resolution. See if that help.

Which component you using in HA?

Hi, thanks for the suggestions, I’ve tried the framerate and resolution changes, but that’s not it.

I think the problem is the picture component I’m using. For the IP Camera, I have to add the camera into my configuration.yaml and it works flawlessly.

try ffmpeg component and stream from motioneye or direct from cam. it is most consistent for me
hardware is challenge in all cases as video processing takes CPU + Memory and depending on hardware it can be slow and result in slow image display or long buffer when try live view video

I am using this with my motioneye with no problems

camera:
  - platform: mjpeg
    mjpeg_url: http://**IP**:**PORT**
    name: Stairs
    authentication: basic
    username: user
    password: pass

If this helps, the resolution of this camera is 1280*720 at 25fps

HA is showing this camera correctly.

That seems to have fixed it, thanks for the help!

1 Like

What ip adres is used? ip from camera or ip adres from motioneye (:8765)

I dit not user ffmpeg but used an iframe card:
Only problem is: i have to input every time user and password, how to automate that?

You should use the motioneye ip address

Selecting “Remember Me” should work

i am having same issue. i have added my cameras to motion eye addon in ha, but getting 6-7 seconds lag. i have added above config to my config.yaml file, but don’t know what to do next ? should i add this new entity to a entity card to my love lace dashboard ?