Help: Device keep getting "killed" =\ #680
Replies: 5 comments 17 replies
-
|
Do you need to make active connections to devices from this proxy? If not, I suggest setting In my experience with M5Stack ESP32 devices, when the active connection occurs the background BLE tracker functionality gets paused. The active connections can take quite a bit of time, causing this behavior. In my environment, I have some BT proxies set up explicitly for active connections and I exclude them from Bermuda. The proxies I use for Bermuda all have active connections disabled. |
Beta Was this translation helpful? Give feedback.
-
|
@drothenberger After a couple of hours with the recent config I am still facing devices becoming dead :( |
Beta Was this translation helpful? Give feedback.
-
|
Hi @YogevBokobza, sorry you're having trouble with the proxies and Bermuda! It looks like @drothenberger has got you set up with decent settings on the proxies (thanks David!), the interval/window of 320/300 was the main thing I was going to suggest there. Since you're on original esp32's there isn't much else to note on the esphome settings, as they don't tend to need much to work reliably. What version of ESPHome as you putting onto it? Have you owned these boards for a while or are they new? It might be worthwhile flashing the proxy with a USB cable instead of over wifi, in case esphome needs to re-partition the flash (this probably only applies if you have had a much older version of esphome on them previously). How does the wifi signal sensor look in HA for the proxy? If you use the history page you can add all the sensors for that esphome (which will have the uptime, wifi etc) and set the date range for a few hours or whatever looks interesting, and post a screenshot of that. Also you could attach a "download diagnostics" from Bermuda, which will let me see some more info on what data HA is receiving, and lists what integrations etc are running in case anything stands out. Another thing to try is to run some "ping" tests, as a very simple check for how well the wifi is performing. From a linux terminal you'd run I'm heading for some sleep now so won't be around for a while, but that might give you some things to look into until then 👍🏼 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the diags and the wifi signal graphs. The wifi signal strength looks pretty good, but yes, the gaps in the readings for "entrance presense" proxy does look bad. Maybe see if the power supply for that proxy is perhaps unreliable, or if something might be causing intermittent interference on it, such as another wifi device within a few cm of it, or maybe something that would cause glitches on the power supply. That said, if it's only that one proxy that displays that problem then it won't be your wider issue.
Do you mean if you delete the entities for the beacons you have set up, then they get re-created when you restart Bermuda or HA? If so, this is because Bermuda does the device creation thing a bit differently - if you want to remove devices, you need to go into Bermuda's configuration, then "Select Devices" and remove the items from there. Otherwise deleting the device or entity in HA will just result in Bermuda re-creating it on next restart.
Great, that shouldn't be an issue then.
You have a device named "Mamad Presense" which looks like it's an esphome with proxying set up, but weirdly it isn't detected as a scanner by Bermuda, even though it has a couple of (very old) advertisements received by it. Was this device removed a few minutes before you did the diagnostics, perhaps? Other than that, I can't see why your scanners would show up with skulls at least based on the data in the diagnostics. It clearly shows that Mamad (if in the list at all) would have a skull next to it, Mini-PC, Salon and Enterance would have exclamation marks (for being over 2 seconds) and Room and Kitchen would have checks. Here's the data on how many adverts each scanner received in each preceding second before the diags were taken: Can you send a screenshot of the issue? Or has the issue changed now and the initial report no longer reflects what's going on? Given the wifi situation with Enterance I'd expect it to show skulls whenever it's dropping out, but that appears to be an issue isolated to that scanner, is that right? |
Beta Was this translation helpful? Give feedback.
-
They show up there because they're bluetooth proxies, they're meant to.
why are you doing that? |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
Need help to figure out what I am doing wrong..
I have a bunch of original ESP32s across my rooms.
I am keeping seeing the skull and crossbones icon on them (exceeding 10s).
This is the current configuration I have on them:
substitutions:
name: kitchen-presence
friendly_name: Kitchen Presence
comment: ESPHome proxy tuned for Bermuda
name_add_mac_suffix: "False" # Adds the last 4 characters of the MAC address to the name.
baud_rate: "0" # If you need serial debugging, override this to 115200 or similar.
ble_interval: 1000ms #320ms
ble_window: 700ms #80ms #300ms
proxy_active_scan: "False" # Set to false to avoid requesting scan info for device names etc
proxy_enable_outbound: "True" # Allow HA to make outbound connections via this device
esphome:
name: ${name}
friendly_name: ${friendly_name}
comment: ${comment}
name_add_mac_suffix: ${name_add_mac_suffix}
esp32:
board: esp32dev
framework:
type: esp-idf # This is important: the default "arduino" framework does not perform well.
sdkconfig_options:
# @grigi found in testing that these options resulted in better responsiveness.
# BLE 4.2 is supported by ALL ESP32 boards that have bluetooth, the original and derivatives.
CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y
# Extend the watchdog timeout, so the device reboots if the device appears locked up for over 10 seconds.
CONFIG_ESP_TASK_WDT_TIMEOUT_S: "15"
logger:
baud_rate: ${baud_rate} # 0 Enables logging, but disables serial-port logging to free CPU and memory
api:
encryption:
key: "SOME_KEY"
esp32_ble_tracker:
scan_parameters:
continuous: true
active: ${proxy_active_scan} # send scan-request packets to gather more info, like device name for some devices.
interval: ${ble_interval} # default 320ms - how long to spend on each advert channel
window: ${ble_window} # default 30ms - how long to actually "listen" in each interval. Reduce this if device is unstable.
# If the device cannot keep up or becomes unstable, reduce the "window" setting. This may be
# required if your device is controlling other sensors or doing PWM for lights etc.
ota:
password: "SOME_PASS"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: none
bluetooth_proxy:
active: ${proxy_enable_outbound} # allows outbound connections from HA to devices.
safe_mode:
button:
platform: restart
name: "Restart"
entity_category: config
platform: factory_reset
name: "Factory Reset"
id: Reset
entity_category: config
platform: safe_mode
name: "Safe Mode"
internal: false
entity_category: config
sensor:
platform: uptime
name: "Uptime"
id: uptime_sensor
update_interval: 120s
entity_category: diagnostic
internal: true
platform: wifi_signal
name: "WiFi Signal dB"
id: wifi_signal_db
update_interval: 60s
entity_category: "diagnostic"
I tried many different values for ble_interval and ble_window, but nothing helps..
Please help :)
Beta Was this translation helpful? Give feedback.
All reactions