Esp32 wrover and webcam

Hi everyone, I would like to interface esp32 wRover with an Nvr system and then configure it. In addition to this nvr on home Assistant, can anyone give me some feedback?

What do you want to do with your ESP in relation to your NVR, exactly?

I would like to connect with RTSP protocol to be able to see the images and then use it as a streaming video camera

Still unclear who connects to what and why, but have you seen

1 Like

Esphome does not create an RTSP stream. The thread linked by @koying shows you how to use the esp32 camera with frigate, but RTSP it is not.

To be clear, RTSP it is not for sure, but ESPHome allows to stream MJPEG from, e.g, an ESPcam through

But yeah, unclear whether OP wants to connect an ESP camera to his NVR or …

Hi everyone I managed to make esp32 rover work with the web in HA . But I have a problem with the light saturation that always appears purple.

esphome:
  name: esphome-web-f2a12c
  friendly_name: esp32camera
  min_version: 2024.11.0
  name_add_mac_suffix: false

esp32:
  board: esp-wrover-kit
  framework:
    type: arduino
    version: recommended

# Enable logging
logger:

# Enable Home Assistant API
api:

# Allow Over-The-Air updates
ota:
- platform: esphome

wifi:
  # Set up a wifi access point
  ap: {}
  ssid: !secret wifi_ssid
  password: !secret wifi_password
web_server:
  port: 80
esp32_camera:
  name: "ESP32 Camera"
  external_clock:
    pin: GPIO21
    frequency: 8MHz
  i2c_pins:
    sda: GPIO26
    scl: GPIO27
  data_pins: [GPIO4, GPIO5, GPIO18, GPIO19, GPIO36, GPIO39, GPIO34, GPIO35]
  vsync_pin: GPIO25
  href_pin: GPIO23
  pixel_clock_pin: GPIO22
  #brightness: 0   # Regola la luminosità (-2 a 2, 0 è neutro)
  #contrast: 0    # Migliora la definizione dell'immagine (-2 a 2)
  saturation: 0  # Intensifica i colori (-2 a 2)
  # Image Quality
  resolution: UXGA
  jpeg_quality: 10
  agc_gain_ceiling: 16X
  wb_mode: CLOUDY  # Bilancia per luci artificiali
#  aec2: True
#  aec_mode: AUTO
#  max_framerate: 6 fps
#  idle_framerate: 0.1 fps
#  wb_mode: home
#  agc_gain_ceiling: 8x
#  vertical_flip: False
#  horizontal_mirror: False

esp32_camera_web_server:
  - port: 8080
    mode: Stream
  - port: 8081
    mode: snapshot  
switch:
  - platform: restart
    name: "Riavvia ESP32 camera"
button:
  - platform: template
    name: "Reboot ESP32 camera"
    on_press:
      - lambda: ESP.restart();
sensor : 
  - platform: wifi_signal
    name: "ESP32 WiFi Strength"
    update_interval: 60s   
  - platform: uptime
    name: Uptime Sensor  

There are plenty of variables to try

Perhaps saturation or white balance.

Thank you i have resolved

Very good of you to share how you solved it.

1 Like
esphome:
  name: esphome-web-f2a12c
  friendly_name: esp32camera
  min_version: 2024.11.0
  name_add_mac_suffix: false

esp32:
  board: esp-wrover-kit
  framework:
    type: arduino
    version: recommended

# Enable logging
logger:

# Enable Home Assistant API
api:

# Allow Over-The-Air updates
ota:
- platform: esphome

wifi:
  # Set up a wifi access point
  ap: {}
  ssid: !secret wifi_ssid
  password: !secret wifi_password
web_server:
  port: 80
esp32_camera:
  name: "ESP32 Camera"
  external_clock:
    pin: GPIO21
    frequency: 8MHz
  i2c_pins:
    sda: GPIO26
    scl: GPIO27
  data_pins: [GPIO4, GPIO5, GPIO18, GPIO19, GPIO36, GPIO39, GPIO34, GPIO35]
  vsync_pin: GPIO25
  href_pin: GPIO23
  pixel_clock_pin: GPIO22
  brightness: 2   # Regola la luminosità (-2 a 2, 0 è neutro)
  contrast: 1    # Migliora la definizione dell'immagine (-2 a 2)
  saturation: 0  # Intensifica i colori (-2 a 2)
  # Image Quality
  resolution: SXGA
  jpeg_quality: 10
  agc_gain_ceiling: 2X
  wb_mode: HOME  # Bilancia per luci artificiali
#  aec2: True
#  aec_mode: AUTO
#  max_framerate: 6 fps
#  idle_framerate: 0.1 fps
#  wb_mode: home
#  agc_gain_ceiling: 8x
  vertical_flip: true
  horizontal_mirror: false

esp32_camera_web_server:
  - port: 8080
    mode: Stream
  - port: 8081
    mode: snapshot  
switch:
  - platform: restart
    name: "Riavvia ESP32 camera"
button:
  - platform: template
    name: "Reboot ESP32 camera"
    on_press:
      - lambda: ESP.restart();
sensor : 
  - platform: wifi_signal
    name: "ESP32 WiFi Strength"
    update_interval: 60s   
  - platform: uptime
    name: Uptime Sensor
    filters:
      - lambda: return x / 3600.0;
    unit_of_measurement: "hours"
    accuracy_decimals: 2