Inkbird sensor disconnecting
The problem
At random times my Inkbird IBS-Th2 is disconnecting from HA. I have two inside my refrigerator and sometimes one of the sensors disconnect. My Inkbird app on my phone has no issues connecting.
What version of Home Assistant Core has the issue?
core-2024.2.0b3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Inkbird
Link to integration documentation on our website
https://www.home-assistant.io/integrations/inkbird/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
BT is a peer-to-peer. Maybe a keep connection can be added as it maybe disconnecting due to an inactivity issue.
Additional information
No response
Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (inkbird) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of inkbird can trigger bot actions by commenting:
-
@home-assistant closeCloses the issue. -
@home-assistant rename Awesome new titleRenames the issue. -
@home-assistant reopenReopen the issue. -
@home-assistant unassign inkbirdRemoves the current integration label and assignees on the issue, add the integration domain after the command. -
@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue. -
@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
inkbird documentation inkbird source (message by IssueLinks)
These don't make active connections and only listen to what they hear over the air. Its either the Bluetooth adapter crashing, a range issue, or interference
Put a fresh ESPHome proxy with active scans enabled near the device. The problem will likely go away
So I'm experiencing the same thing will all of my Inkbird sensors, and it's likely a BT crashing issue. How do I report that so that it's fixed? I've enabled BT logs, but don't know what I'm looking for in the crash
If it's the adapter crashing it's likely a driver problem that would need to reported to the Linux kernel mailing list or the vendor if they provide the driver
I noticed that passive scanning was checked on the Bluetooth settings in HA. Could this be causing an issue? I changed it yesterday and so far no disconnects. If it disconnects again, I replace the ESP device with a new one and see if it works better.
Lost one yesterday so changed to a new esp device. Both are working again. Will advise if this keeps working. Not sure why nothing shows in the logs to try and troubleshoot this.
Dropping the milestone here as this isn't a beta regression
With a new proxy, just lost one of my Inkbird sensors. Seems to be working the same as my old one. Both of my Inkbird devices are still seen by my phone. A system reboot brings both back to HA.
On reboot, Inkbird sees a new sensor but can't get data from it. I have two real sensors and now 4 that were discovered on different boot ups.
Could the issue be related to an OS issue? I see there is other open issues on Bluetooth connections. Maybe different OS updates are causing this issue. Is there any log info I can get that can help?
Did you disable the onboard bluetooth adapter when you added the proxy?
Not sure what the onboard Bluetooth adapter is. Are you taking about the Bluetooth adapter on the Pi4? If so, no.
Yes
I thought it needed to be on to connect to the proxy? How do I disable it?
Disable the config entry in the integrations UI
I have disabled it. I'll let you know if this fixes my issue. Why is this needed? The two are almost 100 feet apart.
If there is a problem with any bluetooth adapter it can affect everything bluetooth
It seems to be stable now with the Bluetooth adapter disabled. I will close this for now and open a new issue if it comes back. As always, thanks for all your help.