Home Assistant Community Add-on: motionEye

Hie henaa !

May I ask you help please ? I am using HA from 1 year. :fu:t2: :smiley:
Another time, thanks to the developpers @Frenck…etc :pray:t2: Today, I wanted to integrated my ESP32S cam in Motion Eye.

They are already been integrated in the lovelace :muscle:t2:
image
I used ESPhome with that code :star_struck:

`
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 :muscle:t2: :star_struck:
image

BUT… I would like to record the video with a nice CCTV server like Motion Eye. :star_struck:

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.

image
image
image

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 :pray:t2: :blush: ?
- 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. " :sunglasses: :kissing:)