Home Assistant Community Add-on: motionEye

Hi All, I noticed in motion that it is possible to specify 2 urls one for normal res (netcam_url) for motion detector ect and another at hi res for the recording (netcam_highres). I am trying to reduce CPU load as my 2 RLC-420s are maxing out my VM.

Also does anyone have any experience with using the custom vs predefined resolutions and or matching the cameras native stream resolution to motions settings and how this has an impact on system resources?

Running 4 cores with 8gb ram on the VM.

Cheers

I’m struggling to get this set up and would appreciate any insight as to where I am going wrong. I have the motioneye add-on set up and it runs fine. I can add an RTSP camera feed fine - I have a hacked Yi camera to test with.

The camera is working - I can view a live stream in VLC and zoneminder. In motioneye, I can manually trigger and it will record video and/or stills fine. However, no matter what I try I cannot get a live view in the main motioneye panel. When I change any settings, it circles for a few seconds and then shows a picture of a camera with a cross through it.

I have logging set to debug and there are no obvious errors.

Any ideas why I cannot view a live stream?

Hi, how do you use the motioneye mask? Are the red dots the MASKED or the UNMASKED part?

Can anyone confirm that these to options would work before I go ahead and buy cameras and set this up?

  1. Only process/record video streams when the cameras built in motion detection triggers? if no motion triggered by the camera MotionEye should just be idle.
  2. Toggle recording (or reading the stream) on/off depending on a sensors state (true/false)? Meaning that only read/record the stream if my home alarm is armed.

Would appreciate hep with the above a lot! Thanks!

Interestingly, I fired up an Ubuntu VM (same proxmox instance) and installed this manually. Works fine. Not sure why the live stream fails in the add-on but not the VM. Maybe a proxy issue?

Both of these are possible:

1 Like

That is just great! Thank’s a lot!

Red = no motion detection on this part.

Example, I ignore the floor, here:

Because floor is lava

2 Likes

thanks for answering.

What do you mean with your phrase?

More important I receive “empty pictures”, means the event has passed. I do not think the stream is fast enough to catch the motion event in a snapshot (camera.snapshot). I receive all the messages and the snapshot so its working, but the snapshot I think is “old”

Below what I use

In motioneye RUN A COMMAND, the following

curl -X POST -k -H “Authorization: Bearer eyJ0eXAi…longtoken” -H “Content-Type: application/json” -d ‘{“entity_id”: “script.motion_door_12”}’ http://192.168.1.12:8123/api/services/script/turn_on

in packages the following


 

################################################
## Script
################################################

script:
    motion_door_12:
      alias: motion_door_12
      sequence:
      - service: automation.trigger
        entity_id: automation.motion_door_12_snapshot
      - service: telegram_bot.send_message
        data_template:
            message: 'Attenzione movimento door 12 da script'
            target: '-290xxxxx'
################################################
## Automation
################################################
automation:
- alias: 'motion_door_12_snapshot'
  trigger: []
  condition: []
  action:
  - service: camera.snapshot
    data:
      entity_id: camera.door_12
      filename: /config/www/images/snapshot.jpg
  #- condition: state
  #  entity_id: group.presence_tracker
  #  state: not_home
  - delay: 00:00:01
  - service: telegram_bot.send_message
    data_template:
        message: 'Attenzione movimento door 12'
        target: '-29xxxx'
  - service: telegram_bot.send_photo
    data_template:
        caption: 'Attenzione movimento door 12'
        target: '-290xxxx'
        file: /config/www/images/snapshot.jpg

Maybe have to change also some settings??

I see also there is a STILL IMAGES option in motioneye, I guess that is much faster then a HA camera.snapshot command. But how to send thjis picture to telegram?

BTW I do receive an email when there is motion, but no picture is attachjed even if I put 1 second in options Attached Pictures Time Span

Does it send a picture at all? Meaning, if you put a random picture in place of the snapshot.jpg file and run the automation do you get that picture in telegram?

Hi I am trying two different approaches

  1. RUN A COMMAND with curl command
    curl -X POST -k -H “Authorization: Bearer eyJ0eXAi…longtoken” -H “Content-Type: application/json” -d ‘{“entity_id”: “script.motion_door_12”}’ http://192.168.1.12:8123/api/services/script/turn_on

that runs the below script


  - service: camera.snapshot
    data:
      entity_id: camera.door_12
      filename: /config/www/images/snapshot.jpg

it does work, but the photo is not at the event of the motion (I guess the frames are not syncronized

  1. SEND AN EMAIL

the email is sent but no attachment

Is there any way how to use NFS instead of Samba?

sorry to bring up an old post but could you please help me here? I have an external USB drive mounted to my NAS and am trying to get MotionEye to record to it, but I get the error ‘Accessing network share failed: cannot mount network share!’ when I click ‘test share’.

image

Any ideas? How have you configured the paths?

usbshare1/ or usbshare1 but almost definitely not usbshare1\

Hi guys,
I didn’t log in to my motioneye for a while and suddenly the admin account is failing.
I am very sure that I did not change anything. Chrome remembers my password, my pwd safe has it, and they all don’t work.
Any idea what is going on? Anybody else faced that?
Is there any way to reset the admin pwd without losing my motioneye setup?

Have you checked the log from the app? Maybe there is something there. Also try restarting the app while your on that page. Maybe it’s a blib in the matrix.

hi,
is it possible to use the onboard camera on a Raspberry Pi 4 running home assistant and the Motioneye addon? My camera isnt detected but is detected if i run MotionEyeOS on the same Pi.
Thanks

Thanks for that. Oddly however this only seems to work once and then fails. I set the paths as per this below:
image

which worked when pressing ‘test share’ as well as a field test (ie: saved a file to the correct directory) when I walked in front of the camera, however after I walked in front of the camera a second time it failed to save anything… so I clicked ‘test share’ again and it failed the test…? WTF?

That is annoying. Take a look at the samba logs on the server.