Easy and affordable Webcam for Home Assistant - ESP32 Cam

Поделиться
HTML-код
  • Опубликовано: 23 янв 2023
  • ESP32 - Cam s.click.aliexpress.com/e/_DEk...
    esphome.github.io/esp-web-tools/
    esphome:
    name: esp32-cam
    platform: ESP32
    board: esp32dev
    Enable logging
    logger:
    Enable Home Assistant API
    api:
    reboot_timeout: 0s
    ota:
    web_server:
    port: 80
    wifi:
    ssid: !secret wifi_ssid
    password: !secret wifi_password
    Enable fallback hotspot (captive portal) in case wifi connection fails
    ap:
    ssid: "Esp32-Cam Fallback Hotspot"
    password: "C3FOhAPFtouw"
    captive_portal:
    Example configuration entry
    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
    Image settings
    name: My ESP32-CAM
    Flashlight
    output:
    - platform: gpio
    pin: GPIO4
    id: gpio_4
    GPIO_4 is the flash light pin
    light:
    - platform: binary
    output: gpio_4
    name: flashlight
    Some items in my smart home:
    Zigbee smart bulb: s.click.aliexpress.com/e/_Dnq...
    Shelly Uni: s.click.aliexpress.com/e/_DmQ...
    Athom 4 gang switch: s.click.aliexpress.com/e/_Dkt...
    ESP32 Dev board: s.click.aliexpress.com/e/_DeN...
    Shelly 1: s.click.aliexpress.com/e/_Dkd...
    Shelly Dimmer: s.click.aliexpress.com/e/_DCj...
    CO2 Sensor: s.click.aliexpress.com/e/_Ddl...
    Great contiuous super bright LED Strips with no dots : s.click.aliexpress.com/e/_DCF...
    Weather station: s.click.aliexpress.com/e/_DEC...
    Broadlink Pro for controlling IR devices like TVs: s.click.aliexpress.com/e/_DEE...
    Athom local control ESPHome smart plugs:s.click.aliexpress.com/e/_DeK...
    Zigbee smart blind controller: s.click.aliexpress.com/e/_DFl...
    Raspberry Pi: s.click.aliexpress.com/e/_Dkl...
    Kingston SSD RAM: s.click.aliexpress.com/e/_DFq...
    Ice Tower Cooling Fan: s.click.aliexpress.com/e/_DmI...
    Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you!
  • НаукаНаука

Комментарии • 46

  • @jasonstation
    @jasonstation Год назад

    Brilliant, thank you.

  • @MaxGoddur
    @MaxGoddur Год назад +2

    Got my ESP32-Cam and Motherboard working and enjoyed viewing it in Home Assistant.
    Recently built up a DIY battery pack with a 3D printed case and USB charging/supply circuit board from Alibaba, all so I could unplug it from the wall wart and use it away from house power. It worked for a few minutes then the device went offline. Unplugging and plugging the USB connection cause the board to appear but only for a few minutes. It took some time but turns out the USB board used to power the camera has a low load current feature. This feature monitors the current draw from the battery and if it is too low it will shut down the output. If you know of this specification and have found a DIY board that doesn't have it I would love to hear from you.

    • @simonsayshomeassistant
      @simonsayshomeassistant  Год назад +1

      Interesting, thanks for the feedback Max. I am going to fire up my ESP cam again!

  • @davewarrant8673
    @davewarrant8673 Год назад

    Thanks! Can't wait to try it out!

    • @simonsayshomeassistant
      @simonsayshomeassistant  Год назад

      Great let me know how you get on

    • @davewarrant8673
      @davewarrant8673 Год назад

      @@simonsayshomeassistant Thanks for motivating me to get these out of the box!
      The Cam version I have needed slightly different code:
      esp32_camera:
      external_clock:
      pin: GPIO0
      frequency: 20MHz
      i2c_pins:
      sda: GPIO26
      scl: GPIO27
      data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
      # the order of the data_pins is significant, don't mix up the order
      vsync_pin: GPIO25
      href_pin: GPIO23
      pixel_clock_pin: GPIO22
      power_down_pin: GPIO32
      resolution: 800x600
      name: esp_cam02
      idle_framerate: 0.1fps
      output:
      - platform: ledc
      pin: GPIO4
      channel: 2 # channel 1 is used for esp32_camera
      id: led
      light:
      - platform: monochromatic
      output: led
      name: espcam_02 light

    • @simonsayshomeassistant
      @simonsayshomeassistant  Год назад

      @@davewarrant8673 Awesome, glad that I could help !

    • @Zarundo
      @Zarundo 9 месяцев назад

      @@davewarrant8673 How do you configure and control the PWM on the HA side?

    • @davewarrant8673
      @davewarrant8673 9 месяцев назад

      @@Zarundo "PWM"? I'm not using it for motor control, although that's a good idea for Pan/tilt

  • @MaxGoddur
    @MaxGoddur 11 месяцев назад

    While working with that board combination, it has become evident that there is an issue with those boards, specifically concerning the circuitry of the CH340 serial port. Interestingly, a completely different product that utilizes the CH340 serial port chip has no problems connecting via the ESPhome web port, which is exactly where the connection fails when attempting it with the ESP32-CAM/ESP32-CAM-MB boards.

    • @simonsayshomeassistant
      @simonsayshomeassistant  11 месяцев назад

      Hi Max, yes I think that these boards are built to a very low cost target and thus can have issues with communication.

  • @_AmHam_
    @_AmHam_ 8 месяцев назад

    Hi Simon, thank you very much for this detailed tutorial.
    I have thoroughly followed it and can say it works with great success.
    There one small issue, when I go to esp32-cam device and open the camera, I don't see any settings window like in 4:32 (info-settings-related).
    I have no clue how to correct this issue so that I can access the camera's settings.
    Do you any idea what the issue could be ? Thank you in advance !

    • @simonsayshomeassistant
      @simonsayshomeassistant  8 месяцев назад

      Hi Amin, thank you for your feedback! I'm not sure why it doesn't show this. I will order another cam and have a play with it

  • @74357175
    @74357175 Год назад +1

    I have one of these monitoring a gauge and it's super convenient: very low power USB power.

  • @nickschiemer3464
    @nickschiemer3464 Год назад +1

    Hey it worked all fine, thank you ! I only have the problem that the flash light is overheating. Is there a way to add a PWM signal to that led with that board ?

    • @simonsayshomeassistant
      @simonsayshomeassistant  Год назад +1

      Hi Nick, yes the LED does get very hot. This article may help. techexplorations.com/guides/esp32/begin/pwm/

  • @gnanendrasaiprattipatti9388
    @gnanendrasaiprattipatti9388 Год назад +1

    1] how to connect esp32 dev board with esp32 cam
    and i see in a pic that esp32cam is connected as follows
    VCC-VCC
    GND-GND
    RX-TX
    TX-RX
    2] i am facing a problem i want to connect gps,gsm,esp32cam to esp32 dev board but esp32 dev board has only two sets of RX,TX so i thought to connect gsm to controller of esp32 on remote when the sensar detects an accident it shares information to esp32 from rc car to esp32 controller by espnow and the recived esp32 sends signal to gsm
    is this posible

    • @simonsayshomeassistant
      @simonsayshomeassistant  Год назад

      Wow sounds like a cool project Gnanendra, I am sure it is possible. Not quite sure how to do it though. Let me know if you work it out and share your project

  • @MaxGoddur
    @MaxGoddur 11 месяцев назад

    I'm experiencing difficulties with the USB port drivers in Windows 11. Attempting to open the port feels unpredictable, and the success rate is disappointingly low, particularly with the ESP32-Cam and Motherboard. I've even tried using ESPhomeflasher.exe, but unfortunately, the port connection remains elusive. I've gone the extra mile by rebooting the computer and installing drivers for both ESP8266 and ESP32 devices, yet the issue persists. It's frustrating, and I'm at a loss for a solution.
    To clarify, I have noticed more success when connecting to ESP8266 devices compared to ESP32 devices. I've addressed the cabling by using a known good cable that has previously worked with the ESP8266. Additionally, I've verified that I am connecting to the correct COM port through the Device Manager in Windows 11. Despite these efforts, the problem with the USB ports and ESP32 devices remains unresolved.

    • @simonsayshomeassistant
      @simonsayshomeassistant  11 месяцев назад +1

      Hi Max, yes, I can imagine just how frustrating this must be. You could try flashing them directly from the home assistant like in this video: ruclips.net/video/m43Fe30Dbv8/видео.html

  • @oliverjohnalajas5341
    @oliverjohnalajas5341 Год назад

    Great content. Can you create a tutorial for flashing the program file? Thank you very much.

  • @angelkrik5261
    @angelkrik5261 Месяц назад

    hellos, im having trouble with the image i get. its with lines i cant see very clear, i can do something or bad product?

    • @simonsayshomeassistant
      @simonsayshomeassistant  Месяц назад +1

      Sorry I think you may have a faulty product. As Ali express for a refund

  • @perfoperfo9910
    @perfoperfo9910 Год назад

    Hello Simon. I can't quite catch what you are saying at 3:31 ? The caption generator spells it nebuchessa but googling it doesn't seem to give any clues. I've tried this the esp web thing and that doesn't see to work so going to try logging in to ned? then accessing through chrome.. Thanks

    • @simonsayshomeassistant
      @simonsayshomeassistant  Год назад +1

      Hi mate I think the word you are looking for is esp webtools

    • @perfoperfo9910
      @perfoperfo9910 Год назад

      @@simonsayshomeassistant thanks for replying so swiftly. I’ve tried the esp web thing and couldn’t get it to work. You mentioned another way to do it via chrome but you say to log in to something first it sounds like nebacasa or something similar…. Thanks again fella

    • @simonsayshomeassistant
      @simonsayshomeassistant  Год назад +2

      @@perfoperfo9910 yes I log into my home assistant using nabu casa must be on chrome browser. Then connect to ESP32
      I will create a video

    • @simonsayshomeassistant
      @simonsayshomeassistant  Год назад +1

      I also cant get webtools working

    • @perfoperfo9910
      @perfoperfo9910 Год назад

      Great stuff thanks mate. Nabu casa, ahh

  • @tckkkk379
    @tckkkk379 7 месяцев назад

    Hi, thank you for this tutorial. The picture coming to Home Assistant is upside down. How do I rotate it?

    • @tckkkk379
      @tckkkk379 7 месяцев назад

      esp32_camera:
      vertical_flip: False
      horizontal_mirror: False

    • @simonsayshomeassistant
      @simonsayshomeassistant  7 месяцев назад

      Awesome, thank you for answering that :)@@tckkkk379

  • @luizbarros2983
    @luizbarros2983 Год назад

    I did exactly as described when connecting the ESP32CAM with Esphome it detects the device, on the webserver I can control the led light but the images never appear
    There is some problem.
    Can you help me

    • @simonsayshomeassistant
      @simonsayshomeassistant  Год назад

      Hi Luiz, yes I have had that problem before too! I would suggest reloading the software to the ESP

    • @IronicoII
      @IronicoII Год назад

      @@simonsayshomeassistant hi ! I try but not working again . My home assistant detect esp32cam - in server led working - but not display images 🥲

    • @simonsayshomeassistant
      @simonsayshomeassistant  Год назад

      @@IronicoII It could be a faulty camera or perhaps the ribbon is not fully connected

  • @OGKenG
    @OGKenG 4 месяца назад

    Why do i need to log into Nabu Casa?

    • @simonsayshomeassistant
      @simonsayshomeassistant  4 месяца назад

      You don't have to log into nabu casa, any remote way to access you home assistant will work. Or just plug the esp32 into the machine running home assistant server

    • @OGKenG
      @OGKenG 4 месяца назад

      @@simonsayshomeassistant
      Ok. I was confused because you actually said to log in to Nabu Casa

    • @simonsayshomeassistant
      @simonsayshomeassistant  4 месяца назад

      Yes, that is just the way I was using to access HA by the cloud, I should have be more clear with my explanation@@OGKenG