Bermuda - Bluetooth/BLE Room Presence and tracking [custom integration]

Yeah, I dont know. It’s why I wrote “I suspect”. Just trying to eliminate possibilities.

Bermuda itself doesn’t do anything “beyond” Home Assistant, so it won’t affect the work that the proxy has to do.

I’d be surprised if the Hue bulbs adverts are causing an issue either, advert traffic is tiny by wifi standards, and the proxy is going to prioritise an outbound connection over advert gathering anyway.

Your esphome yaml however may have some effect. If you have modified the window and interval timings in the yaml (or by using my external_component then you could try changing that back to the defaults for a single proxy. Other things to check are:

  • Make sure you’re using esp-idf, not arduino.
  • Make sure you have flashed the proxy via usb/serial at least once since ~ 2024-06
  • Look for other components in your config that might cost the proxy a lot of cpu time or memory (web server, non-ledc pwm, neopixels, displays, templates or local ble components etc)

Even though it’s not really a Bermuda issue, feel free to post your yaml here and I can just check that there’s nothing that stands out as being likely to cause an issue, but otherwise I think you’d need to pursue troubleshoot from the switchbot side of things, at least to start with.

In the bluetooth integration, it will show you how many “slots” your proxies are using as well, if those are getting maxed out that might be causing issues, if each proxy is trying to connect out to multiple devices etc.

1 Like

Thanks for this. You made me realise there were some settings in Bluetooth. I just turned off “passive scanning”, and it’s now instaneous. Appreciate it.

1 Like

Great! This might be something worth adding to the documentation if you’re feeling particularly motivated :slight_smile:

I’m trying to move from Espresense to Bermuda in my camper and am having a problem limiting the scanner radius.

I have one scanner (not a big camper) and currently, it tracks devices as home at a really long distance. I have my radius set down to 4m, but it’s still showing home at 30+ meters. What am I doing wrong here?


Is it possible to filter on the number of clients connected to a proxy? I only want to turn off the basement lights when no clients are connected. Can’t seem to find this in the thread, or I’m using wrong keyword.

Not directly I think. But you might create a template sensor to count the devices which are in an area:

{{ states.sensor
    | selectattr('state', 'match', 'Dachboden')
    | list
    | count
}}

It will output the number of BLE devices which are located in the area “Dachboden”.

3 Likes

This is effectively the same thing as what they asked because of how Bermuda operates. It potentially be flappy but should work.

1 Like

Thanks!
I’ll give it a try. For my area ‘Buiten’ it now outputs 2, while i’m pretty sure it is only 1. I’ll try and experiment a bit with it.

You can filter the output in your template. Trap what’s your on state and off state and boil down to a true false binary sensor.

1 Like

Hi. I am noticing these 2 device tracker entities change state in different time intervals. The lower one changes about 4 mins after the top one changes. I have 3 other devices setup (iphones) and all act the same way. Why is this so? Is there a setting I need to tweak?

The upper one “Bermuda tracker” is provided by Bermuda, and its timeout value is configured with your devtracker_timeout setting in Bermuda. The lower one I am pretty sure is provided by the “Private BLE Device” integration (as is the “estimated distance” sensor) and has a hard-coded timeout value.

Otherwise they should perform identically.

ok. thanks. I will use the top one and disable (hide) the lower one.

Hello. Just want to know if anyone can aide or have experiencing this on iphones. I have iphone 15 and have added the irk to private ble device. I have 2 scanners setup atm and the radius is set to 70.
The iphone will jump into unknown for several hours at a time even though the iphone is 1 meter away from the scanner when the iphone is sleeping. If I go and use the iphone, it jumps to the location. I don’t think is a Bermuda issue but the iphone or it’s settings. The iphone firmware is update.

So i only have two tracking sensor, a ESP32 and a Shelly. Both in the garage in different areas, one near my workbench the other near laundry machine. I want to track when I am only near my workbench but it seems no matter how small i set the area it still thinks I am close to my workbench.


could it be the estimate distance?

I believe there is an issue with the max distance setting. But perhaps you can tweak your scanner offsets.

I’m only just starting my journey down the HA rabbit hole, but since one of the things I needed required setting up BT Proxies, I’m thinking I may get a few more and play around with the location sensing functions. To that end, had a couple quick questions:

First and foremost, I’m currently running on an HA Green. How much CPU power does Bermuda need, and is that affected by number of proxies or the like when trying to do the room tracking functions?

And the second question, how many BT Proxies are needed to be effective? In my case, it’s a 2 story house with 4 rooms up (5 with bathroom), and 6 rooms (8 with half bath and garage) down in a fairly open floorplan. I’m assuming I’d ultimately want a BT Proxy in each room? For most of the rooms, I can likely position the proxy in a place where if you’re within 2m of the proxy, you’re in that room, so hoping that would help with accuracy.

I never even noticed I turned it on, and plan on one at least every 30’/~10m. I see up to about 75’ on a single proxy

Remember Bermuda is not trilaterating if yih want that youll also need BPS with Bermuda only you will get basically what amounts to last ping to closest station. As long as you plan for that it’s fine. So the answer to your question is using that mechanic… How many do you need? (prob one per room you’re concerned with) if you do get trilat working then it’s basically about how many you need to cover the area reliability. For me, that meant at least one in every room, trying to space them evenly around the home as much as power outlets allowed. Two in the Kitchen and two in the Living room (big old open concept so I had to treat it like four zones, two each for each room)

2 Likes

Well, that shows one thing I hadn’t understood from trying to read this thread. :slight_smile: I didn’t realize BPS was a separate addon to Bermuda.

1 Like

Dropping in to say this is the coolest damn integration and I’m so glad you made it, @agittins. Been trying to figure out how to accomplish this on-and-off for a while and somehow only just discovered Bermuda today. To your credit, @agittins I was up and running in minutes. Couldn’t have been easier (unless it was originally packaged with HA! … hint hint HA devs…).

Thank you for making it! Appreciate you.

1 Like