-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BTHome advertised name not honored #79468
Comments
I've tested the devices close-by to the ESPHome based Bluetooth proxy. I am using a Wi-Fi based proxy, but I can reproduce the same problem with the Olimex PoE based proxy. After some digging, it seems that the first issue is due custom handling of the For the second one I customized the advertisement name to be |
Hey there @Ernst79, mind taking a look at this issue as it has been labeled with an integration ( bthome documentation |
Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration ( bluetooth documentation |
prst in the name is indeed used for bparisite in the pypi package. So the first sensor is OK. The second is strange, it should use the local name as device name. Possibly it isnt forwarded by the ESP device? |
The esphome devices don't forward the short local name yet. That's coming in this months update |
It does work for the first device though...
vs.
|
Oh I see, according to the nRF Connect App the first device is announcing the "Complete Local Name", whereas the second is only annoucing "Shortened Local Name". What is weird is that the second device is actually a longer name... I wonder why b-parasite decides to announce different local names here. |
Is there a particular reason that is being done? It feels more confusing to me 😅 |
Saving bytes is the reason he is doing this. He wants to have all info in one message, which is limited in length to 31 bytes. So he keeps the name as short as possible, while we can still say it is a b-parasite. I’m thinking about adding a 2 byte identifier in BTHome, such that we can even skip the name for predefined sensors. |
Sorry, I did not meant why he is using I was more wondering why we can't take the name of the advertisement directly. I was planning on flashing them with different names, but the current code makes |
Ok, this is wired, I reflashed my second b-parasite again, and it appears to advertise a Complete Local Name now 🧐 . And with that, the device also properly appears with local name (although, I had to restart my Core instance, it seems the name does not get updated, but a limitation I can live with.
In any case, there is no problem on HA Core side here, so I am closing this issue. |
The problem
After Core 2022.10 update newly added b-parasite sensors don't get the advertised name anymore. Interestingly, two devices behave different. The first device appears with
b-parasite
as nameThe advertisment of that sensor is
prst
, and that shows up in the logs as wellThe second appears with its MAC address
What version of Home Assistant Core has the issue?
core-2022.10.0b3
What was the last working version of Home Assistant Core?
core-2022.9.3
What type of installation are you running?
Home Assistant Core
Integration causing the issue
bthome
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: