#bluetooth-archived
1 messages · Page 5 of 1
other thing is - no idea what the broadcast rate is for android
i get a broadcast every few seconds with iPhone
I am an apple user.... 🤷♂️
I gave the new private stuff a spin today and love it. Accurate and on target.
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
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.
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.
I’m not really proposing anything. I just think the information is available to a custom integration if someone wanted to spin one up. Without needing any external dependencies. Potentially with the goal of merging to core later.
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.
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?
Does the watch use Tizen Os or Android?
I like nrfconnect and kbeacon
https://github.com/thomasloven/lovelace-auto-entities
you will need to learn templates I guess, but that is just a dirty workaround maybe wait for a final solution
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.
Might just install espressense and get it that way
I don’t think anyone here has had that problem. But I did find trying to force a Bluetooth connection could help for some devices. Like, go into Bluetooth settings on both at the same time and try and “pair” from Mac to iPhone.
seen some more values
93m | 4.0dBm
201m | 4.0dBm
400m | 4.0dBm
0m | 12db
I can't make any sense out of it
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.
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
Yes, macbook is way off but I seldom get >1m reported for anything but the watch
Yeah I had tried that with two different iPhones and two different Macs. One Mac would not allow a Bluetooth connection to the phone for some reason. I just setup espressense to get the IRKs instead. No biggie. Thanks for the help.
I think we have a design flaw in how we handle tx_power for remote scanners
I couldn’t convince myself that bleak used the same units for all of its backends.
We are definitely seeing -127 from somewhere which is surely wrong?
@oblique oak I converted your message into a file since it's above 15 lines :+1:
I think that might be the cause but I don't have a good test case
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)
@cosmic raptor can you try the above patch?
added it to /usr/src/homeassistant/homeassistant/components/bluetooth/base_scanner.py in my container and restarted, hope thats right
it at least started
Yup
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.
macbook last 24 hours
https://pastebin.com/Ys96w5qD
iphone 15
https://pastebin.com/eVV3Zy0r
patch should be applied with these
could you post the graph like this again (#bluetooth-archived message)?
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
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?
Tx only?
Yeah
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
I think thats going to be the solution unfortunately 🙈
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
have a question do have Window app also ? if have i can let my friend know about that. thanks
Grafana
@oblique oak Hey, I'm trying to use some Switchbot plugs as dual purpose BT proxies. Trying to make sure I do things right though and had some questions about your comment here:
https://community.home-assistant.io/t/support-for-switchbot-plug-mini-w1901400-with-bluetooth-proxying/441893/26
If I'm understanding correctly, should I change the part.csv to match the partition table for ESPHome that you linked in your next comment and then build the binary?
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
Yeah, I guess I'm more worried about things before I get to ESPHome
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?
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
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)
Where do you see „offline“?
In ESPHome's dashboard, and the logs won't connect via wireless. The Wifi is connect, I've confirmed that a few times
is your dhcp alright? they don't hop addresses do they?
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
I think this uses tasmota 11 by default
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
no it wont be, you'll likely need to flash it over serial to get full bt proxy functionality
Just curious if you have a citation where it specifies those partition tables woulnd't be compatible?
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
i do not.
because partition tables differ between the three
I don't think it's as straightforward as partition tables only working for one or the other because at least in the past one partition table has worked for both (hence how this OTA works in the first place for both Tasmota and ESPHome)
ok man, seems you know more than us
lol I mean I'm just asking for you to explain
lol indeed
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
I don’t know if it helps or if you already knew this but esphome used to have a different partition scheme as well. So around the time we started using esp-idf for proxies, the advice was to flash by serial again to get the new partition scheme as you can’t OTA that.
(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)
technically you could resize the partition from tasmota to fit other firmware, like esphome, requirements but noone has done it yet
Thanks, yeah I became familiar with that as well after flashing my first device as a BT proxy. The docs have that big red warning lol
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)
That's surprising. Because can't ESPHome not even resize it's partition?
Hence why there's the advice to flash ESPHome serially to change the partition
Funny, you answered your first question with the second one
What? No I'm saying if firmware (like Tasmota) on the device is capable of changing its own partition table without a reflash, why does ESPHome require you to reflash via serial?
because its not... capable.. of doing that
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
Huh
thats a weird definition of breaking it down
It just gets more confusing
Sorry, what's confusing?
Hi,
i just buy LED Bluetooth RGB + CW + WW
How to add it to Home Assistant.
Which i need devices for that.
Does your Homeassistant “hub” have Bluetooth? What brand is the strip?
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
I'm using Airthings BLE, but it's all I'm using, never even installed the app, iirc.
@zenith marten I converted your message into a file since it's above 15 lines :+1:
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
The “operation already in progress” is usually a sign of incompatibility between your hardware and Linux.
I don’t know if it’s been tested but one thing to be aware of is that a WiFi Bluetooth proxy shares radio time with Bluetooth. So if it’s spending time streaming audio data, that means the WiFi will be busy. That means the Bluetooth won’t be running. This might impact the reliability of your proxy for Bluetooth.
That seems a little weird since manually running the scan on command works just fine
I wouldn't use it for both if you plan on listening to wake words
Same. I have dedicated proxies.
Just get a 3$ ESP32 board for proxy duty
Compatibility issue might not mean “doesn’t work at all”. My Realtek dongle used to have the same behaviour. It was so overloaded by the amount of advertisements Ha was listening to it would crash at a hardware level every 10 minutes. But “scan on” would sometimes work, and sometimes I’d have to unplug it and plug it back in.
Ah that's fair
USB Broadcom is normally well supported (if haos has the right firmware for it) but I think Mac built in is less so.
That sounds possible lol, mac stuff usually requires some specific drivers
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.
Bluetooth USB Host Controller (05ac:8218)
by Apple Inc.
This is what HA reports
Might have to get one then, was just playing around with it as i had it available to me. Figured it wouldn't hurt to get it to work but i wouldn't be using it for much
Thanks!
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.
Thanks that clears it up. But to be certain it could do one or the other right? Say I just want to play around with Wakewords and then change it to a bluetooth proxy in the end?
Yeah
Perfect, I'll just order an echo then :-), first as a toy, then as a functional device 😄
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.
Disclaimers…
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
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
those requirements don't ask for a top notch proxy
It's just my first step into ESP32 and Bluetooth 🙂
And messing about with the wakeword first is just a plus 😄
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
Don't think it works with HA via BT. The bulbs need to be paired afaik.
With a Zigbee stick they can be controlled.
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
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.
I haven't updated my system(s) that use a local adapter yet since I've been traveling, but the BlueZ version did change on HAOS 11 I wouldn't be suprised if there is a new issue. Please open something on github https://github.com/home-assistant/operating-system/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc. I will try it when I get back home at the end of the month
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
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
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)
That sounds like private ble could be used for non public advertisements. Is that so?
id love to use this integration but im unable to find any info on how to grab the identity resolve key of an android device
It works for anything that has random resolvable addresses. In that scenario, half of the address is a random number and the other half is a hash derived from the random number and a shared key (the irk). If you test such an address against an irk you can prove whether or not it was generated with that irk. But you never know it’s “real” address.
I don’t know how that applies to your use case
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?
We put everything we know in the docs sorry.
i am starting down a similar path. i found this last night https://community.home-assistant.io/t/espresense-device-id-how-to-get-them/403018/15 not sure how current it is and havent tried it
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?
I tried espresence and for some reason whenever I load the image on my esp32 it refuses to boot (but esphome works fine). Very odd.
The only other solution I found involved a GitHub that’s all in Chinese and random iPhone apps lol
Which esp32 device are you using? I just got the atom last night to play with.
Also found this which look promising https://youtu.be/s7kyqpq4Ev4?si=T5XHKr24ZoR5rokR
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
i'm actually using the same one that dude in the video is (his channel is good, too)...it's very odd. i've got some D1 minis coming from amazon this week too so hopefully i'll have better luck with those.
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
This is in the works https://github.com/agittins/bermuda/
very interesting
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
Yes, you can power it with USB.
Thank you. USB C I am guessing
Don't think so, micro iirc.
Auh. Even better
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.
Just going to connect it to my router somehow 😜
3 routers / 3 Olimex I figure is a pretty good start to esp proxies
I think that's the value of the ISO version right? Non iso you wouldn't want to do that
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
sorry, what do you mean by this?
So I just finished setting up ESPresence on the m5Stack Atom Lite. Added 3 phones. was super easy. Took like 30 minutes. I havent added sensors to HAss yet as I want to play a bit.
I think I misspoke. The ISO version would let you power with Poe and also plug in usb at the same time
Isolation I believe
These are on my list to buy and struggled to find out what it meant for a layperson like myself.
I need to do some research myself. I always try and narrow search terms here. thank you
Nice! I actually managed to get that espresence node up and running from this morning (apparently 4th reboot was the charm) so now I’ve got my phone’s IRK. Gonna pop That into the Private BLE device integration and see what’s what
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.
I am also excited about https://github.com/agittins/bermuda/
Yeah that’s the first I heard about Bermuda, gonna have to read up
Private Ble device doesn’t use mqtt that’s why I wrote it
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.
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.
IRKs are hard to get. There are only 2 ways I know. One is the NimBLE Bluetooth stack (this is what espresence uses and crucially esphome does not). I am not in control of the Bluetooth stack that esphome uses. The other is the Apple method in the docs.
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.
Awesome. Thank you.
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
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
That’s expected right now unfortunately. The tx power value we are getting from the iPhone must be wrong, or not appropriate for the antennas we are using. It’s on the todo list to look at adding a calibration feature.
First of all, did you try read the value outside of HA? Discover is quite different to a read operation. Bluetooth can “work fine” for discovery but then not work for reading data for a whole manner of reasons. Crap drivers, signal strength, crap dongle hardware.
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.
I'm running HAOS on a Chuwi mini-pc. I ordered a supported bluetooth dongle. Hopefully that resolves the issue. Thanks!
this is sort of my use case, at least the "not doubling up on ESP devices" part of it. i've got ESP multisensors dotted around my house already for temp/presence/etc, and was hoping to add this functionality to those, as opposed to having to have two sets of ESPs everywhere.
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? 😛
There are 8 prefixes it looks for in the name
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
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
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
hey y'all. So, bluetooh on docker. I am looking at this https://www.home-assistant.io/integrations/bluetooth/ however, the configuration.yaml mentioned in the first step of the configuration, what file is that?
current compose.yaml https://pastebin.mozilla.org/8L6zWqut
(but with added quotes around dbus line)
is it worrying that I have no such file? Is it something the gets created when I manage a complete docker compose up?
Yes, until HA starts no files will be created
Same as for every other Docker container
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
so that means I need to follow the othe steps from this https://www.home-assistant.io/integrations/bluetooth/ ?
add bluez and dbus-broker to my host system?
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 😄
Nah, that's all host stuff
You almost never need to be "inside" the container, any container
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
up never detaches, you want up -d
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
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
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 
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.
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?
@gritty gulch I converted your message into a file since it's above 15 lines :+1:
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.
Finally, success https://i.imgur.com/18W1DYc.png
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....
https://pastebin.mozilla.org/5M9LLtY8 my compose
never mind me
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
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
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
LED BLE just popped up as an integration? A bluetooth low energy LED? Anyone know any common devices that use that integration?
This sounds like a really dumb question, but can I use the onboard bluetooth on a RPI4 to connect to BT devices?
Anything that supports bluez (the Linux Bluetooth stack) should work. Including the pi4. But you should be aware of limitations. we have had reports that it’s unstable for some people (as in the Bluetooth chip locks up and you have to remove power to recover). And it’s likely got less range than a usb dongle with an antennae, and more susceptible to interference.
The Bluetooth docs have a list of dongles that have been tested and work well.
Thanks. I'll ask in another channel because I'm thinking maybe focusing on BT isn't the best solution. I love HA, but sometimes it feels unusable. I'm not even sure how to add a BT device even though it seems to be active. Is there any halfway decent guide on how to set it up?
I mean if it’s supported it’ll get discovered and shown automatically in the discoveries part of the integration page
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
My HA is being run on a old laptop that has Bluetooth, how would I connect my soundbar (a Creative V2 Stage) to HA?
I don’t think there is a way through ha itself. The Bluetooth integrations in core are all about sensors and controlling things with BLE GATT. Maybe there is a way through an add on or custom component though.
Yeah, I realized that, damn, I think i'll have to go the USB route.
ESPHome proxy would probably be a better choice
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
The APIs in ha are actually built on top of bleak
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 🙂
thanks for the tips 😄 yes the scanner its the way i find to get BLE device so i can connect with it ( it gives me errors if i try to connect with MAC adr)
But im asking because a lot of integrations keep using bluepy
No more recommending 5$ Xiaomi BT thermometers https://x.com/atc1441/status/1717656014722416850?s=20
No nothing in core uses bluepy, bleak is definitely the way
Have a look at https://developers.home-assistant.io/docs/core/bluetooth/api
There shouldn’t be any need to directly use a BleakScanner with those
How to connect a bluetooth speaker to my Home Assisstent?
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?
https://community.home-assistant.io/t/bluetooth-speaker-as-media-player/194673/42 may contain something of use to you
thanks, i need to go deeper :p i talk about the external libs, not ha core
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?
nm, it seems the links above from yesterday are likely relevant to my question (e.g. https://developers.home-assistant.io/docs/core/bluetooth/api/#fetch-the-shared-bleakscanner-instance). Should have read them first. Will try experimenting with this. 🙂
same here ;p
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.
Avoid touching the scanner directly. It’s meant for if your external library needs one, but you don’t need to use it and using the ha api directly is better.
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
Matter bulbs use Bluetooth for commissioning but thread for actually controlling them. You need a thread border router. If you use iOS that’s be a HomePod or appletv. If you use google, you need a thread capable device.
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.
#matter-archived can help with this
The pre-matter bulbs (the homekit ones) can be controlled over Bluetooth using the HomeKit device integration. But yours don’t support that.
How can i know which type leds are? 🤔 Before i even buy them...? Is it possible to see?
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
If it was supported it would be auto discovered, yes.
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?
3 meters
Aha.... down I go to get it paired. I haven't gotten my proxies set up yet, maybe time I do so 😄
you won't be able to add that Tuya bulb the way you expect
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
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.
Yeah, same here, I don't like Tuya. Avoid it when I can
Probably not
Thanks a lot, it makes a lot more sense now 😄
bledevice = bluetooth.async_ble_device_from_address(hass , mac , connectable=True)
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.
I have ESPHome's BT proxy in place for my August lock and the occasional beacon dabbling. it does work.
worth mentioning that it's likely to not work unless it's a full on BT proxy, not a BLE one
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.
I'm trying to connect this https://electronics.sony.com/audio/speakers/wireless-speakers/p/srsxe200-bz for a rhasspy satellite, so audio in/out over bluetooth.
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
Mkay seems the ESPhome proxy isn't viable.
I need HA on the satellite rhasspy?
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
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.
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.
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
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.
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?
You'd need support for Bluetooth speakers
if you search the channel history you'll see that there's nothing like that built in
gotcha, I did a google search prior to coming here and there was a lot of noise in the search results.
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?
Most likely the device isn't explicitly supported by any of the built-in HA integrations. Bluetooth devices don't just work (the app you mention knows what it needs to do to make the device work), but supported ones should be detected automatically by HA.
oh ok makes sense. Is there any way other way to make this work? They also use wifi but i don't really trust some random ali express product to have access to my wifi.
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).
Ok perfect thanks for the help, btw the 'brand' is techlife pro. I just found out that they can be connected with google assistant. And home assistant is able to communicate with google assistant so maybe this is a solution
Well... yes, if you mean Google Assistant SDK HA can send commands to Google - but you can't get a light
yea i just saw the problem. Do you think connecting a cheap device like that could cause problems when connecting it to wifi?
What problems?
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?
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
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
Yup, if I go back to version 2023.8.4 it works OK
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!
@sweet drum you should probably clear the services cache when this happens https://github.com/monty68/uniled/blob/e60b87118800ecb7d6e2943ff69c328bcf5b896a/custom_components/uniled/lib/ble_device.py#L264
Check pySwitchBot or aiohomekit for an example
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
Thanks for the advice, have now updated to reflect examples
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.
Depends on the device but for Xiaomi either the xiaomi_ble integration or the BTHome integration
Bthome needs custom firmware (https://github.com/pvvx/ATC_MiThermometer) and needs to use the bthome advertising type not the older custom one that ATC uses
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)
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?
Technically using rpi Bluetooth is fine but the community consensus is that it’s range is poor
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.
ok, thanks for the clarification. So i probably will update and switch to BTHome.
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?
Hard to say but I’ve never had Bluetooth audio on Linux sound good so probably
Yea I figured. God damnit.
seeing this on console screen Bluetooth: hci0: Frame reassembly failed (-84). Should I worry about it?
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 😂
the onlu usb device I have is a conbee
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 🤷♂️
OK thanks
How to make work Grundfos Alpha 3 Bluetooth pump with Home Assistant ? There is no HA integration yet, but exist ESP Home code - https://esphome.io/components/sensor/alpha3.html
The two options are (1) buy an esp32, set up that sensor, add the esp to home assistant (if you get the esp config right, ha will discover it automatically) or (2) write your own integration based on ld2410_ble or similar (see #devs_bluetooth-archived)
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.
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
it's working now 😵💫 must have been a fluke
Keep in mind you should be using stable not latest
No idea where people keep getting latest from
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
Also these directions say there should be "icloud" on the left sidebar but I don't see this:
https://www.home-assistant.io/integrations/private_ble_device/
Think I was able to figure it out.
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
is a binary_sensor: - platform: ble_presence applicable to private_ble_devices?
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.
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
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
hm, thinking about changing that esp in the garage to espresence then, maybe that helps
seems to work, watch and phone get picked up instantly
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
Nope not a thing (no time)
What's the best way to get a BLE sensor, proxied via a nearby Shelly Plus, into HA - a script on the Shelly to make it into a sensor somehow, or a configuration within HA? I have a propane tank sensor broadcasting BLE updates that I'd like to take advantage of (same hardware as https://community.home-assistant.io/t/bluetooth-propane-tank-monitor-esphome-otodata-nee-vo-ferrellgas-ble/430476/16) but without having to add a dedicated ESP.
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)
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.
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?
From what you’ve said you want a PassiveBluetoothProcessorCoordinator
See also #devs_bluetooth-archived
Thanks, I'll start there.
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?
#bluetooth-archived #switchbot I have problems too. The issue is not reliable response. I have 5 blind tilt and frequently one or the other will not respond, will not open or close while the others do. To try to remedy, I have added in a ESPhome bluetooth proxy and seems to be less frequent but still happens. Proxy and blind (the one that is most frequent problem ) are in same room.
I have a switchbot lock with the integration.
And had this trouble of delays and/or no response from the lock. The solution was to put a Bluetooth proxy near the lock. So I have one at 2meters from the lock and since that, the lock is very responsive with no delays.
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.
It should give you the name of the integration that owns the discovery and a logo.
If it just says “Bluetooth” and has a generic Bluetooth logo, it’s actually just your computers Bluetooth radio.
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
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
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
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
You still need to follow the same process to get the IRK for espresense though I believe, no?
I do use espresense
Also I don't have an iOS device, just a mac from work
You just need to flash the esp, enroll the device on the resulting web ui it gives. Then you get presented the irk:
Ah I think I do recall doing this a while back with an apple watch. Oddly when I try to pair a new device with an espresense node after putting it in enroll mode my mac doesn't see the node
Huh, I did not pair a mac with espresense yet but I wonder why that would be
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
Weird, then thats no solution either hmm
Figured it out
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"
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?
Android/iPhone app could be a quick test
I found one that shows its address, but I probably need to watch a video or such on ble debugging
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!
Do you know python?
Is there any way I could add lights that are bluetooth controlled with the app Lampsmart Pro
What lights? Make and model
there's no model for it's just a generic chinese chandelier but I've found something from HA forum that I might try
not really 😦
got it to work with this guide https://community.home-assistant.io/t/controlling-ble-ceiling-light-with-ha/520612/24?page=2
I got one of these connected to HA
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
tho with the custom integration make sure to select "track device" option
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
it does show always as home for me tho
after i get it doing something, maybe I'll look for a always on tracker
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)
is there a way to use a Linux box (openwrt or whatever) as a bluetooth proxy?
oh, just found Theengs Gateway
For a 2 way proxy for Ha it needs to be an esphome proxy OR it needs to be something that bluez can understand
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.
mostly trying to minimize the number of devices
Looks like I'm late to the discussion maybe... Was wondering if there's any Bluetooth proxy hardware already designed for HA/esphome.
Do you mean is there off the shelf in a nice box plug and play hardware?
A consumer experience and not a diy experience?
Yup exactly that
But you are comfortable with maintaining such a device (updating ESPHome on it)?
(You might have to compile your own firmware or use the ESPhome addon to compile your own firmware)
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.
Sorry rl happened.
In terms of something that looks like you bought it in a shop, I really like https://blakadder.com/gl-s10/
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?
https://tubeszb.com/product/bt/ if 3d printed is ok, and it ships with esphome pre installed
Oh wow, it has PoE already? 25 bucks? yeah that's hard to beat!
How long ago did you buy your units?
A month ago
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)
"Requires a 5v power supply and USB-C cable."
I like my Olimex proxies, they're POE, don't remember price point. Not sure whey they aren't listed on https://blakadder.github.io/bluetooth-proxies/ anymore...
They replied to my comments about the gl-s10, which are indeed POE
That or mine are magical
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
No, I looked for and didn't see the reply link, so I clicked the link directly above the message instead of the link being referenced.
Does anyone know if new shelly mini Relais support Bluetooth proxies?
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
Plug in usb and connect again with the website. This time choose Wifi settings. If its failed, no problem. Restart it.
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
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
i see its updated in the mqtt explorer, but it isnt updated in HA
maybe because the topic is espresenSe/ not espresence
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
If HA supported it via Bluetooth I don’t think you would need the app at all, it would just show up in the discoveries section.
Anyone upgraded their SwitchBot Blind Tilt firmware to v2.1 yet? Wondering if it causes issues.
I want to use BLE devices for presence detection. I have added to configuration .yaml: ```
device_tracker:
- platform: bluetooth_le_tracker
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
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).
"As of 0.94 known_devices.yaml is being phased out and no longer used by all trackers."
Hence my last sentence 😉
So it is still being used by some trackers?
Is there a better integration - I just want to know when a specific device is advertising.
Doesn't matter, I just want to detect advertisements with a specific mac address.
It does matter
Not to me 🙂
It does matter
So the answer is no?
No the answer is I need you to give me more information to help me
But not all devices are the same
You couldn’t track an iPhone or an android with just the stock tracker
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.
If you’d said “I want to track my phone” the answer is “here’s a modern integration that can help”
Let's say for example an Inkbird temp monitor.
No phones.
And it's advertising continually.
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.
If reverting to HAOS 9.5 helps, then it sounds like the kernel or bluez has a regression that hasn’t been found yet. You could report it on the HAOS github, but you might be better with esphome or getting a Bluetooth that’s listed on the documentation site.
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.
There were meant to be fixes for a Linux regression that affected a lot of devices in 11.0
But that contained a bluez regression
11.1 has all the known fixes in
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
If 9.5 works and 11.1 doesn’t (but same version of HA) it’s till a regression. Do you have a usb dongle from the “high performance” section of the documentation? These are the ones that were explicitly tested to work well with HAOS.
this all seems fine, but ofc the proof of the pudding ....
Well, I did, and it is quite unhelpful. https://www.home-assistant.io/integrations/bluetooth_le_tracker/ I did exactly what it said there, but known_devices.yaml has not been created, the BLE tracker does not appear as an integration in the frontend, and there are no new devices or entities that I can find.
So you did the add_new_devices: True thing? (Sorry I can’t remember the exact key name and on phone / wrestling a toddler), restarted, and that file wasn’t created in same folder as your configuration.yaml?
But Bluetooth itself is working? Because inkbird integration does work?
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.
No, where would that show up?
In the logs as a warning
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
It looks like that integration doesn’t turn on the scanner at all unless track_new_devices is true or you have at least one tracked device
Go figure
Ok, so I've turned that on, and reloaded config. There are no new messages in the log and no known_devices.yaml created.
Do you get the same warning?
Should the integration appear in Settings/Integrations?
No because it’s legacy
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.
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
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.
Indeed
I will file that under "it seemed like a good idea at the time.". Thanks for your help.
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.
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 😉
i dont have any dongle - only the built-in bluetooth capability on my Pi 4. I reverted to os 9.5 again, everything is back to normal. Thanks for your input - appreciated!
Then getting a dongle is likely worth considering. In addition to the regression you are experiencing, the pi 4 is susceptible to interference and we also see lots of cases of the chip crashing and needing a power cycle to unstick.
which can be better Bluetooth proxy? ESP32 with builtin ram or ESP32S3 with 8MB of Ram? while using wifi on same device?
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
This one is probably the nicest looking but way more work https://blakadder.com/gl-s10/
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?
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.
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
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?
You’d need usbip configuring on both, and the usb dongles would be in the pi (s), not your main ha server.
You can’t use the pi Bluetooth (it’s connected by serial not usb)
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
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.
mine suddenly too stopped doing anything
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 🙂 ?
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?
Yes
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)
We don’t as a community have a great list of every option, and unfortunately there isn’t a perfect option.
Do you have any recommend model ? 🙂
What I can say is you can’t fully avoid flashing
My preferred model involves soldering so not for you 😂
Ok thanks 🙏
If it's just an outdoor temp/humidity sensor connected via bluetooth then presumably it wouldn't be too much data to get lost in the gaps right?
Depending on the model it’ll send so many readings that it won’t matter
well if it's involve soldering and flash. I can do it, but not sure what items I need to make it works :S
https://esphome.io/projects/?type=bluetooth has 2 models that you can get working with just google chrome and a usb cable
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?
I have 3 of these: https://blakadder.com/gl-s10/
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
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?
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?
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
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
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?
Nevermind. My config was never taking because of a fault usb cable.
Anyone gotten indoor/room positioning using Bluetooth 5.2+ working?
any tips for bluetooth devices? (For my HASS)
i wanna buy 1 to connect to my switchbot curtains
both of my applie devices (phone and watch) show up in MQTT explorer with alias (not irk) but i have yet to get it to work either way.
If you read the docs on the ha site there’s a big list of “high performance” devices. And some to avoid. Don’t buy things that use Realtek inside.
just letting you know I made it happen ;-=) the self induced smoke test finally started beeping the ... out of the device, and indeed the detection was noted in the homekit binary. good to know... (self test still holds its silence, only on device)
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"
I've had this same error on an ESP32-POE Bluetooth Proxy using this: https://esphome.io/projects/?type=bluetooth and also using a usb Bluetooth adaptor directly.
Ugh, after many, many many retries, it eventually worked.
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?
The proxy should work fine on its own, just have esphome installed and pair the proxy before trying to use it
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
Have you paired the proxy yet?
How do I pair it?
the proxy device is added in homeassistant under the esphome integration if that's what you mean
Should be auto detected if on the same network or go to Settings > Devices and Services > ESP Home > Add Device
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?
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).
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
I'm wondering if it is just this line that needs to be updated, or if there is more to supporting the device than that: https://github.com/Bluetooth-Devices/thermopro-ble/blob/3c78e2f776a666bc47b05689f083054050d49e40/src/thermopro_ble/parser.py#L30C46-L30C63
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
Fair enough (not very intuitive or easy to troubleshoot, but I can accept that's how it is currently)
I agree your device is likely just not supported
Would love to see the bluetooth integration recognize proxies, and show the devices that they can see via bluetooth
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
Yeah, but there is no interface if you are using a ble proxy, not a great user experience
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
Yeah, it's fine. Just pointing out an opportunity for improvement. Love all the work everyone has done on HomeAssistant
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
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
Yeah works fine for me too
The logs are still there
There’s lots of different ones, it’s probably even more rich than just the Bluetooth integration
You can set your proxy to debug
For my device it uses the homekit integration via the esphome bluetooth proxy, the interesting logs for me are in aoihomekit
You can turn on debug logs for the ESPHome integration
ah ok let me try that
There are lots getting generated by homeassistant.components.bluetooth too if you set that to debug in configuration.yaml
ah there we go
Which thermopro is it?
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
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
Sorry, ty.
No problem
Out of my area of expertise but this seems to filter out any chance of your device from being seen by the integration https://github.com/home-assistant/core/blob/dev/homeassistant/components/thermopro/manifest.json
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
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.
😂 sorry again, split braining too much today it seems
No worries!
But yeah, it seems that library is just hardcoded to only get those two models right now.
@limber path I converted your message into a file since it's above 15 lines :+1:
Have you added an ESPHome integration that’s connected to that proxy?
That's what I am trying to do
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
Ok. I clearly don't have it configured correctly
All I have in my configuration.yaml is "bluetooth:"
You don’t need that
What do I need? I'm completely lost on this one at this point
Try looking in your router control panel to see if you actually got the esp to join your wifi
I can see that it is active on the network and was assigned an IP
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)
I started there and was told this was the best place to get help
You could delete Bluetooth from your question
As it’s a basic esphome question about adding a device to ha
I bleive you are 100% correct. I don't think the bluetooth part of the chip isn't working and I know wifi is working so it is somewhere in the communication between the bluetooth proxy and the network for sure
No that’s not what I’m saying
Forget Bluetooth for a moment
Have you used esphome before?
I have multiple ESPHome devices running right now. I have an mmWave human sensor and a homemade ratgdo, and an nsPanel.
Right
So… when I say have you added this device to Ha
Did you add it like those devices?
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.
Ok. That makes sense since I am really looking for a device over wifi
That integration is for usb dongles, which is why you can’t get it to work 😂
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?
Oh yeah the proxies are mean for BLE GATT and processing broadcasts from sensors
Not for speakers
Well. . . . se la vie.
I don’t think there’s even a native way to do speakers with a dongle (no direct integration)
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?
Does it not work?
No I just don’t have time to do anything with it 😂
Ahhhh.
Any way to get my doorknob to unlock with home assistant
It has BLE using HHKLock App
the lock has the mobdel numberH31-B01
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)
yeah i might do that but i only know java and c
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?
Working fine for me last time I checked.
From what I remember it requires an active connection to the device. That makes it a lot more prone to connection problems. The quality of your Bluetooth hardware will be important. Reducing interference will be important.
Eg a Realtek Bluetooth dongle would probably crash multiple times an hour, causing those kind of problems.
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.
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
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
any way to track ble devices without custom integrations
this didn't work https://www.home-assistant.io/integrations/bluetooth_le_tracker/
Track them means are they there, or did you mean use them?
it is a ble tracker so there isn't any other use for it
the log just says no Bluetooth LE devices to track
That usually means your known devices yaml is empty
also there is this error Error setting up platform legacy bluetooth_le_tracker
Hi, to connect bluetooth led devices with the raspberry pi, do you need any hubs?
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
My man, at this point you should understand that a $9 obscure set of LEDs isn't going to work w/ HA
Stop buying random shit and then hoping it'll work... that's the fast way to burn money
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
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
enable debug logging on the component and issue a reload and look at the error log
I just fixed this problem 2 hours ago, mine needed --experimental in the bluetooth systemd service file
ok are you also on HAOS??
no, docker
ok im going to enable the debug logging
just look at what the homeassistant.components.bluetooth errors say. the debug button is in the UI right next to the integration
@latent dawn I converted your message into a file since it's above 15 lines :+1:
That looks like a hardware problem
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
it's strange beacause all started since the update to the last version of HAOS
Possible the storm of activity at the update is what did it
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?
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"
You don’t need to touch the Bluetooth integration. Can you download a diagnostic report for the ESPhome integration? It should have a Bluetooth section.
@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.
the USB passtrough aint a problem, already running a zigbee stick on it
the host is connected to with a cable so wifi is not really needed i guess ?
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.
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
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.
how stupid easy, its always a skill i dont mind to grab on
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.
If you don’t want to solder you have to find ones that are pre-soldered
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.
All of the esp32 has far as I'm aware of are BLE 5.0 which should do 3 or more connections
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
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.
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?
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.
Yeah the esphome addon is the way to go
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.
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.
Technically you could do this, but I don't think software implementation exists - you need to write it. Or you can use esp32 and BTproxy in ESPHome.
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?
If you have issues with missing readings and proxies you need to look at proxies with antennae and with Ethernet. Like the gl s10 (https://blakadder.com/gl-s10/) or the olimex Poe board. Proxies out perform Linux in quite a few cases. For example, A completely passive esphome setup with Ethernet is expected to outperform passive Linux).
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.
I will connect it first to the server and hope the reception will be good enough to catch all nine sensors over the house.
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.
You’d have to talk to proxmox or bluez about that. It’s not a home assistant issue.
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.
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.
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?
What’s a bluetooth proxy @rotund sail?
Google home assistant bluetooth proxy 😉
Basically, using ESPs to provide connectivity rather than a single dongle
Could I use an old raspberry pi 3 as a bluetooth proxy?
Don't think so, but that's probably been asked and answered already so worth hitting up the Discord search
Apparently, you can use Raspberry Pi picos.
What do you think about using a mesh of devices?
Well, that's (sort of) how the proxies work, though the mesh is over WiFi
Oh nice.
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
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.
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)
Gotcha and yeah they're so cheap I could get like 10 of them to give me better coverage.
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.
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 🤷
Yeah these are all pretty old cables and chargers I've collected over the years. So I guess that plays into it.
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??
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!
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?
Some HomeKit locks require what the protocol calls “additional data” to unlock
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
Your device should be supported by this integration though: https://www.home-assistant.io/integrations/yalexs_ble
(Iirc this integration came about because of your exact problem)
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.
That’s good to know
Its only the august/yale modules that need the aa data. The iM1 modules work without it
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
Bluetooth range is hard. When I first deployed some Xiaomi devices around the house here I found there was periodicity to the signal strength upstairs. It was reliably worse during the night.
curious
Your Bluetooth on your ha is probably significantly worse than on your phone.
yeah
USB 3 is known to cause significant issues
SSDs are
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.
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
Which ESP package/firmware has the Apple BT randomized MAC address tracking ability?
The “Native” HA integration is private_ble_device which is used with esphome running a “Bluetooth proxy”
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)
ok I just want presence..don't care about proxy
@turbid ginkgo I converted your message into a file since it's above 15 lines :+1:
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"
}
What devices are you expecting to show up?
There is a JBL Bluetooth Speaker (which is shown in the debug message), my iphone, a Yale Access Bluetooth door lock, and perhaps some others around the house.
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
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?
https://www.home-assistant.io/integrations/yalexs_ble should help with your lock
https://www.home-assistant.io/integrations/private_ble_device should help with your phone
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
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.
Can anyone tell me why the ASUS BT400 is more performing thean the BT500? https://www.home-assistant.io/integrations/bluetooth/#known-working-high-performance-adapters
I went with the BT500 because it was the only one in stock
They use chips from different vendors. The “better” bt500 is using Realtek. The older bt400 uses Broadcom.
Realtek chips are rubbish for iot