esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

bluetooth_proxy does not work with ESP32 camera if Arduino is used on 2022.12.x #3907

Open PetrMa opened 1 year ago

PetrMa commented 1 year ago

The problem

Hi,

today morning I made an upgrade of esphome to the latest version [v2022.12.0].

After the upgrade (some esp32 was upgrade by OTA, some by cable) some ESP32 modules stopped working. After each reset the WiFi module is OK and ESP32 pinging in local network but after aprox 30 second the ping is lost and device stopped responding.

My configuration of ESP32 devices includes configuration of ESP32 camera and bluetooth_proxy together. If I delete bluetooth_proxy setting from config and leave only the camera settings, everything works fine. Also if I delete camera settings from config and leave bluetooth_proxy settings, everything works fine.

But both of these settings, camera and bluetooth_proxy in one configuration cause the device is stopped working on network after 30-60 seconds.

Before today upgrade to version [v2022.12.0] there was no issue.

Which version of ESPHome has the issue?

2022.12.0

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2022.12.5

What platform are you using?

ESP32

Board

No response

Component causing the issue

bluetooth_proxy

Example YAML snippet

esphome:
  name: esp32-cam2

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: !secret api_password
  encryption:
    key: !secret encryption_key

ota:
  password: "....."

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp32-Cam2 Fallback Hotspot"
    password: "......"

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

# Image settings
  name: Kamera předsíň
  resolution: 1600x1200

# Flashlight
output:
  - platform: gpio
    pin: GPIO4
    id: gpio_4

light:
  - platform: binary
    output: gpio_4
    name: Kamera předsíň Light

button:
  - platform: restart
    name: Kamera předsíň Restart
    id: esp32_cam2_restart

binary_sensor:
  - platform: status
    name: Kamera předsíň Status
    id: esp32_cam2_status

sensor:
  - platform: wifi_signal
    name: Kamera předsíň WiFi Signal
    id: esp32_cam2_wifi_signal
    update_interval: 60s

  - platform: uptime
    name: Kamera předsíň Uptime
    id: esp32_cam2_uptime

bluetooth_proxy:
  active: true

Anything in the logs that might be useful for us?

No response

Additional information

No response

PetrMa commented 1 year ago

When the connection lost, I´ve got the same error as mentioned there https://github.com/esphome/issues/issues/3897

PetrMa commented 1 year ago

Update: Rollback back to 2022.11.5 solved the issue.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dersch81 commented 9 months ago

Any update here? I have the same issue with activated bluetooth_proxy: (not other options) on all ESP32 Cam Modules with 2023.10.6 (also before that version)

GiorgosPap777 commented 3 months ago

I have some great news! I tried to make the esp32-cam a Bluetooth proxy as i am running Home Assistant in a docker container and i don't have a Bluetooth dongle. I made it work by removing the sd card and pressing the RESET button before even you click the blue "connect"(URL for the page: https://esphome.io/projects/index.html) button. After it is finished you re-do the process but now there a new option has appeared which says "connect to wi-fi". you click it, connect to wifi. REMEMBER that patience is key! You may have to redo this 1-2 times. NEVER GIVE UP