#bluetooth-archived

1 messages · Page 5 of 1

fringe field
#

one way you could get it is with espresence or another ESP32 firmware using the nimble stack (not bluedroid like esphome) - and then doing a BLE "pair". espresence will dump it to MQTT which means a lot of setting up.

#

other thing is - no idea what the broadcast rate is for android

#

i get a broadcast every few seconds with iPhone

alpine grove
fringe field
#

Are they are all iBeacon apps?

#

I know iBeacon and Ha and android do not mix well

alpine grove
#

I am an apple user.... 🤷‍♂️

fringe field
#

Same

#

Aiui Espresence doesn’t use irk for Android by default

alpine grove
#

I gave the new private stuff a spin today and love it. Accurate and on target.

sand light
#

Hi! Thank you for taking the time to answer me! Actually adding up all these little problems I realize how much more complex the problem is than it seemed. Let's say that in my use case some of these problems would not occur since I use units that are all the same (ESP32 development board) which are therefore quite uniform in their behavior. I realize, however, that actually having to make the support as cross-cutting as possible opens up a lot of problems. I think I can help if needed, but of course there is seeing what the community thinks. I am doing very well with esppresense really, maybe it would be easier to bring that project to a more precise integration with HA rather than the other way around. Thanks anyway for all your work and support!

Translated with www.DeepL.com/Translator (free version)

#

Thank! What kind of card is that? I saw that using the template inside the developer tool creates a yaml for a custom card. But I don't really have a good idea about using the template in the first instance

fringe field
#

It would be nice if espresence was better integrated. I don’t really want to have to set up mqtt. Esphome doesn’t use mqtt. And i use esphome proxies, I don’t really want double the amount of esps…

#

But a custom integration could do more with the data we are collecting. We do have the data as seen by all proxies. So you could (if you knew positions of proxies) probably do more with the data we already have.

sand light
#

Yes the main problem with espresense is precisely that it is a bit of a stand-alone. I also wonder how long mqqt-room will stay inside HA. Anyway, confirm with me if I understand what you are proposing: A custom integration that using the data already provided by your integration would allow you to implement the behavior I was proposing? So that you leave the current integrated implementation cleaner and add the functionality of your choice.

fringe field
#

Custom component doesn’t have to follow best practices so it’s easier to experiment and find out what works best.

#

What id like to do is add a sensor to every iBeacon and private ble device that showed the current area. But I don’t know how well that would work in practice.

atomic jetty
#

Can I use the Samsung Watch to track presence accross the house?
I have 3 esphome devices with esp32 and they are configured as a bluettoth proxy.
I understand that if I get IRK for the watch that would be possible. But does the Samsung Watch have this?

sand light
#

Does the watch use Tizen Os or Android?

atomic jetty
#

Android

#

What is a good app for scanning bluetooth beacons?

faint eagle
#

I like nrfconnect and kbeacon

cosmic raptor
ashen hinge
#

Not sure if this has been discussed, but I’m not seeing my iPhone listed in my Keychain Access app on my Mac. I found my watch and got that working, but no there’s not an entry in the app for my iPhone.

ashen hinge
#

Might just install espressense and get it that way

fringe field
cosmic raptor
#

seen some more values
93m | 4.0dBm
201m | 4.0dBm
400m | 4.0dBm
0m | 12db
I can't make any sense out of it

fringe field
#

Would be good to get distance, signal strength, tx power, actual distance

#

Can probably make a template sensor that inverts the calculation based on a fixed distance and signal strength and then gives you tx power. Then you put your phone at 1m. Then we see how wrong it is.

#

It could also be backend related. Tx power is poorly documented.

cosmic raptor
#

thats what I see in influx, both are pretty much all the time by my side. always within 20m max range from any node with the exeption on 06/10 around 16:00 where I left home

#

will of course collect further

fringe field
#

Huh

#

So the spikes coincide with a lack of tx power?

#

But only for the mb

#

Ugh

cosmic raptor
#

Yes, macbook is way off but I seldom get >1m reported for anything but the watch

ashen hinge
oblique oak
fringe field
#

We are definitely seeing -127 from somewhere which is surely wrong?

spark cairnBOT
#

@oblique oak I converted your message into a file since it's above 15 lines :+1:

oblique oak
#

I think that might be the cause but I don't have a good test case

fringe field
#

That would fit

#

That feels pretty safe as well

#

Worst case we get a different wrong distance

#

I was also thinking about storing the last fallback interval against the irk so I can restore it quickly when you come back home (had a case where it didn’t re-calibrate quickly)

oblique oak
#

@cosmic raptor can you try the above patch?

cosmic raptor
#

added it to /usr/src/homeassistant/homeassistant/components/bluetooth/base_scanner.py in my container and restarted, hope thats right

#

it at least started

oblique oak
#

Yup

open moth
#

is this related to the new bluetooh BLE Private Tracker? I have my apple watch and iphone setup using 3 of Olimex as bluetooth proxies, the distance on my iphone is always 0.0 - 0.5 no mater how far i am, apple watch seems to report more accurately. The home away seems to work correctly.

cosmic raptor
#

patch should be applied with these

fringe field
#

Interesting

#

MacBook was being silly until tx power was seen

#

But then it’s not forgotten the tx power since

#

But if it takes that long to see the tx power that’s a problem

#

Most of the day without a tx power for your phone

cosmic raptor
#

It swings back/forth to 400m spontaneosly when going in standby or rebooting the machine

#

The lack of tx power might be because it didn‘t change and influx just records changing points?

fringe field
#

Ah

#

Can you show the graph from ha

#

Or do you have recorder off?

cosmic raptor
#

Tx only?

fringe field
#

Yeah

cosmic raptor
#

the gaps are definitely when I'm not home

fringe field
#

Ok that’s good

#

The tx power caching won’t work when the Mac rotates or on start up

#

So might still see distance weirdness in that case

#

If that’s a problem we’d have to remember the last tx power we saw by irk rather than Mac and that would be not a nice refactor

#

Probably just not show a distance in that case instead of spinning the randomiser

oblique oak
coarse oasis
# cosmic raptor

hey what is app really want thatone what is app please iMac or Mac Mini no matter if can use app on iphone or ipad that fine. i like thatone. thanks

coarse oasis
# cosmic raptor

have a question do have Window app also ? if have i can let my friend know about that. thanks

untold ermine
oblique oak
#

I'm not sure how it flashes the parition table. The risk is that NVS is too small and can't cache services so connections would be slow

untold ermine
#

I assume how that OTA install works is that custom OTA flasher sets up a partition table and flashes tasmota. Then from Tasmota you can install ESPHome (which I've done many times before)

#

However, that partition table stays the same all throughout and the guy who wrote the OTA installer just meant to have it used by Tasmota

#

So I guess I'm worried that partition table won't work for Tasmota long enough for me to get ESPHome on it?

iron frost
#

You can't get esphome on Tasmota with the new partition scheme, they're not compatible and esphome can't change partitions dynamically after a flash

burnt violet
#

Question for here! (maybe): Anyone have any idea on why my Bluetooth proxy seems to work for a few minutes then suddenly go offline/unresponsive?

#

(Using ESPhome's BT Proxy)

cosmic raptor
#

Where do you see „offline“?

burnt violet
#

In ESPHome's dashboard, and the logs won't connect via wireless. The Wifi is connect, I've confirmed that a few times

cosmic raptor
#

is your dhcp alright? they don't hop addresses do they?

burnt violet
#

Hmmm. Well, they don't seem to wanna connect to HA via Wireless. I can only snag logs off the USB connection. Unifi shows them offline as well which is odd

untold ermine
#

I assume you meant the new Tasmota partition scheme?

#

Like I think everything works fine out of the box. It sets up the partitions, flashes an older version of Tasmota (11) and then from Tasmota you can flash ESPHome. It's just that this partition scheme used by this custom OTA seems to be a little limiting for use with BT proxy

#

So it seemed like @oblique oak was suggested to use a different partition scheme

#

I'm just wondering if that's going to be compatible with Tasmota 11 because if it isn't then you're never going to get a chance to flash ESPHome

iron frost
#

no it wont be, you'll likely need to flash it over serial to get full bt proxy functionality

untold ermine
#

I don't know why bdraco would have even mentioned that partition table for ESPHome in relation to an OTA that's only for flashing Tasmota if it wouldn't work for Tasmota

iron frost
untold ermine
iron frost
#

ok man, seems you know more than us

untold ermine
#

lol I mean I'm just asking for you to explain

iron frost
#

lol indeed

untold ermine
#

Will see if bdraco responds on the forum. In the meantime will prep for the case of needing to split open the plug which unfortunately seems welded

fringe field
#

(So it’s become something of a habbit when helping people with connection issues to check they have flashed by serial recently and have the right partition layout)

iron frost
#

technically you could resize the partition from tasmota to fit other firmware, like esphome, requirements but noone has done it yet

untold ermine
#

I was actually planning on flashing some other plugs I had to use them as proxies when I realized they were only esp8266 (S31's)

untold ermine
#

Hence why there's the advice to flash ESPHome serially to change the partition

iron frost
#

Funny, you answered your first question with the second one

untold ermine
iron frost
#

because its not... capable.. of doing that

untold ermine
#

Sorry let me break it down more, I thought it wasn't possible for firmware to do that and that should be a feature ESPHome adds

fringe field
#

Huh

iron frost
#

thats a weird definition of breaking it down

untold ermine
#

sure

#

Anyways I'll take that question over to the ESPHome server

cosmic raptor
#

It just gets more confusing

untold ermine
#

Sorry, what's confusing?

latent mirage
#

Hi,
i just buy LED Bluetooth RGB + CW + WW
How to add it to Home Assistant.
Which i need devices for that.

burnt violet
#

Does your Homeassistant “hub” have Bluetooth? What brand is the strip?

median pier
#

Anyone have Airthings BLE working? I've been running the Airthings MQTT integration and tried to use the BLE integration and it couldn't find my Airthings Wave+. Switched back to MQTT and that works

devout hearth
#

I'm using Airthings BLE, but it's all I'm using, never even installed the app, iirc.

spark cairnBOT
#

@zenith marten I converted your message into a file since it's above 15 lines :+1:

hidden oasis
#

I'm looking to get a bluetooth proxy to get my Ikea Idasen desk hooked up to HA. Can I use a M5Stack Atom Echo Smart speaker for this? Since then I can also play around with wake words

fringe field
fringe field
zenith marten
#

That seems a little weird since manually running the scan on command works just fine

iron frost
#

I wouldn't use it for both if you plan on listening to wake words

fringe field
#

Same. I have dedicated proxies.

iron frost
#

Just get a 3$ ESP32 board for proxy duty

fringe field
zenith marten
#

Ah that's fair

fringe field
#

USB Broadcom is normally well supported (if haos has the right firmware for it) but I think Mac built in is less so.

zenith marten
#

That sounds possible lol, mac stuff usually requires some specific drivers

fringe field
#

There is a list of usb dongles on the documentation site for Ha that were tested with haos and don’t crash all the time.

zenith marten
#
Bluetooth USB Host Controller (05ac:8218)
by Apple Inc.

This is what HA reports

zenith marten
#

Thanks!

fringe field
#

The probably is HA requires bluez and the kernel to actually work. Where as most typical desktop use cases it “nearly working” is about the best they can seem to do.

hidden oasis
fringe field
#

Yeah

hidden oasis
#

Perfect, I'll just order an echo then :-), first as a toy, then as a functional device 😄

fringe field
#

So i haven’t played with that device in particular but assuming it has a usb port you can flash it to your hearts content.

fringe field
#

The best Bluetooth proxy is dedicated , connected by Ethernet and not WiFi, and has a good antenna

#

Every step away from that will have an impact

hidden oasis
#

Well to be fair, it'll only (at first) control my standing desk that my HA device actually rests on

#

And if it doesn't work properly, I can always go full wakeword with it I guess

iron frost
#

those requirements don't ask for a top notch proxy

hidden oasis
#

It's just my first step into ESP32 and Bluetooth 🙂

#

And messing about with the wakeword first is just a plus 😄

median belfry
#

How can I use a Philips Hue Bulb with Bluetooth, without having a Bridge?

I tried the Hass Emulated Hue, but that doesn't seems to be a valid Bridge for my Hue Bluetooth app

tame wharf
#

Don't think it works with HA via BT. The bulbs need to be paired afaik.
With a Zigbee stick they can be controlled.

median belfry
#

Hmm

#

Might be easier to go for a real bridge anyways

#

Will be easier to connect our bulbs to Harmony Hub and Google Assistant, I assume

sinful escarp
#

Does anybody else have issues with yale bluetooth integration after updating HA OS to 11? HA keeps connecting but cannot establish connection to lock. Tried to reboot ha, lock, and delete & reinstall lock.

oblique oak
clear stratus
#

i deleted proabbly hundredsof bluetooth le tracker devices from known_devices.yaml over a week ago and theyre still showing up in my HA, slowing down my system, and being tracked, despite not being in the yaml. is there any way i can delete these?? last time they deleted just fine so idk what the issue is

oblique oak
#

That integration needs to be converted to a config flow. It needs a maintainer. Honestly I would avoid it until someone picks it up. Private ble device is a much better solution

fringe field
#

I’ve not had time but I’ve started a discussion with upstream (bleak) so that we can tell the difference between completely random and static Bluetooth addresses. I’m hoping that will stop Bluetooth le tracker from creating quite so many useless entries (your phones and watches and stuff are probably going through 96 MAC addresses each a day). But it’ll need converting to config flow first. And I don’t really want to maintain it (I don’t use it)

faint eagle
#

That sounds like private ble could be used for non public advertisements. Is that so?

clear stratus
fringe field
#

I don’t know how that applies to your use case

woven orbit
#

hi all, i was getting ready to take a look at the new "private BLE device" integration, and i was wondering if someone could point me to the current best way to get my device's (iPhone and watch) IRK if i don't have access to a Mac?

fringe field
paper jolt
#

I have also been researching setting up ble room detection. Trying to figure out the recommended way forward. I have all iPhones so I would like to use the private ble device integration. I have found espresence. Also BT proxies. Which is the recommended method or is there another path I should take?

woven orbit
#

The only other solution I found involved a GitHub that’s all in Chinese and random iPhone apps lol

paper jolt
#

Which esp32 device are you using? I just got the atom last night to play with.

#

Although he is only using one device.

#

I think things get more difficult with multiple Apple devices

#

I would prefer to use a native integration over MQTT. I am not sure if private Bluetooth integration works with mqtt

woven orbit
#

i would love to just add the BTLE tracking to my existing ESP32s around the house that i'm using for temp/presence/etc, but if i'm reading right you can't do that? soemthing to do with the wifi and BT fighting

faint eagle
cosmic raptor
#

very interesting

paper jolt
#

Does the Olimex ESP32 Power-over-Ethernet ISO have to be powered by POE? Can I plug it into Ethernet and power it with usb?

#

I am thinking about powering it off the USB on my router and plugging it in to one of the Ethernet ports?

#

My router doesn’t have poe

devout hearth
#

Yes, you can power it with USB.

paper jolt
#

Thank you. USB C I am guessing

devout hearth
#

Don't think so, micro iirc.

paper jolt
#

Auh. Even better

devout hearth
#

Also, there is a 3D printable case available, but it doesn't fit the latest board revs well or have an opening for the USB cable.

paper jolt
#

Just going to connect it to my router somehow 😜

#

3 routers / 3 Olimex I figure is a pretty good start to esp proxies

faint eagle
#

Do you plan on getting a poe switch? Do they have a non poe version? Could also get a poe injector if you want to put it far from a power source

paper jolt
paper jolt
faint eagle
#

I think I misspoke. The ISO version would let you power with Poe and also plug in usb at the same time

paper jolt
#

for my edification, what does ISO stand for?

#

in this context

faint eagle
#

Isolation I believe

#

These are on my list to buy and struggled to find out what it meant for a layperson like myself.

paper jolt
#

I need to do some research myself. I always try and narrow search terms here. thank you

woven orbit
paper jolt
#

Let me know how it works out. I haven’t played with the private ble integration. My initial assumption was it didn’t use MQTT though. Now that I have the espresence node working, I am thinking that blue tooth proxies will work both with the private ble integration as well as act as Bluetooth proxies, I don’t think that espresence will.

woven orbit
#

Yeah that’s the first I heard about Bermuda, gonna have to read up

fringe field
#

Espresence can’t be used as a proxy which was the other reason. I didn’t want to double up on esps.

#

All BLE stuff that’s core in HA will work with HAs Bluetooth proxies.

paper jolt
#

Thank you for confirming my suspicions. The UI in ESPresence is nice for finding the IRK. Is something similar on the road map for private ble? Also, I haven’t taken a deep dive into ESPresence yet but I understand you can tune the distance for detecting devices which makes it nice for room detection. Is this something private ble can do? I am not sure I really need Bluetooth proxies right now as I don’t have any Bluetooth devices. Having Bluetooth proxies would be nice though if I could get the same functionality with private ble.

fringe field
#

I have toyed around with making a version of the espresence firmware that is stripped down and just for capturing irks, but having to flash an esp just for that seems like I’m heading down a UX/UI dead end

#

Hopefully someone will find a better way to do this.

#

Private Ble device was honestly made to “scratch my own itch”. I wanted reliable “is any one home” detection. It’s not meant to be a full per room presence detection system.

#

And I didn’t want to deploy double the number of esps

#

(I already have lots of sensors that happen to be Bluetooth, plus I’m the HomeKit device maintainer)

#

That said I am hoping to add an area sensor next month if I have time. And calibration would nice too. I have spoken to the Bermuda dev briefly because I hope some of that work can go into core in my integration, and maybe even the main ble tracker integration and iBeacon integration.

paper jolt
#

Awesome. Thank you.

open moth
#

Hoping someone can help answer I have three Olimex POE device and got my Apple Watch and iPhone as Private BLE Trackers. My watch seems to update distance reasonably accurate but my iPhone always shows something like .2 or .1

gritty gulch
#

Home Assistant 2023.10.3
Supervisor 2023.10.0
Operating System 11.0
Frontend 20231005.0 - latest

#

I've been stuck for several days trying to read bluetooth data from my Atmotube. I can successfully read data from Atmotube via python bluetooth script, from the HA terminal, and I can scan devices in HA using this code: https://pastebin.com/xs7ZAfR9

#

So I know bluetooth and my device are working fine

#

But when I try to actually read data using this code https://pastebin.com/FW0GZM4p (I've tried MANY variations) I get:
bleak.exc.BleakDBusError: [org.bluez.Error.Failed] Operation already in progress
bleak.exc.BleakDBusError: [org.bluez.Error.Failed] br-connection-canceled

#

I'm stuck

fringe field
fringe field
#

Generally we see reports of “operation already in progress” on Realtek chips or intel nucs. Usually switching to a dongle from the documentation clears that up.

#

And connection cancelled is when bluez (the Linux Bluetooth stack) can’t connect because of driver or signal strength issues.

gritty gulch
woven orbit
sharp moth
#

how does LED BLE works?
it only looks for name?
i bought some BTF-LIGHTING usb powered bluetooth leds.. it is detected by bluetooth proxy - i get MAC address and name of the string (example - STRING-9D3783)
is there a hope? 😛

fringe field
#

There are 8 prefixes it looks for in the name

oblique oak
#

There are three different major sets of china originated Bluetooth LED lighting protocols. LED-BLE supports ones made by Zengee or cloned from their protocol which are the most common. The other two protocols lack integrations

#

some of the BTF stuff uses the Zengee based protocol, some of it uses one of the other two that are not supported

#

If its not showing up its probably one of the other two

#

I have a box of devices that support that other 2 protocols but I haven't had the time or inclination to add support for them

gritty gulch
#

I purchased a new bluetooth adapter from the top section of the compatible list (Panda Wireless PBU40) but I'm seeing the same error (the built-in bluetooth module is disabled):
bleak.exc.BleakDBusError: [org.bluez.Error.Failed] Operation already in progress
bleak.exc.BleakDBusError: [org.bluez.Error.Failed] br-connection-canceled

I can connect to the Atmotube from an ssh session on the HAOS server and any other device, except through home assistant. Again I've tried many, many different types of python routines to connect to this device via bluetooth to read data in home assistant over the past several days, without success. I would appreciate suggestions. Here's one of the example scripts I've tried: https://pastebin.com/FW0GZM4p

oblique oak
#

If it’s HAOS 11 you might need to downgrade to 10.5

#

Otherwise wait for the 11.1 fixes

#

If you need something quick a Bluetooth proxy is a better choice

neat hull
#

(but with added quotes around dbus line)

rotund sail
#

Found at /docker/home-assistant since that's where you mapped /config to

neat hull
#

is it worrying that I have no such file? Is it something the gets created when I manage a complete docker compose up?

rotund sail
#

Yes, until HA starts no files will be created

#

Same as for every other Docker container

neat hull
#

maybe I should start from the beginning then. this is what happens when i run docker compose up

#

bluetoothctl works and i see devices with it

#

add bluez and dbus-broker to my host system?

neat hull
#

All right, i wasn't clear on whether it needed to be inside the docker or not, as you might have noticed, i'm not "good" at this 🤡

#

thanks 😄

rotund sail
#

Nah, that's all host stuff

#

You almost never need to be "inside" the container, any container

neat hull
#

ok, gotcha

#

not sure if i have a nixos problem or not, with bluez and dbus-broker added to my config, compose up still hangs at the same place

rotund sail
#

up never detaches, you want up -d

neat hull
#

oh god lol

#

ok, so ha is up and running, still got bluetooth issues

#

ah, but they have a handy link for common problems and docs

fringe field
#

So hey

#

Remember that haos has a bunch of fixes and things that might mean things don’t work as well for you

#

Including a different dbus broker to what most distros ship, newer bluez than most distros ship, and I think extra firmware as well.

#

Conversely Nix might make it easier to pick up the regressions from haos is currently battling.

#

So you can’t win right now basically

#

But if things are screwy and it’s easy to change kernels and bluez with nix, try looking at the versions haos is using on its dev branch

neat hull
#

I don't have a real need for bt (i had forgotten that all my lights are hue controlled, so they are over lan anyway), so I guess I'll take that battle once I decide to make either a raspberry pi run only haos, and so can customize to fit home-assistant

#

or hope haos changes something ponder

gritty gulch
#

I don't know why I didn't think of this before, but couldn't I use a command line sensor to run my python script to read data via bluetooth? That always works from the shell.

fringe field
#

Without knowing what is wrong on your system to make bluez error, can’t say.

#

It could be there are enough Bluetooth advertisements around you that bluez is getting overwhelmed.

#

So if your cli sensor doesn’t use bluez, maybe, if it does then no.

#

You could try it and see?

spark cairnBOT
#

@gritty gulch I converted your message into a file since it's above 15 lines :+1:

gritty gulch
quaint falcon
#

Im looking for a simple media player that will allow me to play some mp3 sound effects on a bluetooth speaker whenever someone rings the door bell halloween night. Any suggestions. I've been fighting with vlc for two days and have lost patience with it.

gritty gulch
neat hull
#

hey y'all. Im readin this https://hacs.xyz/docs/setup/download and it says Change directory to your Home Assistant configuration directory would that be ~/docker/home-assistant/ or some other folder?

#

im dumb, i found it, its in /docker/home-assistant not in ~/docker/home-assistant....

#

never mind me

maiden thistle
#

I am using a computer that has built in BT and I want to use a dongle for better range. Do I need to disable the built in Bluetooth?

#

With HAOS

fringe field
#

You don’t have to. Ha supports multiple dongles at the same time.

#

Before we had Bluetooth proxies one of the things we used to do was usb over Ethernet or usbip so that you could cover your house in dongles and connect them all to HA

neat hare
#

I get this from MQTT explorer:

And uses this to create a sensor:

sensor:
# One entry for each beacon you want to track
  - platform: mqtt_room
    unique_id: iBeacon:d546df97-4757-47ef-be09-3e2dcbdd0c77-53552-9779
    device_id: "Draabe"
    name: "Draabe"
    state_topic: "espresense/devices/Draabe"
    timeout: 10
    away_timeout: 30

What am I doing wrong ? - Still getting not_home

orchid nacelle
#

LED BLE just popped up as an integration? A bluetooth low energy LED? Anyone know any common devices that use that integration?

eager kite
#

This sounds like a really dumb question, but can I use the onboard bluetooth on a RPI4 to connect to BT devices?

fringe field
#

The Bluetooth docs have a list of dongles that have been tested and work well.

eager kite
fringe field
#

Pretty easy really

#

So either you are hitting the caveats I described or your device isn’t supported

#

If your device is supported it’ll have its own integration like govee_ble or inkbird_ble. If you can tell me an integration you want to use I can help more

#

But it’s midnight here so not till I’ve slept

hearty mesa
#

My HA is being run on a old laptop that has Bluetooth, how would I connect my soundbar (a Creative V2 Stage) to HA?

fringe field
hearty mesa
oblique oak
#

ESPHome proxy would probably be a better choice

soft thistle
#

anyone have triyed with bleak? i got nice results with awox lamps and bleak lib

https://github.com/danxdz/awox_ha_hub

its a start, it just turn on and off my awox eglo lamps, but it works with HACS and you can setup from integrations

fringe field
#

It has a central bleak scanner to avoid each ha integration running its own

#

So if you use its APIs you can probably ditch your scanner.py

#

If you look at any core ha integration that controls a Bluetooth device youll find a bleakclient somewhere 🙂

soft thistle
iron frost
fringe field
#

There shouldn’t be any need to directly use a BleakScanner with those

fleet jay
#

How to connect a bluetooth speaker to my Home Assisstent?

fallow viper
#

I'm assuming you're wanting to use it to have home assistant able to play music or notifications through? In general, you don't. it doesn't have built in sound playing capabilities. I'm guessing you're using HAOS?

soft thistle
green flower
#

I have some bluetooth proxies configured (esp-32) and I'd like to use them in a custom component. Will that just work out of the box (e.g. if I use Bleak in my custom component will it "see" everything my proxies "see") or do I need to explicitly tie the two together some how?

green flower
soft thistle
#

same here ;p

frozen mica
#

Hello! I have some Nanoleaf - Essentials Matter A19 Smart LED Light Bulb bulbs, and was wondering how to interact with these via Bluetooth, or if there is a better way.

I have a bluetooth dongle that is working for my HA instance.

fringe field
#

async_ble_device_from_address will turn a MAC address into a bledevice which you can pass differently into BleakClient

#

If it returns None then your device is out of range and you should stop trying to connect.

#

You can use those ha APIs to get a callback when the device is available so your integration can basically go to sleep and as soon as the device is in range it will “wake up” and try to connect

fringe field
#

You need to use the ha companion app for iOS or Android to set them up - it uses Bluetooth on your phone not ha to configure matter.

#

The pre-matter bulbs (the homekit ones) can be controlled over Bluetooth using the HomeKit device integration. But yours don’t support that.

sharp moth
earnest pike
#

I bought a BT lightbulb (seems to be Tuya) and I'm trying to add it to HA directly. Any tips on how to achieve that? Should HA just auto discover it, or?

#

In my Tuya app I see the lightbulb appear as a device

fringe field
earnest pike
#

I have no idea whether I'm close enough to my BT adapter on the RPi. Any idea what a good range is on a RPi4?

iron frost
#

3 meters

earnest pike
#

Aha.... down I go to get it paired. I haven't gotten my proxies set up yet, maybe time I do so 😄

iron frost
#

you won't be able to add that Tuya bulb the way you expect

earnest pike
#

Ah, so only through the app then? Don't even need a smart bulb for this use, I just couldn't find any other with the right tmep

fringe field
#

It’s likely not supported by any of the built in Bluetooth integrations

#

I think the only Bluetooth light integration is led_ble

#

All I know about tuya is (a) people on this discord hate it and (b) often times people flash it with custom firmware to escape the tuya ecosystem.

earnest pike
#

Yeah, same here, I don't like Tuya. Avoid it when I can

soft thistle
acoustic beacon
#

Is it possible for me to use an ESP32 proxy without home assistant? As in, with just raspian on a pi? I'm looking to connect a bluetooth speaker/microphone to Rhasspy.

#

I know this is a little off topic but I am trying to set up a rhasspy satellite for home assistant. Apparently external dongles are much less headache than the internal RPi chip. So I guess I'll try that.

crystal mural
#

worth mentioning that it's likely to not work unless it's a full on BT proxy, not a BLE one

acoustic beacon
#

mkay, so I take it the practice isn't widespread.

#

it's a little confusing working my way around raspbian default audio configs. I'm wondering if it wouldn't be easier to do this in arch.

fringe field
#

ESPhome Bluetooth proxies are not general purpose Bluetooth range extenders

#

They expose a web socket api on your wifi, something needs to connect to and drive that API for anything to happen

#

The proxies are only for GATT (a single BLE profile) and tracking Bluetooth broadcasts (which often contain sensor data)

#

You cant do Bluetooth audio over an esphome bluetooth proxy

#

The August lock above is a BLE device, it uses GATT, which is why it works.

#

Right now you realistically do need HA as well

acoustic beacon
#

Mkay seems the ESPhome proxy isn't viable.
I need HA on the satellite rhasspy?

fringe field
#

I don’t know anything about satellite rhasspy

#

I wouldn’t haven’t thought ha was required

#

But I don’t think esphome proxy is viable for your use case with or without ha

acoustic beacon
#

Yea ESPhome isn't viable, it seems. My current issue is the difficulty with getting bluetooth audio devices working and detected in rhasspy. Seems that some people are saying that the RPi's built in bluetooth has so much interference that it's not viable at all to connect audio devices to. So I'm hoping that this dongle I bought will smooth out some issues. It's one of the recommended dongles from the HA bluetooth page. I'm hoping that means that it's reasonably well supported by linux on ARM as a whole.

narrow geyser
#

Can anyone give me use cases they have for bluetooth? I can't seem to find good examples of how/why people are using it. I've got bluetooth devices, but completely unsure if they are compatiable or useful.

fringe field
#

I had some Eve Bluetooth homekit devices connected to homekit, now they are directly connected to HA

#

I had some plant sensors that have Bluetooth

#

And because I already had Bluetooth coverage in house for the above, I have a bunch of Xiaomi and inkbird sensors (temp, motion, leak, etc)

#

This is in addition to zigbee which is my default atm

devout hearth
#

I'm using the Airthings BLE integration for certain devices to avoid the cloud and also the Homekit Device integration for certain bluetooth only homekit devices.

narrow geyser
#

If i have bluetooth speakers around the house, can I use it on those, rather than having cloud TTS on my google home devices?

#

or is it not that simple?

rotund sail
#

You'd need support for Bluetooth speakers

#

if you search the channel history you'll see that there's nothing like that built in

narrow geyser
#

gotcha, I did a google search prior to coming here and there was a lot of noise in the search results.

polar pumice
#

Hello everyone, i am new to home assistant and want to try out some things. I got some very basic and cheap ali express led strips. They work via wifi or bluetooth. The led strips can be controlled via an app. But i don't want to use this app i want to configure the leds via home assistant. Home assistant is currently running on my raspberry pi. But it can't see the bluetooth device. The app on my smartphone can tho. Is this just the manufacturers somehow blocking bluetooth requests?

devout hearth
polar pumice
devout hearth
#

It's difficult to say without the right experience and probably brand/model/specifications on the strips, but your options for making them work without being a dev with the information necessary to create an appropriate integration are probably 1) connect them to WiFi and see if they auto-detect (if they do, they'll probably work that way) or 2) break them down to connect them to some sort of led strip controller that is supported instead of the controller they came with that uses their app. One more remote possibility would be that if the strip has a pairing mode, maybe you need to get it in that mode and see if HA detects it while it's trying to pair. That could work if there is an integration already where that's part of the setup process or, for instance, if they could pair with HomeKit, in which case they might not be detected unless they are in the mode to do that. However, if HomeKit is an option, you might need to do some reading first, as I'm not sure what HomeKit devices do and don't work well paired directly with HA. Speaking of HomeKit, if they paired that way, but didn't work with HA that way, I think there is a bridge integration for sharing things with HomeKit that might also be able to get things from there (that would be more convoluted, but there should be lots of examples of people doing that with things that don't work with the HomeKit Device integration).

polar pumice
rotund sail
#

Well... yes, if you mean Google Assistant SDK HA can send commands to Google - but you can't get a light

polar pumice
rotund sail
#

What problems?

molten anchor
#

I've got a RPi3 that is currently acting as a z-wave and zigbee hub. It just runs barebones debian. It's connected to my wireless network and my HA instance talks to the devices through that network. I'm looking at somehow using the pi as a bluetooth hub as well, since it's closer to my bluetooth speakers than my HA instance could ever be.

Are there any ideas on how I could use that satellite pi as a bluetooth satellite for HA? Maybe have it integrate into HA as either a media_player entity or something similar?

sweet drum
#

Can anyone help with an issue, I have a custom BT intergration thats been working fine until after HA release 2023.8.4 (anything > 2023.9.0 fails), has there been any breaking changes, my integration is connecting, sending a command to a light, but never gets a notification back. Kinda stumped at the moment

fringe field
#

Was it definitely HA that changed and broke?

#

HAOS 11 I think had a bluez update that broke things for some people

#

Though that’s supposed to be fixed in 11.1

sweet drum
#

Yup, if I go back to version 2023.8.4 it works OK

fringe field
#

Ok

#

I’d have to see your integration I guess

sweet drum
#

Doing some debugging and it looks like its not sending any data out when I do the write_gatt_char() here is a link to my repo

#

This is very strange, just found the issue, if I replace " await self._client.write_gatt_char(self._write_char, command, False)" with " await self._client.write_gatt_char(self._write_char, command, None)" it started working!

oblique oak
#

Check pySwitchBot or aiohomekit for an example

pearl wolf
#

Hi all, I am a newbie in bluetooth, I could connect to my device, find the correct charateristic and get a notify on the value, how can I write to it ? I am using bluetoothctl

#

When I look at the output I see:

#

[CHG] Attribute /org/bluez/hci0/dev_CA_6C_77_40_D9_FA/service001e/char001f Value:
fd 01 19 04

sweet drum
hidden oasis
#

Hi i'm new to homeassistant on rpi4. Is there any integration for ble devices, that just advertise their readings? I have a few Xiaomi Mijia 2 flashed with ATC. In HA there is only Mijia protocol supported. From the documentation i find some old entries suggesting ble_monitor or using an ESP as a bridge. But i was wondering if there is something more integrated.

fringe field
#

Depends on the device but for Xiaomi either the xiaomi_ble integration or the BTHome integration

#

Both are supported with usb Bluetooth dongles or the ESPHome “Bluetooth proxy” (which allows any homeassistant integration to use an esp like a remote Bluetooth dongle)

hidden oasis
#

Thanks @fringe field, i'll take a look at it. Is a bluetooth dongle needed with a raspberry pi 4? In fact I am looking for a possibility with the older custom one, that ATC uses. But from your answer and links i suppose these are not directly supported at all?

fringe field
#

So generally we say to get a dongle from the documentation (the Bluetooth page has a list of dongles that were tested with haos and found to work well)

#

Or use multiple esphome Bluetooth proxies to get coverage throughout your home

#

The older ATC protocol is not supported

#

We have Xiaomi ble for “factory fresh” devices

#

We have BTHome which works with the newer versions of the custom firmware

#

Supporting another (older) protocol is a lot of work when you should be able to use the stock firmware or a version of the custom firmware with bthome support.

hidden oasis
acoustic beacon
#

I managed to get this sony speaker to connect via bluetooth to my Pi3 and reliably connect on boot, but the HSP audio quality is really bad.

#

I'm guessing this is due to the proprietary hellhole that is the condition of bluetooth on Linux?

fringe field
#

Hard to say but I’ve never had Bluetooth audio on Linux sound good so probably

acoustic beacon
#

Yea I figured. God damnit.

signal vortex
#

seeing this on console screen Bluetooth: hci0: Frame reassembly failed (-84). Should I worry about it?

fringe field
#

It’s fairly common on raspberry pi. Is that what you are using?

#

It could be interference or power issues from usb if so.

#

We tend to encourage pi users towards either external usb dongles from the official docs (we have a list of tested ones) (and use a usb extension to help avoid interference) or esphome Bluetooth proxies.

#

If you have a power problem adding more usb devices won’t help of course 😂

signal vortex
#

the onlu usb device I have is a conbee

fringe field
#

You might be able to find some help on a raspberry pi forum as it does seem to be a generic Linux/pi issue. Quick google found someone that needed a powered usb hub for their zigbee stick to stop those errors 🤷‍♂️

signal vortex
#

OK thanks

naive ravine
fringe field
frozen mica
#

Hello! I have a few Switchbot Indoor Outdoor Sensor.

Is there any way to poll these devices for the temperature? I have these in my fridge/freezer, so I understand if range is an issue.

terse merlin
#

anybody know if this is a known problem on the raspberry pi 4 docker image?

2023-11-04 20:45:55.574 DEBUG (MainThread) [homeassistant.components.bluetooth.scanner] Initializing bluetooth scanner with {'detection_callback': <bound method HaScanner._async_detection_callback of <homeassistant.components.bluetooth.scanner.HaScanner object at 0x9ef96660>>, 'scanning_mode': 'active', 'adapter': 'hci0'}
2023-11-04 20:45:55.575 DEBUG (MainThread) [homeassistant.components.bluetooth.scanner] hci0 (E4:5F:01:2E:48:F6): Starting bluetooth discovery attempt: (1/3)
2023-11-04 20:45:55.578 DEBUG (MainThread) [homeassistant.components.bluetooth.scanner] hci0 (E4:5F:01:2E:48:F6): FileNotFoundError while starting bluetooth: [Errno 2] No such file or directory
#

docker-compose.yml

version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/raspberrypi4-homeassistant:latest"
    volumes:
      - ./config:/config
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
    restart: always
    privileged: true
    network_mode: host
terse merlin
#

it's working now 😵‍💫 must have been a fluke

rotund sail
#

Keep in mind you should be using stable not latest

#

No idea where people keep getting latest from

untold ermine
#

How do I find out the iBeacon UUID and major/minor of an iPhone? Just tried a beacon scanner app on my android and tried determing it based on rssi distance but couldn't find one that lined up with me moving near or far from the iPhone

untold ermine
#

Think I was able to figure it out.

cosmic raptor
#

how?

#

I'm trying to detect me moving to the garage fast enough to disarm a security camera, private_ble is apparently not fast enough in my tests with esphome proxies

cosmic raptor
#

is a binary_sensor: - platform: ble_presence applicable to private_ble_devices?

fringe field
#

No?

#

Is that an esphome thing?

#

That looks like it needs a MAC address or an iBeacon uuid. For BLE MAC address dedication it’s the bluetooth_le_tracker integration (iirc), and there is a dedicated iBeacon integration too.

#

Private Ble device is for the case where the MAC address is random and there is no option to use an ibeacon

#

Private Ble service will automatically use data from ESPhome if it’s configured as a Bluetooth proxy. It doesn’t need any other sensors configuring

#

If you are missing broadcasts, make sure everything is up to date (recent combinations of esphome and ha can coalesce broadcast data and decode it in HA - this has improved performance a lot), but really you’d need an Ethernet based setup to reduce it further.

#

In my home private ble device notices me on the drive and disarms the alarm before I’ve got my key in the door.

cosmic raptor
#

yes, noticing that I'm home is fast (any proxy receives a broadcast)
the thing is that I want it to be fast while I'm home - switching from proxy A to proxy B

#

I asked because maybe there's a way for the proxies to identify a device while HA knows its real address. apparently the binary sensor is not made for that as you say

fringe field
#

Ah yes no, it’s not optimised for that

#

There’s quite a bit of work in the ha stack to minimize cpu usage

#

And having multiple messages a second per device multiplied by multiple proxies would suck

#

So it maintains the “best” proxy for a mac

#

Our integrations then don’t see duplicate messages

#

But that “best” proxy is sticky. If you have 2 proxies with a solid signal it would be bad to flap between them (especially if you had a GATT connection)

#

So “nearest proxy” lags until there is a significant enough difference for us to switch

#

I think a custom integration could interrogate the scanners directly and find out sooner? But then they’d potentially be introducing state change storms the core stack is trying to avoid

cosmic raptor
#

hm, thinking about changing that esp in the garage to espresence then, maybe that helps

cosmic raptor
#

seems to work, watch and phone get picked up instantly

cosmic raptor
#

not sure if you changed something in the private_ble integration in the last releases but my iphone15 distance reports are now very accurate

#

watch and macbook not so much

fringe field
#

Nope not a thing (no time)

scenic coral
fringe field
#

If you have a ha integration that uses the ha Bluetooth framework it should just work

#

Esphome and Shelly both feed advertisements into has Bluetooth integration

#

You just need a ha integration to wire in a parser

#

If it truly is just broadcasting data then look at govee or inkbird to see where needed

#

(It’s. 90% copy paste 10% parser)

scenic coral
#

Thanks; I'll take a look at those two. I'm struggling to find where I can get at the raw BT data being passed from Shelly to try and piece it together.

west plaza
#

Hello fine Bluetooth folks. Got a handful of bluetooth proxies working fantastically with a handful of temp/humidity sensors for my fridges and freezers, have some plant moisture meters on order, and one of the things that I want to take advantage of the most is outdoor lighting. Turns out there aren't a lot of good outdoor lighting options, and the BLE integration notes a handful of cheap up/downlight RGBW options that I was hoping to take advantage of. That said, the links to amazon are "no longer available" - any suggestions on what to look for to make sure I am ordering something compatible?

frozen mica
#

Hey #bluetooth-archived! I am running into some issues with the Switchbot Bluetooth integration, and I believe that the root of the issue is with my bluetooth dongle. Any recommendations?

hidden oasis
wintry flint
harsh anchor
#

I've not yet done anything with HA BT, yet. When HA starts up it Discovers one bluetooth device, and lists a MAC address, asking if I want to add it to my configuration. I have NO idea what device this might be. How might I find out? It's definitely not a neighbor's device. They're too far away.

fringe field
#

If it just says “Bluetooth” and has a generic Bluetooth logo, it’s actually just your computers Bluetooth radio.

fallow patio
#

Hey guys, what's a good way to get a dumb Bluetooth speaker into ha? I've got a bunch of esp32s coming in I can use

untold ermine
#

I'm trying to get an IRK for my mac laptop. I'm logged into iCloud and I've followed the directions for the private BLE integration. I don't see anything with a "Public" account though in my keychain access

fringe field
#

Worth trying pairing the MacBook to your iOS device and waiting for iCloud to sync

#

Otherwise no idea, mine appeared on that list

#

Possible newer arm MacBooks don’t use this approach, my MacBook is fairly old

cosmic raptor
#

I saw both M2 and old intel in the keychain after I paired them with each other

#

Else I can recommend espresense, it has gotten really easy to setup and just extract keys

#

No need for the full setup with mqtt and whatnot

untold ermine
#

I do use espresense

#

Also I don't have an iOS device, just a mac from work

cosmic raptor
#

You just need to flash the esp, enroll the device on the resulting web ui it gives. Then you get presented the irk:

untold ermine
cosmic raptor
#

Huh, I did not pair a mac with espresense yet but I wonder why that would be

untold ermine
#

Maybe because I have a filter for it already?

#

But I don't think nodes have any kind of state like that

#

Yeah like I just put one node into pairing and I can see it on my phone. My mac can see my phone too but not the node

cosmic raptor
#

Weird, then thats no solution either hmm

untold ermine
#

I was able to connect using an app from the appstore called "nRF Connect Device Manager"

#

At first it didn't see it either but then I unchecked this open about only showing devices advertising "smp uuid"

modest heron
#

I was given some sort of ble doodad
the bag says ITAG
is there a generic ble scanner I can use to see what it might be doing when i turn it on?

faint eagle
#

Android/iPhone app could be a quick test

modest heron
#

I found one that shows its address, but I probably need to watch a video or such on ble debugging

lavish nexus
#

Dear all, I was suggested to come here. I have a bluetooth light installed which I can manage with my phone via an app called BRlight. I would like to know if I could somehow integrate and manage this directly in HA. Thanks a lot!

worldly quartz
#

Is there any way I could add lights that are bluetooth controlled with the app Lampsmart Pro

rotund sail
#

What lights? Make and model

worldly quartz
#

there's no model for it's just a generic chinese chandelier but I've found something from HA forum that I might try

lavish nexus
hidden oasis
#

you need to get the trackers mac address

#

and then you need to install a custom intergation(passive ble monitor) unfortunately

#

since none of the built in integrations don't support the itags

hidden oasis
modest heron
#

very cool

#

It doesn't work like a tile (it turns its self off)
so I'm just kinda playing with it

#

I was hoping I could just toss it under my truck seat
so HA could know if the truck was home

hidden oasis
modest heron
#

after i get it doing something, maybe I'll look for a always on tracker

hidden sigil
#

Does anyone know of a tile like device that can have its ring functionality triggered by home assistant directly? (Doesn't have to be Bluetooth but that seemed the most likely to me)

subtle nimbus
#

is there a way to use a Linux box (openwrt or whatever) as a bluetooth proxy?

#

oh, just found Theengs Gateway

fringe field
#

For example you can get usb over Ethernet adaptors to let you mount dongles where ever you can run an Ethernet cable.

#

USB over IP should also work, which is a kernel module.

#

There’s no UI built around it

#

And it’s quite easy for esphome to beat Linux Bluetooth so I would call it an amazing approach.

subtle nimbus
#

mostly trying to minimize the number of devices

wheat comet
#

Looks like I'm late to the discussion maybe... Was wondering if there's any Bluetooth proxy hardware already designed for HA/esphome.

fringe field
#

A consumer experience and not a diy experience?

fringe field
#

(You might have to compile your own firmware or use the ESPhome addon to compile your own firmware)

wheat comet
#

Definitely. I design my own esphome hardware right now, so I'm wondering if it's worth designing something or if something exists. I'm think of a wireless proxy, so it would have two esp32's, one running BLE one running WiFi. Hopefully spaced far enough apart.

fringe field
#

I have 3

#

One wired, 2 wireless

#

Big downside for you is that you need to open it up and access a serial port. Ideally soldering a header to do that.

#

But if you are making your own esphome stuff already that might not be a deal breaker?

wheat comet
#

How long ago did you buy your units?

fringe field
#

I believe there is a updated yaml for that problem

#

Using a different pin for one of the clocks

#

I seemed to have a stable ping when I set it up

#

(Iirc the manufacturer got involved and offered some advice)

devout hearth
fringe field
#

That or mine are magical

oblique oak
#

I use both the gl and the olimex poe. They both work very well. If you get the olimex make sure to get the one with the external antenna

devout hearth
onyx grove
#

Does anyone know if new shelly mini Relais support Bluetooth proxies?

hidden oasis
#

Hi all, amyone into espresence? I installed on esp32, I can see it is broadcasting a SSID and connect to it but...can't find which web address I should type to reach the config interface

queen oxide
#

I having also some problem with espresense. Used the new enroll metod to find irk. Gave alias names to the devices. The MTT Explorer shows the enrolled devices by alias name. Shall i use the alias names in the HA configuration.yaml or i have to use irk? In the MQTT explorer there is no activity under irk devices, only updating the alias names. I tried to add with alias names to HA, but is shows as not_home.
- platform: mqtt_room name: "Norbi telefon" device_id: "norbi_telefon" state_topic: "espresence/devices/norbi_telefon" timeout: 10 away_timeout: 120

cosmic raptor
#

if it shows up in mqtt explorer by name use the name

#

if it shows up with irk use the irk:... string

#

I have not seen it make sense either, some devices show up with alias, some don't

queen oxide
#

i see its updated in the mqtt explorer, but it isnt updated in HA

cosmic raptor
#

maybe because the topic is espresenSe/ not espresence

queen oxide
#

yes, you right

#

Thanks

hidden oasis
#

Hey guys, I'm trying to pair a Sonof THR316 smart temp switch (non elite) through bluetooth. I get it to show up in the ewelink app, but if I tap on it to connect it skips to the wifi tab. Does anyone know how to resolve this problem? Thanks in advance

fringe field
weary rapids
#

Anyone upgraded their SwitchBot Blind Tilt firmware to v2.1 yet? Wondering if it causes issues.

halcyon acorn
#

I want to use BLE devices for presence detection. I have added to configuration .yaml: ```
device_tracker:

  • platform: bluetooth_le_tracker
tired rivet
#

I have been using Xiaomi BLE integration successfully for some time. In a previous update, a problem was introduced that caused updates from the Xiaomi temp/ humidity devices to become very infrequent - gaps of several hours. The solution at the time was to revert to v9.5. It was subsequently reported "fixed" on current versions. However, having just upgraded to latest HA versions of everything, it appears that the problem has returned. Is there a known workaround to this issue? Core: 2023.11.2 / Supervisor 2023.11.3 / Operating system 11.1 / frontend 20231030.2

fringe field
# halcyon acorn I want to use BLE devices for presence detection. I have added to configuration ...

You need to read the docs for device_tracker and bluetooth_le_tracker. They populate a known_devices.yaml file, but you need to add a setting to the yaml to make it do that, then turn it off when everything is configured (otherwise the file would grow very large over time as many devices have random macs). The docs cover this better than I remember, but then there is a further setting on each entry in known_devices that lets you enable and disable devices. You do have to read the docs for both integrations to get all the information.

#

(It really needs rebuilding, it’s unmaintained and not following current standards).

halcyon acorn
#

"As of 0.94 known_devices.yaml is being phased out and no longer used by all trackers."

rotund sail
#

Yup

#

It's just taking a while 😛

fringe field
#

Hence my last sentence 😉

halcyon acorn
#

So it is still being used by some trackers?

rotund sail
#

Yes

#

Some that haven't been updated in years

fringe field
#

The Bluetooth one

#

Which is unmaintained

halcyon acorn
#

Is there a better integration - I just want to know when a specific device is advertising.

fringe field
#

It was lucky it got updated to use the new Bluetooth stuff

#

What device?

halcyon acorn
#

Doesn't matter, I just want to detect advertisements with a specific mac address.

fringe field
#

It does matter

halcyon acorn
#

Not to me 🙂

fringe field
#

It does matter

halcyon acorn
#

So the answer is no?

fringe field
#

No the answer is I need you to give me more information to help me

halcyon acorn
#

it could be any device, other than an iBeacon.

#

I have several different types.

fringe field
#

But not all devices are the same

#

You couldn’t track an iPhone or an android with just the stock tracker

halcyon acorn
#

All advertisements are the same, in that they contain at least a mac address. So let's say it's a non-connectable advertisement with no UUIDs.

fringe field
#

If you’d said “I want to track my phone” the answer is “here’s a modern integration that can help”

halcyon acorn
#

Let's say for example an Inkbird temp monitor.

#

No phones.

#

And it's advertising continually.

fringe field
#

Then I would say inkbird integration. The device tracker doesn’t get you very much, and you can infer it from the sensor data.

#

But if it’s not a device that has a dedicated integration, if it is using static Bluetooth addresses, the best bet is to read the docs and use the integration you are already trying to use.

fringe field
tired rivet
#

Hi thanks for your reply ... i am pretty sure i saw something that referred to this problem specifically, saying it had been fixed in a version 10 update.

fringe field
#

But that contained a bluez regression

#

11.1 has all the known fixes in

simple acorn
#

anyone around with a Netatmo Smart Sook sensor connected via BT proxy in HomeKit controller?

#

would love to know if it actually works..... but the selftest pressing the front doesnt trigger the binary

fringe field
simple acorn
#

this all seems fine, but ofc the proof of the pudding ....

halcyon acorn
fringe field
#

But Bluetooth itself is working? Because inkbird integration does work?

halcyon acorn
#

Sure, I can see lots of BLE devices in the other integrations. There is no add_new_devices setting documented, there is track_new_devices but it says "Note that setting track_new_devices: false will still result in new devices being recorded in known_devices.yaml, but they won’t be tracked (track: false).

"

#

I have not rebooted the HA, but I did reload all YAML config.

#

It does say "This integration
requires the Bluetooth integration to be enabled and functional.
" which I don't, since there is no Bluetooth adapter, but I do have BLE proxies running and reporting to other integrations.

fringe field
#

That should be fine

#

“No Bluetooth LE devices to track!”

#

Do you see that?

halcyon acorn
#

No, where would that show up?

fringe field
#

In the logs as a warning

halcyon acorn
#

Yes, it is there, along with another error: ```
Error setting up platform legacy bluetooth_le_tracker
18:56:48 – (ERROR) Device tracker
No Bluetooth LE devices to track!
18:56:48 – (WARNING) bluetooth_le_tracker

#
Logger: homeassistant.components.device_tracker
Source: components/device_tracker/legacy.py:320
Integration: Device tracker (documentation, issues)
First occurred: 18:56:48 (1 occurrences)
Last logged: 18:56:48

Error setting up platform legacy bluetooth_le_tracker
fringe field
#

Go figure

halcyon acorn
#

Ok, so I've turned that on, and reloaded config. There are no new messages in the log and no known_devices.yaml created.

fringe field
#

Do you get the same warning?

halcyon acorn
#

Should the integration appear in Settings/Integrations?

fringe field
#

No because it’s legacy

halcyon acorn
#

No new messages in the log related to the tracker.

#

ah.

#

I think I will cut my losses and just work with the specific integrations and RSSI.

#

I think I can make that work satisfactorily.

fringe field
#

Worth restarting ha. It’s also possible that there’s a delay on writing known_decices. Some low value files in HA have a delay on writes to reduce sd card writes

halcyon acorn
#

Yeah, could also be that it waits for a while to see if the mac address changes. But like you said up front, it's old and clunky.

fringe field
#

Indeed

halcyon acorn
#

I will file that under "it seemed like a good idea at the time.". Thanks for your help.

fringe field
# simple acorn this all seems fine, but ofc the proof of the pudding ....

I am in a similar situation with my eve smoke alarm. Short of starting a small fire in my house I don’t have a good solution. One the one hand the protocol for detecting a fire is the same as for detecting a door open, just on a different characteristic, so I’m pretty confident in the code. But it would be nice to test for vendor specific issues….

#

For that reason I’ve got to assume it’s broken and any automations around it are extra and hopefully not needed to safely escape a fire.

simple acorn
#

right.... reason I ask is that the self test in my CO sensor from the same vendor does trigger the binary

#

I tried to set it up via the Home app directly (and compare the results) but that didnt work..

#

just bought 3 of them in a nice discount, but if they dont work properly, I am afraid to have to return... now how to be sure. a simple insence test wont do it, probably not hot enough, and your suggestion wont get the approval here 😉

tired rivet
fringe field
ember nymph
#

which can be better Bluetooth proxy? ESP32 with builtin ram or ESP32S3 with 8MB of Ram? while using wifi on same device?

oblique oak
#

It’s Ethernet and antennae configuration that matter.

#

The ram won’t make any difference unless you are also doing something else with it that needs it

#

ESP32-POE-ISO-EA is the easiest one to flash

gaunt berry
#

Hello everyone, I'm using a xiaomi mi scale on the ESP32 Bluetooth proxy via esphome. Since the ha 2023.11.3 update, ha has no longer received any data from the scale. Anyone have an idea why?

viral lodge
#

Hi there. I have a Pi 1 and Pi3 (Bluetooth) I’d like to use them as a Bluetooth proxy for my HA server running on proxmox. I know esp32 is the documented method, but can anyone tell me how to achieve the same thing with the Pis? Or am I barking up the wrong tree.

fringe field
#

If you must go down this route, the answer is Linux’s usbip module.

#

I can’t help you set it up, but it’s a way to make your HA server see a remote usb device as though it is local.

#

Although it has previously been tested, it is not a common approach - and things that are rarely used tend to be the most fragile

#

You’ll need usb dongles from the “high performance” section of the ha Bluetooth documentation

viral lodge
#

Thanks. So am I right in understanding. I’d run a Linux os on the pi with usbip module and then plug the Bluetooth usb dongle into the pi not my main ha server? Can I not use the Bluetooth onboard the pi 3?

fringe field
#

You can’t use the pi Bluetooth (it’s connected by serial not usb)

fringe field
#

Your ha server would think it had multiple dongles directly plugged in locally, but actually they’d be all around your house

#

Not sure how stable usbip is over wifi

#

And If you don’t already have dongles to hand, you’d be able to get an esp setup for not much more than the price of those dongles, and you’d benefit from it being the supported and common way to do it.

#

Probably hard to do it with haos too

viral lodge
#

Thanks for the info. Couldn’t find this option anywhere online. I don’t have dongles so I’ll probs just go the well documented route then thanks. I’ll think of something to do with the pi1 and 3 one day.

ashen obsidian
upper galleon
#

Hello guys ! I'm using Hyper-V to test HASS before buying the full mini computer that will handle it. Meanwhile, I don't have Bluetooth possbilities . Do you know which ESPHome BlueTooth Proxies work the best with HA that do not require soldering / flashing that you aware of 🙂 ?

hollow quail
#

Newbie question: do I understand correctly that I can create a bluetooth proxy with an ESP32 + 5v power adapter, connected to HA via wifi and ESPHome integration?

fringe field
#

They work their best with Ethernet but I have 3 connected by WiFi just fine

#

(Esp has one radio it had to keep switching between WiFi and Bluetooth so you loose some data in the gaps but normally not enough to make a massive difference. If reliability is important it’s something to keep in mind)

fringe field
upper galleon
fringe field
#

What I can say is you can’t fully avoid flashing

#

My preferred model involves soldering so not for you 😂

hollow quail
fringe field
upper galleon
#

well if it's involve soldering and flash. I can do it, but not sure what items I need to make it works :S

fringe field
#

But you’ll need to figure out how to get them into the esphome dashboard add on yourself

#

The esphome discord can help you with that

#

The olimex with an external antenna is meant to be very good, but you’ll need to figure out a case for it.. don’t have a 3d printer?

upper galleon
#

Yes I do have a 3D printer. I just printed Link ! Nonetheless, I have SwitchBot Hygrometers that doesn't sync with the SwitchBot Mini Hub (Switch Bot API Cloud), So i'm trying to find another way

toxic wasp
#

hi, i am trying to make smart lights happen. currently placed order to try for Yeelight M2 Pro (my opening is 90mm so regular M2 and other Xiaomi Downlight offerings won't fit). any idea if i could use it without Yeelight Gateway? Maybe Bluetooth Proxy/Bluetooth support from Esphome would help?

faint eagle
#

The system option of Enable polling for updates. If Home Assistant should automatically poll ESPHome entities for updates. that I see on bluetooth integrations like bthome, xiaomi, esphome - does it mean active scanning bt devices over rf for updates? or something more internal to HA?

fringe field
#

It might not mean anything

#

It’s there for integrations i maintain that definitely don’t pay attention to it

#

There’s no way for Bthome to poll

#

And only 1 device for xiaomi ble does polling - the plant sensor, and only of its battery

faint eagle
#

ok, i set teh esphome configs to passive for proxy and ble so i wasnt sure if this interacted with that some how

#

i sure wish bthome on pvxx atc firmware didnt go to 2 decimals tons of advertisements

misty gust
#

Very green in regards to this and playing with my esp32-poe devices. Do I need a sd card in my esp32-poe for it to write the output of “esphome run xyz” to? I’m finding that everything seems to go ok but then the device isn’t on the network anywhere.

Also are there size limitations to microsd cards for these things? Or can I just put in a 64gb card and it’s good to go?

misty gust
#

Nevermind. My config was never taking because of a fault usb cable.

dawn terrace
#

Anyone gotten indoor/room positioning using Bluetooth 5.2+ working?

fringe valve
#

any tips for bluetooth devices? (For my HASS)
i wanna buy 1 to connect to my switchbot curtains

gloomy cloak
fringe field
simple acorn
dim badge
#

Hello, I'm trying to get some Eve light switches connected to HA using the HomeKit over bluetooth (and eventually onto thread using a SkyConnect), but getting stuck at the bluetooth side of things

#

Getting "An unhandled error occurred while attempting to pair with this device. This may be a temporary failure or your device may not be supported currently: Eve (E4:C0:6D:6A:CD:ED) - E4:C0:6D:6A:CD:ED: Failed to connect after 9 attempt(s): No backend with an available connection slot that can reach address E4:C0:6D:6A:CD:ED was found: The proxy/adapter is out of connection slots or the device is no longer reachable; Add additional proxies (https://esphome.github.io/bluetooth-proxies/) near this device"

dim badge
#

Ugh, after many, many many retries, it eventually worked.

tall gyro
#

Do I need to have a bluetooth adapter in the machine running homeassistant in order for bluetooth proxy to work? Or can I just use a bluetooth proxy to communicate and add bluetooth devices?

tame brook
tall gyro
#

I can't seem to add the bluetooth integration because it complains about no adapters. I have an esphome bluetooth proxy already added to HA

#

I have the bluetooth integration enabled in yaml, see no errors related to it in the log, but don't see it when i look at integrations in the dashboard

tame brook
#

Have you paired the proxy yet?

tall gyro
#

How do I pair it?

#

the proxy device is added in homeassistant under the esphome integration if that's what you mean

tame brook
#

Should be auto detected if on the same network or go to Settings > Devices and Services > ESP Home > Add Device

tall gyro
#

oh, well yeah It's there

#

i guess it's just supposed to find devices automatically? Any way to manually scan and see the bluetooth devices it detects?

fringe field
#

No that’s not how it works

#

If there is a supported device it will be discovered

#

Is there a particular thing you wanted to achieve?

#

There might be limited exceptions based on what you need (home/away tracking for example, but it’s a different thing based on the device type)

#

(For example you can’t track modern phones because they have random encrypted addresses, so there is a specialist integration to deal with the encryption… but you need to be able to dump the irk from your phone, you can’t just scan for it).

tall gyro
#

I'm trying to add the thermopro integration, which relies on the bluetooth integration. But the bluetooth integration cannot be added in the UI because it complains about no adapters, and when configured with yaml it still does not show up, but there are also no errors in the logs. When I try to add the thermopro integration it says no devices found on the network, so I can't even enable that integration either.

#

It looks like the thermopro integration will also not support my device either since it only detects devices starting with TP35 or TP39. My device is the thermopro tempspike: https://buythermopro.com/twin-tempspike/ Which is TP962

fringe field
#

You shouldn’t need to add the the Bluetooth integration directly

#

It’s meant for usb dongles

#

Under the hood the esphome integration hooks into the shared Bluetooth code

tall gyro
#

Fair enough (not very intuitive or easy to troubleshoot, but I can accept that's how it is currently)

fringe field
#

I agree your device is likely just not supported

tall gyro
#

Would love to see the bluetooth integration recognize proxies, and show the devices that they can see via bluetooth

fringe field
#

Right now think of it as a USB dongle Bluetooth integration

#

You can have multiple

#

If you have usbip for example you could have 5 or more Bluetooth integrations

tall gyro
#

Yeah, but there is no interface if you are using a ble proxy, not a great user experience

fringe field
#

So it needs to be something above the Bluetooth integration

#

Most of the work has been on stabilisation and performance.

#

Unfortunately I don’t think there’s a Ui contributor who’s interested in working on it

tall gyro
#

Yeah, it's fine. Just pointing out an opportunity for improvement. Love all the work everyone has done on HomeAssistant

tame brook
#

It works fine for me, I have a bluetooth proxy communicating with a schlage encode plus. Had to go through the pairing procedure on the schlage though

tall gyro
#

I may just have to try to write some code to get this device supported, but without even being able to see any bluetooth related logs, it might be difficult

fringe field
#

Yeah works fine for me too

tall gyro
#

Where?

#

on the esphome ble proxy itself?

fringe field
#

There’s lots of different ones, it’s probably even more rich than just the Bluetooth integration

#

You can set your proxy to debug

tame brook
#

For my device it uses the homekit integration via the esphome bluetooth proxy, the interesting logs for me are in aoihomekit

fringe field
#

You can turn on debug logs for the ESPHome integration

tall gyro
#

ah ok let me try that

fringe field
#

There are lots getting generated by homeassistant.components.bluetooth too if you set that to debug in configuration.yaml

tall gyro
#

ah there we go

tame brook
#

Which thermopro is it?

fringe field
#

Aiohomekit won’t help in your case but it’s a good call, some of the parsers have enough logging of their own that you don’t need to dive into the guts of ha

tall gyro
#

I can see the ble advertisements in the esphome deubug logs, thanks

#

Wanted to at leas be able to verify that some sort of bluetooth was working at all

tame brook
#

Sorry, ty.

tall gyro
#

No problem

tame brook
tall gyro
#

Yeah that may come into play as well, but I think the thermopro-ble library not supporting the device will be the most important piece to the puzzle. I'm interested in getting it going though when I have a bit of time. This product looks really nice, good competetor to Meator. And their app is easy to use and nice as well, no account needed. But of course having it in HA will be cooler.

#

Thanks @fringe field for the debug log tip. I should have tried that sooner

tall gyro
#

Yeah, that's the line I linked

#

That will need to be updated, but I'm thinking there will be more work involved since this device has a lot of options, two probes with two sensors each, plus settings for the "booster" like alarms and stuff.

tame brook
#

😂 sorry again, split braining too much today it seems

tall gyro
#

No worries!

#

But yeah, it seems that library is just hardcoded to only get those two models right now.

spark cairnBOT
#

@limber path I converted your message into a file since it's above 15 lines :+1:

fringe field
#

Have you added an ESPHome integration that’s connected to that proxy?

limber path
#

That's what I am trying to do

fringe field
#

Don’t touch the Bluetooth integration directly. That’s for usb dongles.

#

I’m the esp is correctly configured it will show up in your discoveries

#

Unless your network breaks zeroconf/mdns

limber path
#

All I have in my configuration.yaml is "bluetooth:"

fringe field
#

You don’t need that

limber path
#

What do I need? I'm completely lost on this one at this point

fringe field
#

Try looking in your router control panel to see if you actually got the esp to join your wifi

limber path
#

I can see that it is active on the network and was assigned an IP

fringe field
#

Then use an mdns tool and verify that it’s discoverable

#

Look for _esphomelib._tcp

#

Sorry it’s hard to give specific advice because all the apps are different

#

If you are having trouble adding esphome devices to HA you might be able to get more help in the esphome discord.

#

(Your problem is a couple of steps before being related to Bluetooth)

limber path
fringe field
#

You could delete Bluetooth from your question

#

As it’s a basic esphome question about adding a device to ha

limber path
fringe field
#

No that’s not what I’m saying

#

Forget Bluetooth for a moment

#

Have you used esphome before?

limber path
#

I have multiple ESPHome devices running right now. I have an mmWave human sensor and a homemade ratgdo, and an nsPanel.

fringe field
#

Right

#

So… when I say have you added this device to Ha

#

Did you add it like those devices?

limber path
#

That is what I am trying to complete. It is in ESPHome inside Home Assistant and "online". What I am trying to do now is get Home Assistant to recognize it and was told in a youtube video from a well-known youtuber, to add a bluetooth integration in order to do so. . . that clearly isn't working.

fringe field
#

They were wrong

#

You do not need that integration

limber path
#

Ok. That makes sense since I am really looking for a device over wifi

fringe field
#

That integration is for usb dongles, which is why you can’t get it to work 😂

limber path
#

Gotcha

#

I tried adding it as an ESPHome device using the IP address and it says it is already configured. . . so Iooked in the devices and do see it in the list. I click on configure and the Allow the Device To Make Home Assistant Service Calls is checked and it has 2 entities. Is this sounding correct so far?

#

What I ultimately want to do is try to connect a bluetooth speaker to the proxy so I can use it through Home Assistant. I guess the big question is, am I going about that the wrong way?? Do I need a dongle instead?

fringe field
#

Oh yeah the proxies are mean for BLE GATT and processing broadcasts from sensors

#

Not for speakers

limber path
#

Well. . . . se la vie.

fringe field
#

I don’t think there’s even a native way to do speakers with a dongle (no direct integration)

limber path
#

Have you seen much about the raspiaudio espmuse? I have considered getting one of the diy boards to use on a set of "dumb" speakers I have

#

I have seen other people use bluetooth speakers, but I wonder how they are integrating them into HA?

fringe field
#

I have a muse

#

It’s turned off since I got it 🙄

limber path
fringe field
#

No I just don’t have time to do anything with it 😂

limber path
#

Ahhhh.

worldly quartz
#

Any way to get my doorknob to unlock with home assistant

#

It has BLE using HHKLock App

#

the lock has the mobdel numberH31-B01

fringe field
#

You’d need to reverse engineer its BLE GATT characteristics and then implement an integration for it in python (I’m guessing no one else has, otherwise it would have turned up in your searches)

worldly quartz
#

yeah i might do that but i only know java and c

warm ginkgo
#

Had anyone had any luck with the airthing_ble integration working for more then a few min before failing? There are a number of threads on its Git with similar issues but just wanna know if it's working for anyone?

devout hearth
fringe field
#

Eg a Realtek Bluetooth dongle would probably crash multiple times an hour, causing those kind of problems.

chrome lynx
#

Does anyone have a reliable recommendation for a bluetooth device tracker? I am looking to simply use my phone's bluetooth to know if I am home or not. I have the the BLE iBeacon in the android app transmitting but i cant seem to pick it up with the iBeacon Integration. I have a Home Assistant Yellow with Bluetooth on the Pi Compute and it just doesn't seem to see the beacon at all. I have a Bluetooth Proxy but I don't think it is really intended for device tracking. But maybe I'm wrong. Any help is appreciated.

faint eagle
#

The proxy works list like the dongle in that it allows ha to see the ble advertisements from beacons. I have not had consistent results wit the android app beacon feature. There is a caveat on the docs page with something about beacon name.

#

Are you just trying to determine home/not home?

#

If so, I have had reliable home detection using my wifi routers ha integration and my phones association to it. Maybe you have a supported router or can use something like ping. Lots of options

chrome lynx
#

Yes I am trying at this point just to know home/not home and I do have Ubiquiti AP's and unifi controller and although that used to work good for me for some reason it doesn't seem to work really at all now. The AP option was best for me as it picked up the wifi connection very quickly but the Unifi Controller option was unreliable and laggy.

#

I will have to look into the beacon name issue and see if it applies to my situation.

#

Thanks for the help

hidden oasis
#

any way to track ble devices without custom integrations

rotund sail
#

Track them means are they there, or did you mean use them?

hidden oasis
hidden oasis
fringe field
#

That usually means your known devices yaml is empty

hidden oasis
vital bane
#

Hi, to connect bluetooth led devices with the raspberry pi, do you need any hubs?

vital bane
#

Or rather, is it possible to control this Bluetooth device (https://www.amazon.com/dp/B0CKSBGP34) on HA? On the phone use the app "Led LAMP" does not require login, only bluetooth connection. I use a raspberry pi

worldly stump
#

My man, at this point you should understand that a $9 obscure set of LEDs isn't going to work w/ HA

rotund sail
#

Stop buying random shit and then hoping it'll work... that's the fast way to burn money

naive spire
#

hmm, my bluetooth device suddenly fails setup with 2023.12.1

#

2023-12-09 10:16:56.517 DEBUG (MainThread) [homeassistant.components.bluetooth.scanner] hci0 (04:42:1A:59:F6:0B): BleakError while starting bluetooth; attempt: (2/3): passive scanning on Linux requires BlueZ >= 5.55 with --experimental enabled and Linux kernel >= 5.10

#

nothing's changed on the host, and I imagine the bluez packages should be included in the docker image as they've always been?

#

sudo hcitool lescan --passive works fine

#

ok, figured it out. the --experimental flag was missing in the bluetooth systemd service

#

wonder how come it worked before

latent dawn
#

Hi All,
i have a raspberry pi3 B+ with HAOS and since the upograde to ver 2023.12 the bluetooth does't work
The integration still on initialization and the erro "configuration failed, try again"
How i can fix it?

#

in the terminal session if i go to the bluetooth command when i write show the message "no default controller" appear

naive spire
#

I just fixed this problem 2 hours ago, mine needed --experimental in the bluetooth systemd service file

latent dawn
#

ok are you also on HAOS??

naive spire
#

no, docker

latent dawn
#

ok im going to enable the debug logging

naive spire
#

just look at what the homeassistant.components.bluetooth errors say. the debug button is in the UI right next to the integration

spark cairnBOT
#

@latent dawn I converted your message into a file since it's above 15 lines :+1:

fringe field
#

Sometimes the chips crash

#

Ha tries to restart them but the internal pi one can’t be

#

Power cycle (shutdown, unplug, turn on) will fix it for a bit

#

You really need a usb dongle from the approved list

latent dawn
#

it's strange beacause all started since the update to the last version of HAOS

fringe field
#

Possible the storm of activity at the update is what did it

scarlet orbit
#

i see for the bluetooth integration docs, there are certain ble usb devices that can support 5 device connections at a time. are there any esp32 variants that can support more than 3 connections at time for ble proxy?

chilly kraken
#

I can't get my bluetooth proxy to see anything. I've tried with two different esp32's. Both have good signal strength. I read in some docs you have to add a bluetooth integration to HA, but when I try, I get the error "No unconfigured Bluetooth adapters found. There are 0 ignored adapters"

fringe field
timber peak
#

@fringe valve replying to your comment in #general-archived .
An ESP32-WROOM device that does WiFi and Bluetooth is a good option. You can use ESPHome to program it and you don't have to do USB passthrough on your proxmox device.

fringe valve
#

the host is connected to with a cable so wifi is not really needed i guess ?

timber peak
#

That's an option if you want to go that route. The ESP32 devices are nice because you can use them for things like presence detection.

fringe valve
#

yea im not that good with soldering and stuff

#

aint there something that has a long range with a few devices ?

#

the 10m that my normal bluetooth devices have aint gonna cut it

#

it needs to pass 2 walls

#

im trying to talk to my switchbot curtains

timber peak
#

I don't have a recommendation outside of the ESP32 devices (which, by the way don't require soldering as the board itself can work out of the box and programming is stupid easy). I would defer to someone else if you want to have this specific use case.

fringe valve
timber peak
#

https://web.esphome.io/
This is the web flasher. Once you have the project built, you can flash the ESP device using your web browser and connecting it to your computer. It's wayyy easier than it used to be. There are plenty of examples out there.

chilly kraken
#

If you don’t want to solder you have to find ones that are pre-soldered

honest hedge
#

Does anyone know of a way to bridge the govee Bluetooth controlled RGBIC strips into home assistant? Maybe an ESP32 bridge? I’d get the WiFi ones, but they’re twice the price.

worldly vector
fringe field
#

The Bluetooth proxy of ESPHome provides Home Assistant with a maximum number of 3 simultaneous active connections. Devices which maintain a continuous active connection will consume one of these constantly, whilst devices which do periodic disconnections and reconnections will permit using more than 3 of them (on a statistical basis). Passively broadcasted sensor data (that is advertised by certain devices without active connections) is received separately from these, and is not limited to a specific number.

#

It’s a limitation of bludroid, one of the esp32 Bluetooth stacks

tidal wraith
#

Hi all. Sorry if this is a novice question, but, I'm lost. I am setting up a new pi4 based home assistant server. I have several Govee bluetooth temp/humidity sensors. One of them was picked up others were not (out of range).

I do have a couple Everything Presence One's (just updated firmware to 1.1.7) and was hoping I could use the bluetooth proxy feature to get the status back to the rpi. But, I can't figure out how to enable / configure it. I updated from a button on the web page and select the usb port.

I've seen some yaml code mentioned, but, can't figure out where to put it and can't find any config options in the ui. If that is even the right path for what I'm trying to do.

fringe field
#

Never heard of that board before but it’s running esp home. That’s a tool for making custom firmware by writing yaml.

#

So it might be that you have to make your own custom firmware with the proxy functionality turned on, then upload it through the usb port

#

Does that make sense?

tidal wraith
#

one step forward two steps back..heh. I found the boards in the ESPHome section of the sidebar of my old home assistant. Both boards had buttons to 'adopt'. Thought I was on to something...but then entered the incorrect password 🤦‍♂️ clicked install and now just waiting to see what happens.

fringe field
#

Yeah the esphome addon is the way to go

tidal wraith
#

Well, I fixed the incorrect password but I think that's all the progress for today. In the main settings, it is now saying I have updates for both esphome boards but fails when I try to update. Go back to the ESPHome addon and click logs and getting encryption errors.

#

Thanks for the help, but, the 'ol brain is fried for the day. 🙂 I'll pick it back up in a day or so.

maiden comet
#

Hello. For BLE passive scanning. I have an Orange Pi mini PC with just OS. HA is running elsehwere. Using BT dongle I wish to use this Orange Pi to scan my BLE temperature sensors (BTHome). But how to connect it to HA and with what software? Thanks.

drowsy ember
maiden comet
#

I have issue with BTProxy and 9 sensors. Using two ESP32 proxy I get missing readings. So I have now a USB dongle (usb 4-1: Product: CSR8510 A10). But how to use it to collect and send collected data to HA?

fringe field
#

If you are dead set on the CSR then you are looking at usb extension cables, “usb over Ethernet” to run the usb signals over cat cable, or at a push there is something called usb over ip.

#

There’s no easy way to set that up in HA, though. You are in your own.

maiden comet
#

I will connect it first to the server and hope the reception will be good enough to catch all nine sensors over the house.

rigid eagle
#

Hey! I am running home assistant in proxmox on my nuc. When I add the bluetooth from the nuc it works fine, but I get these spamming the host log:
Dec 13 07:50:22 homeassistant bluetoothd[380]: src/device.c:device_new() Unable to register device interface for 00:00:00:00:00:00
Dec 13 07:50:22 homeassistant bluetoothd[380]: Unable to create object for found device 00:00:00:00:00:00

I removed the bluetooth and tried with a bluetooth usb dongle and the errors are gone.
Anyone have a clue why I get these errors? Its spamming so fast that the wearout on my harddrive increases. I dont want to use the dongle because im using it on my main computer.

fringe field
#

I do know from helping people over the years that passing Bluetooth into vms can be problematic for some combinations. I used to have problems with VMware on a NUC, and after I went bare metal the problems went away.

#

I also know NUC Bluetooth seems to see its fair share of kernel regressions.

#

And that we encourage people to use an external usb dongle even if their internal Bluetooth does happen to work.

rigid eagle
#

Ah thanks for info! Yea if i dont get to solve it, I might just keep using the usb dongle that actually works. I will try to post on a forum or something first tho.

halcyon slate
#

Hi everyone, in my home I'm running HA on a RPi 3 with an ESPHome bluetooth proxy for reading the data from some SwitchBot temperature and humidity sensors (so both the RPi and the esp32 are listening to BLE I suppose).
Last week I updated my HA from version 2023.8.3 to the 2023.12.1 version and the ESPHome from 2023.8.1 to the 2023.11.6 version.
From that moment I started to have some strange readings from the BLE sensors, some extreme spikes in the temperature values.
Reverting the ESPHome installation (and reinstalling the esp32) didn't fix the problem, so I suppose it is a problem with Home Assistant.
What should I do? Where should I report this problem?

gray aspen
#

What’s a bluetooth proxy @rotund sail?

rotund sail
#

Google home assistant bluetooth proxy 😉

#

Basically, using ESPs to provide connectivity rather than a single dongle

gray aspen
#

Could I use an old raspberry pi 3 as a bluetooth proxy?

rotund sail
#

Don't think so, but that's probably been asked and answered already so worth hitting up the Discord search

gray aspen
#

Apparently, you can use Raspberry Pi picos.

#

What do you think about using a mesh of devices?

rotund sail
#

Well, that's (sort of) how the proxies work, though the mesh is over WiFi

gray aspen
#

Oh nice.

cobalt oar
#

Hi all, I'm a newbie who is seeking to integrate a custom BLE device. I hope to find code for a similar device to learn on

#

Is this the right place to ask?

#

I got the home assistant yellow

daring owl
#

Hey, so I'm thinking about getting 8 to 10 ESP 32. I found for room tracking I always have my smartwatch on and the ESP 32 devices are super cheap. I could put one in smaller rooms and multiple in larger rooms I also looked at Ibegan devices. But I can find the ESP 32s for super cheap. I don't think the benefits would be worth it if I'm spending over 100 bucks. And the ESP 32 are super cheap. I've also saw a video about using the ESP 32 to actually expand your wifi network. Are these completely different projects or can I use the ESP 32 to both extend my wifi and make a Bluetooth network throughout the whole house with the same flash? Has anyone used these?

#

I know for room presents detection some recommend the cheapest pi. But it's not worth it for those in every room.

#

If you guys have used the cheaper ESP 32 I might pull the trigger.

fringe field
#

I use the gl inet s10 because it has poe and a proper antennae. And a case that’s not obviously 3d printed. 🤷

#

The cheapest esp32s won’t have external antennas or lan, so their performance as bt proxies will be reduced

#

You can’t easily mix and match esp32 projects. So you can’t use espresence and homeassistant Bluetooth proxying on the same esp chips, and I don’t think either of those projects support expanding your WiFi coverage.

#

Esp32 share one radio for Bluetooth and WiFi, so trying to do WiFi mesh and Bluetooth on one device is probably a recipe for sadness?

#

(Btw I’ve seen people doing WiFi mesh with esp32 for low bandwidth iot applications and it kinda worked but was unstable. I wouldnt expect it to be much good for expanding my main wifi network. YMMV)

daring owl
#

Gotcha and yeah they're so cheap I could get like 10 of them to give me better coverage.

spare geyser
#

I have an esp32 to work with my Switchbot blind tilts which are kind of far from my Hub 2.

#

When it's in really close proximity there is almost no delay vs the Hub 2(via Matter) taking about 3-5 seconds.

#

So I could have just gotten an army of esp32's instead of the Hub 2. 😔

#

Unfortunately I didn't even know esp32's existed when I bought the Hub 2 this past summer.

#

Oh yeah, another thing I was wondering about. I tried different combination of cables and USB chargers but not all of them worked with my esp32.

#

Are we supposed to use a certain kind of cable and charger? I'm surprised it didn't just work.

fringe field
#

You aren’t supposed to, but given the state of cheap electronics I’m not surprised.

#

If your esp has poor power reg and your usb charger has enough jitter then the length of your usb cable can be enough to break things 🤷

spare geyser
#

Yeah these are all pretty old cables and chargers I've collected over the years. So I guess that plays into it.

arctic elk
#

Not sure if this is the right channel but I have HA setup on a virtual machine in my house and I purchased a USB bluetooth adapter. Everytime I load it as a USB device though... it 'aborts' my virtual machine? How do I set this up??

fringe field
#

Can’t help you configure your vm software but I can say anecdotally usb passthrough (especially of Bluetooth) seems to cause a lot of problems. I have heard of users who got an entire dedicated usb pci-e card so they could do pci-e passthrough instead. And others went bare metal. Others went down the esphome Bluetooth proxy route. 🤷

#

Hope you find a way to make it work!

sand pasture
#

I have a Yale YRD256 lock with HomeKit module. I have a Bluetooth proxy setup via an OLIMEX POE board. The lock was setup successfully via HomeKit Device integration in HA. When I lock and unlock the door it very briefly moves the deadbolt and then just beeps at me. The lock and unlock status are updated in HA when I turn the bolt manually. The lock works in normal HomeKit pairing with Apple Homekit. Any ideas?

fringe field
#

Typically that means the manufacturer has bolted their own proprietary trash onto the side

#

Because Ha can’t interface with random apps on your phone, we can’t get the additional data, so we can’t lock or unlock

#

(Iirc this integration came about because of your exact problem)

sand pasture
#

Thanks. This was completely my fault. I didn’t complete the reset sequence for the lock. I forgot that you had to set a master password before it will allow a lock or unlock from the app or HA. Now it’s all working fine!!!

#

All working fine using the HomeKit Device Integration.

fringe field
#

That’s good to know

oblique oak
#

Its only the august/yale modules that need the aa data. The iM1 modules work without it

ancient abyss
#

I have this one BLE sensor which never shows up in HA after monitoring it for a good week or so.
It's the garage one, which is significantly further from the rest of the house, so I figured, sure, I might want some kind of repeater to deal with that thing.
But now I look in Mi Home, and it shows the hourly graphs for that sensor as if there is no issue at all.
I'm just not sure what kind of magic they are pulling
I do have their gateway thing, maybe that's doing the magic. but then HA could pull data from that surely. or maybe it just can't, and that's the whole thing

#

oh yeah actually what is the max range on BLE

#

the devices are in slightly different locations, maybe I'm just on the edge of the limit and only their device is in range

fringe field
ancient abyss
#

curious

fringe field
#

Your Bluetooth on your ha is probably significantly worse than on your phone.

ancient abyss
#

yeah

fringe field
#

USB 3 is known to cause significant issues

ancient abyss
#

that also just occurred to me

#

iphone has a really nice antenna

fringe field
#

SSDs are

ancient abyss
#

their gateway also probably does

#

but my rpi ......... not so much

fringe field
#

The internal Bluetooth on the pi is pretty terrible for iot

#

I use esphome Bluetooth proxies and probably going to get rid of the native Linux Bluetooth entirely.

ancient abyss
#

as a matter of priority then I should move the setup to the proper location, I'm basically just lacking a good case

#

and yeah I do think esphome looks like a good idea

earnest vortex
#

Which ESP package/firmware has the Apple BT randomized MAC address tracking ability?

fringe field
#

But there’s also espresence. You can’t use espresence and Bluetooth proxy at same time tho which is annoying

#

(I use private_ble _device)

earnest vortex
#

ok I just want presence..don't care about proxy

spark cairnBOT
#

@turbid ginkgo I converted your message into a file since it's above 15 lines :+1:

turbid ginkgo
#

Hi all, I have been trying to get bluetooth devices to show up in my home assistant for several days now and nothing will ever show up as a device. I am using an ESP-WROOM-32 Development Board, and installed the bluetooth proxy directly from esphome.io. I have tried with and without the ESPHome add-on, and I have even created a fresh install of Home Assistant with nothing else installed just to try and get this working. The ESP bt proxy shows up in home assistant integrations, but no bt devices are ever discovered. I enabled debug logging on the integration and I see bt messages (a lot of them). But no devices still. I have read/watched so many videos that say its supposed to be simple, and at this point I am pretty sure I am doing things correctly. Any help would be appreciated.


2023-12-22 10:52:36.907 DEBUG (MainThread) [aioesphomeapi.connection] esp32-bluetooth-proxy-9dfac8 @ 192.168.4.174: Got message of type BluetoothLERawAdvertisementsResponse: advertisements {
  address: 45054626682380
  rssi: -76
  data: "\002\001\030\t\377W\000/ \001<\205\314\003\026\337\375\r\tJBL Xtreme 3"
}
fringe field
turbid ginkgo
fringe field
#

So at least 2 of those wouldn’t expect to show up

#

Devices are automatically discovered if they are supported so might be as simple as yours are not

turbid ginkgo
#

Oh ok...thats good to know. What is an example of something, that you know works that I could try? Some smart bulb or some other thing?

fringe field
#

Inkbird sensors, govee sensors, Xiaomi ble sensors, anything that uses the BTHome protocol, homekit over Bluetooth should also work

#

Not sure of any good Bluetooth bulbs

#

There is an led_ble integration which covers a mishmash of cheap lights

turbid ginkgo
#

Great! Thank you for the suggesstions. I will get one of these devices and give it a go. Maybe you're right and I only have things that are not compatible with BTHome proto.

#

I already ordered two of the supported Xiaomi soil monitors, and they are already on the way. So I will test with these when they arrive.

junior holly
fringe field
#

Realtek chips are rubbish for iot