Closed IATkachenko closed 2 years ago
bluetooth documentation bluetooth source (message by IssueLinks)
Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (bluetooth
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
What do the debug logs for bleak show?
@bdraco, hello.
With my logging settings bleak show just:
2022-09-16 01:50:28.003 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to device @ FF:FF:FF:FF:FF:FF
...
<a bit later> DEBUG (MainThread) [bleak.backends.bluezdbus.client] Device disconnected
in home-assistant.log
and nothing useful.
I'll switch bleak.backends.bluezdbus.manager
to debug
too and will try to get more debug logging...
Will probably need a wire shark/tcpdump to see what's going on
OK, will collect this data too.
Logs will be available in the evening, dumps a bit later: I'm not a professional with Bluetooth debugging, but have enough skills to dig it.
Thank you for your help.
@bdraco, hello,
Could not reproduce now with disabled updater: connection is succseed, but response collecting is fail... Will try later...
@bdraco, it looks like btle instance updating issue: without actual updating latest HA version works fine for a last days... sorry for disturbance.
The problem
Calling of
BleakClientBlueZDBus.connect()
failed if thebluetooth
integration firedAdvertisementData
event while connecting.My custom integration is using connect-communicate-disconnect method to communicate with BTLE device. All works fine in
2022.7
, after migration to bleak.Could you have a look?
What version of Home Assistant Core has the issue?
core-2022.9.4
What was the last working version of Home Assistant Core?
core-2022.9.4
What type of installation are you running?
Home Assistant Container
Integration causing the issue
bluetooth
Link to integration documentation on our website
https://www.home-assistant.io/integrations/bluetooth/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Normal connection log
Failed log
Additional information
Integration https://github.com/TionAPI/HA-tion Module https://github.com/TionAPI/tion_python Essential parts of code, according to dev documentation