I randomly realized that motioneye was occupying 90% of the CPU (without opening the interface) and hassio was going slow or even unresponsive from time to time when for example i was compiling something on esphome through the webui. Everything went back to normal once i turned off the addon.
I have 4 cameras connected to motioneye.
Anyone else experiencing the same?
Yes that is why I moved Motioneye from the RPI3 with HASSIO to my RPI4 which only had low CPU usage tasks (Open Media Vault as NAS and DSMR for energy monitoring). Still have peaks of 90%-100% on that device which mainly happens when video is recorded in case of motion.I have not been able to really tune this to an acceptable level up to now.
Have you tried playing with the Frame Rate setting and resolution settings in motion eye ?
Yes I did and also tried to tune other settings, this has some effect but in the end I still have high CPU peaks. But up to now I do not notice any negative side effects of that on that device. CPU temperature also is acceptable low because of fan. On RPi 3 other processes got stuck and device became unresponsive. I use it with 2 camera’s by the way. What also helped is to use the SD quality stream for motion detection instead of the HD stream.
Hey Man did you get an answer to this? I am having the same issue and I am selecting Network Camera
Hie henaa !
May I ask you help please ? I am using HA from 1 year.
Another time, thanks to the developpers @Frenck…etc Today, I wanted to integrated my ESP32S cam in Motion Eye.
They are already been integrated in the lovelace
I used ESPhome with that code
`
esphome:
name: cameraessai
platform: ESP32
board: nodemcu-32s
wifi:
ssid: "ssidwifihome"
password: "pwdwifihome"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "ssidcameraessai"
password: "pwdcameraessai"
manual_ip:
static_ip: 10.0.4.71
gateway: 10.0.4.1
subnet: 255.255.255.0
# Example configuration entry
web_server:
port: 80
auth:
username: "admin"
password: "pwd11"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
safe_mode: True
password: VERYSECURE
# Example configuration entry
esp32_camera:
name: cameraessai
external_clock:
pin: GPIO0
frequency: 20MHz
i2c_pins:
sda: GPIO26
scl: GPIO27
data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
vsync_pin: GPIO25
href_pin: GPIO23
pixel_clock_pin: GPIO22
power_down_pin: GPIO32
resolution: 800x600
max_framerate: 8 fps
jpeg_quality: 10
# Image settings
text_sensor:
- platform: version
name: "cameraessai Version"
switch:
- platform: restart
name: "cameraessai Restart"
binary_sensor:
- platform: status
name: "cameraessai Status"
sensor:
- platform: uptime
name: Uptime Sensor
- platform: wifi_signal
name: "cameraessai Signal Sensor"
update_interval: 60s
I uploaded succesfully
BUT… I would like to record the video with a nice CCTV server like Motion Eye.
Now, I became in trouble to access the stream. Impossible to find it.
I can access the web server of my cam in an explorer
But in motion eye I really have difficulties with.
Is there a trick with the stream please https://www.home-assistant.io/integrations/stream ?
I added that in my configuration.yaml :
action:
service: camera.record
target:
entity_id: camera.cameraessai
data:
filename: "/config/www/cameraessai.mp4"
duration: 30
Where am I wrong please ?
- Does it comes from my network ?
- Does I must setup the platform and how ?
Motion Eye
Thanks for you help
(Bonus : I take advantage of it but “do you have any idea of a battery for this type of ESP32 please?” I would like to put them outside without any outlets nearby. " )
Hie Frenck ,
Thanks for all your hard work ! I am looking for a solution about this addon. Here’s the difficulty
If you have an idea (without spending a lot of time just for me) that would be great, otherwise no pb!
Best regards and once again your work is so nice
Try to add the camera with the url http://10.0.4.71:81/stream
Thx Luitertje. I have the same messages
My bad… it seems there’s not a normal option to do this.
There’s a workaround to do this. https://www.reddit.com/r/homeassistant/comments/ggxg3q/motioneye_ip_camera_authorization/
I had a look on your link but no way… I hope something will find the trick but Many thx.
Help please!!! I just integrated Motion Eye into HA but whenever it runs, HA becomes non-responsive w/ messages below. Motion Eye addon CPU/RAM runs at very high rates even though Supervisor CPU/RAM are well below 5%. Any feedback/help is greatly appreciated.
We don’t do pictures of logs.
Where is that log from?
Please post the text of the log, and tell us what it is.
Just to elaborate because I’ve been searching for hours and Jochen’s post allowed me to figure out how to move recordings and pictures off the docker server.
You can put entries in /etc/fstab that allow you to permanently bind a directory to another directory. For example this entry causes a USB hard drive that is plugged into my Debian box to be mounted at /usb/Woodstock
UUID=a7ef98ad-3318-37f9-96eb-baa1c0415aa8 /usb/Woodstock hfsplus force,rw,nosuid,nodev,relatime,umask=22,uid=1000,gid=1000,nls=utf8,uhelper=udisks2
I already understood this and am using it for several other things - but just didn’t think it through. Kept trying the symbolic link route which will not work.
In my case, I actually want to put the media on a folder that is on ANOTHER computer (a headless Mac Mini). So - I can use an FSTAB entry using FUSE to not only map one directory to another, I can make the connection using SSHFS (this complicates things and is not needed for most people - but I am sharing my FSTAB entry anyway in case someone else is trying to do this exactly. Note this involves a lot more than just creating an FSTAB entry and is beyond the scope of this post.):
sshfs#[email protected]:/Volumes/Linus-2TB-X/motioneye /usr/share/hassio/share/motioneye fuse defaults,idmap=user,nonempty,allow_other,reconnect,_netdev,users,IdentityFile=/root/.ssh/id_rsa 0 0
So if instead of using another computer I wanted to just put my media on the USB drive that is attached directly to my Debian server (my first example) the entry would look like:
/usb/Woodstock/motioneye /usr/share/hassio/share/motioneye none bind 0 0
(and it would need to come after my first entry that creates the Woodstock directory in the first place)
You can test this without modifying your FSTAB with:
mount --bind /usb/Woodstock/motioneye /usr/share/hassio/share/motioneye
Note that an empty directory called motioneye will need to be in both places. If they aren’t empty, both commands will throw an error.
(I am running HomeAssistant Supervised in Docker on a vanilla Debian Buster 64bit. I have several other non Hassio/Homeassistant Docker containers running on this same machine. The other way this could probably be done is to write a custom script by modifying the installer from the GIT pull for Motioneye - but then it will not stick of the author upgrades or you reinstall for some reason. Using Bind to redirect the files seems like the best option for me.)
Once you do this - Motioneye even reports space available at the REAL destination instead of the docker container:
Hi, can anyone help me setup homeassistant to trigger recording in motioneye when something happens? eg. record on door sensor = open.
having motion eye record on motion won’t do the trick since not all motion detections are of interest for me
thank you
is it possible with an action button to start a link with credentials without confirmation?
http://admin:[email protected]/cgi-bin/ConfigManApp.com?key=F_LOCK&code=8511
I am also looking for a solution to the “Unauthorized” issue. Did you already solve it?
No, I still have that issue. Ingress works fine, but direct URL:s causes the issue unless you already initiated a session with motionEye via the left hand side.
hi
why if I use Embed URL it tells me 401: Unauthorized even if Authentication Mode is disabled?
managing the cameras in mjpeg overloads me firefox in an excessive way, with chrome instead no. happens to anyone?