Home Assistant Community Add-on: motionEye

Wow, I really like this add-on. I have several different cameras at home, all from new dlinks, old dlinks but also new amazon bought Mibao IPC360 chinese cameras and the app seems to work with all of them. But I’m curious about the interaktion with Automations in homeassistant. I have outdoor cameras that are motion triggered and send pictures and video to my local NAS. But when it comes to my indoor cameras in rather wouldnt want them to continously send huge amount of data to the NAS (due to us moving around in the house all the time) but rather have it conditionally somehow, either that motion-eye motion-trigger is only active when my home alarm is active (my alarm is also connected to homeassistant) or maybe even have some cameras connected to other triggers such as a light switch acting as “panic button” if someone in the house feels threatened and want to activate the camera motion-activation or record video for x number of seconds. To be more clear I have one camera in the hallway pointed at the door inside, but this camera I would only like to record when alarm is activated or if someone presses a homeassistant connected button in the hallway… :slight_smile:
But is how is it possible to activate and steer motioneye through automations or is this possible to to within motion-eye itself ?

hi Paul

I still cannot get this integration to install.
Keeps saying Failed to Connect.
Have tried http://192.168.1.xx:8765 and https however it keeps saying failed to connect
I am thinking i have missed a step before going to integrations - Motion Eye - Install???
Hope you can offer anything that may allow me to setup motion eye
thanks

This thread is about the addon.

If you are installing the addon then you need the url to be http://127.0.0.1:28765 as the port number is different to normal and it has to point to localhost. If you aren’t installing it via the addon then I am not sure what the issue is.

1 Like

Thanks Paul. Yes tried this url to localhost via the addon however it is still saying Failed to connect.
Just to confirm the URL points to HA?
So at this point still not sure why it is failing to connect

Hi There, I know this is a bit back dated but I was just wondering if you got the grey screen issue sorted.

I have 4 reolink camera’s running on SYNOLOGY NAS and SSS. All four work fine. If I connect them to HA through the SYN integration all work fine. But when pickup the feed from the camera’s in motioneye I, like you get a grey screen.

I am intrested to hear on if and how you got sorted?

KR

Edit: Small update, One of my Camera’s is working. YES. However when adding a second camera with the same FW and identical setting I get the message in Motioneye “UNABLE TO OPEN VIDEO DEVICE”

It’s a Mystery to Me :wink:

Hi i tried setting up an ESP32 Cam as an IP Cam.
I can bind it into Home Assistant as a picture on the Dashboard.

I cannot connect it to motioneye add on, i always get this:

Received HTTP/0.9 when not allowed

i used as IP: http://192.168.1.xx:3232/stream

Do i need to setup something in advance?
The other Port didn’t work either (:28765)

Thank you for pointing me in the right direction…

What software are you using on the esp32?

I am using ESPHome, created over the ESPHome Add On in HA, running HAOS on a Pi4 Model B:

esphome:
  name: chickencam
  platform: ESP32
  board: esp32cam

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "XXXXXXXXXXXXXXXXXXXXXXXX"

wifi:
  ssid: "mywaln"
  password: "mywlanpw"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Chickencam Fallback Hotspot"
    password: "DPTPPeFBGfKN"

captive_portal:

esp32_camera:
  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
  vertical_flip: false

  # Image settings
  name: chickcam
  # ...
esphome:
  name: chickencam
  platform: ESP32
  board: esp32cam

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "727b52e6405882e623232bdf89f90b60"

wifi:
  ssid: "GatetotheWorld"
  password: "gotowwwtplol3"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Chickencam Fallback Hotspot"
    password: "DPTPPeFBGfKN"

captive_portal:

esp32_camera:
  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
  vertical_flip: false

  # Image settings
  name: chickcam
  # ...

I am open for other solutions too, would prefer to run ESPHome to keep the OTA Update ability…

Goal: Implement ESP32-CAM to motioneye so i can record little chicks hatching when they start moving in the incubator…

How can I reset the admin password for motionEye when it was installed as an add-on?

1 Like

I installed this addon yesterday and after getting it working with the curl commands for updating a boolean, which in turn updates a binary_sensor for motion detection, after 18 hours or so, it stopped updating.

What’s even more confusing, is that the addon logs only show this (I restarted the addon this morning, but it was the same a few hours ago) - yesterday it definitely logged more stuff, like the stream being accessed via the webui.

Any ideas what might be the cause?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: motionEye
 Simple, elegant and feature-rich CCTV/NVR for your cameras
-----------------------------------------------------------
 Add-on version: 0.15.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.2  (amd64 / generic-x86-64)
 Home Assistant Core: 2021.8.5
 Home Assistant Supervisor: 2021.06.8
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] motioneye.sh: executing... 
backing up /data/motioneye/motioneye.conf
[cont-init.d] motioneye.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[11:04:40] INFO: Starting motionEye...
    INFO: hello! this is motionEye server 0.42.1
    INFO: cleanup started
    INFO: wsswitch started
    INFO: tasks started
    INFO: mjpg client garbage collector started
    INFO: smb mounts started
    INFO: server started
[11:04:43] INFO: Starting NGinx...
[11:04:44] INFO: Successfully send discovery information to Home Assistant.
/bin/sh: lsb_release: not found
/bin/sh: lsb_release: not found

Log in as admin, then click the hamburger menu. It will be right there.

I cannot get to the hamburger menu without logging in. I cannot log in as my saved password isn’t working, hence why I asked how to reset the password for admin.

1 Like

OK, I think this should work.

Assuming you have ssh & web terminal addon, if not install it.

Then run

docker exec -it addon_a0d7b954_motioneye bash

This will get you into the motioneye addon
Then the password is a hashed variable in data/motion.conf. Edit the file (vi if you know how to use it) and remove the password hash.

Restart the addon and you should be able to log in with the blank password.

Thankyou - that worked great.

2 Likes

It is possible to use raspberry pi ribbon camera with motionEye on Home Assistant OS?

Hi, my camera supports night vision (IR) which is automated through the software of the camera provider (Heimvision cloudcam), but I was wondering if there is a way I can activate that through motion? I currently manage recordings and movements through HA with a rest command, so I was hoping maybe there is a way to do that with night vision too?
Does anyone know if that is possible?

yes https://motion-project.github.io/

Hi, can we hope to have home assistant ipcam entity inside motioneye someday?
I have an esp32 cam that works in the lovelace card, but it is not visible in motioneye.
Several posts on this forum also ask how to configure an esp32 cam

How to configure it in motioneye addon?