core icon indicating copy to clipboard operation
core copied to clipboard

Inkbird sensor disconnecting

Open bschatzow opened this issue 1 year ago • 17 comments

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

bschatzow avatar Feb 02 '24 20:02 bschatzow

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 close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign inkbird Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove 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)

home-assistant[bot] avatar Feb 02 '24 20:02 home-assistant[bot]

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

bdraco avatar Feb 02 '24 20:02 bdraco

Put a fresh ESPHome proxy with active scans enabled near the device. The problem will likely go away

bdraco avatar Feb 02 '24 20:02 bdraco

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

claytonkimber avatar Feb 02 '24 21:02 claytonkimber

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

bdraco avatar Feb 02 '24 21:02 bdraco

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.

bschatzow avatar Feb 03 '24 11:02 bschatzow

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.

bschatzow avatar Feb 04 '24 13:02 bschatzow

Dropping the milestone here as this isn't a beta regression

bdraco avatar Feb 04 '24 17:02 bdraco

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. image

bschatzow avatar Feb 05 '24 10:02 bschatzow

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?

bschatzow avatar Feb 05 '24 19:02 bschatzow

Did you disable the onboard bluetooth adapter when you added the proxy?

bdraco avatar Feb 05 '24 19:02 bdraco

Not sure what the onboard Bluetooth adapter is. Are you taking about the Bluetooth adapter on the Pi4? If so, no.

bschatzow avatar Feb 05 '24 19:02 bschatzow

Yes

bdraco avatar Feb 05 '24 19:02 bdraco

I thought it needed to be on to connect to the proxy? How do I disable it?

bschatzow avatar Feb 05 '24 21:02 bschatzow

Disable the config entry in the integrations UI

bdraco avatar Feb 05 '24 22:02 bdraco

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.

bschatzow avatar Feb 05 '24 23:02 bschatzow

If there is a problem with any bluetooth adapter it can affect everything bluetooth

bdraco avatar Feb 05 '24 23:02 bdraco

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.

bschatzow avatar Feb 06 '24 10:02 bschatzow