esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
292 stars 36 forks source link

Bluetooth proxy - socket operation failed? #3895

Open skrilla0 opened 1 year ago

skrilla0 commented 1 year ago

The problem

Revieiwng the logs for my Atom Lite setup as a Bluetooth Proxy with HA, and receiving this error. Should I be seeing the socket operation failed error?


[INFO Reading configuration /config/esphome/m5-bluetooth-master-bedroom.yaml...
INFO Starting log output from m5-bluetooth-master-bedroom.local using esphome API
INFO Successfully connected to m5-bluetooth-master-bedroom.local
[09:00:21][I][app:102]: ESPHome version 2022.11.5 compiled on Dec 12 2022, 08:56:32
[09:00:21][C][wifi:504]: WiFi:
[09:00:21][C][wifi:362]:   Local MAC: 4C:75:25:E9:D9:3C
[09:00:21][C][wifi:363]:   SSID: [redacted]
[09:00:21][C][wifi:364]:   IP Address: 192.168.69.156
[09:00:21][C][wifi:366]:   BSSID: [redacted]
[09:00:21][C][wifi:367]:   Hostname: 'm5-bluetooth-master-bedroom'
[09:00:21][C][wifi:369]:   Signal strength: -81 dB ▂▄▆█
[09:00:21][C][wifi:373]:   Channel: 6
[09:00:21][C][wifi:374]:   Subnet: 255.255.255.0
[09:00:21][C][wifi:375]:   Gateway: 192.168.69.1
[09:00:21][C][wifi:376]:   DNS1: 1.1.1.1
[09:00:21][C][wifi:377]:   DNS2: 1.0.0.1
[09:00:21][C][logger:293]: Logger:
[09:00:21][C][logger:294]:   Level: DEBUG
[09:00:21][C][logger:295]:   Log Baud Rate: 115200
[09:00:21][C][logger:296]:   Hardware UART: UART0
[09:00:21][C][bluetooth_proxy:051]: Bluetooth Proxy:
[09:00:21][C][bluetooth_proxy:052]:   Active: YES
[09:00:21][C][safe_mode.button:022]: Safe Mode Button 'Safe Mode Boot'
[09:00:21][C][safe_mode.button:022]:   Icon: 'mdi:restart-alert'
[09:00:21][C][esp32_ble_tracker:796]: BLE Tracker:
[09:00:21][C][esp32_ble_tracker:797]:   Scan Duration: 300 s
[09:00:21][C][esp32_ble_tracker:798]:   Scan Interval: 1100.0 ms
[09:00:21][C][esp32_ble_tracker:799]:   Scan Window: 1100.0 ms
[09:00:21][C][esp32_ble_tracker:800]:   Scan Type: ACTIVE
[09:00:21][C][esp32_ble_tracker:801]:   Continuous Scanning: True
[09:00:21][C][captive_portal:088]: Captive Portal:
[09:00:21][C][mdns:103]: mDNS:
[09:00:21][C][mdns:104]:   Hostname: m5-bluetooth-master-bedroom
[09:00:21][C][ota:093]: Over-The-Air Updates:
[09:00:21][C][ota:094]:   Address: m5-bluetooth-master-bedroom.local:3232
[09:00:21][C][ota:097]:   Using Password.
[09:00:21][C][api:138]: API Server:
[09:00:21][C][api:139]:   Address: m5-bluetooth-master-bedroom.local:6053
[09:00:21][C][api:141]:   Using noise encryption: YES
[09:00:47][D][api:102]: Accepted ::FFFF:C0A8:4501
[09:00:47][W][api.connection:071]: ::FFFF:C0A8:4501: Socket operation failed: CONNECTION_CLOSED errno=128](url)

Which version of ESPHome has the issue?

11.5.2022

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2022.11.2

What platform are you using?

ESP32

Board

No response

Component causing the issue

No response

Example YAML snippet

esphome:
  name: "m5-bluetooth-master-bedroom"

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "!secret"

ota:
  password: "!secret"

wifi:
  ssid: !secret
  password: !secret

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "M5-Bluetooth-1 Fallback Hotspot"
    password: "!secret"

captive_portal:

dashboard_import:
  package_import_url: github://esphome/bluetooth-proxies/m5stack-atom-lite.yaml@main

esp32_ble_tracker:
  scan_parameters:
    interval: 1100ms
    window: 1100ms
    active: true

bluetooth_proxy:
  active: true

button:
- platform: safe_mode
  name: Safe Mode Boot
  entity_category: diagnostic

Anything in the logs that might be useful for us?

No response

Additional information

No response

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.