Skip to content
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

Problem with BLE Door Lock #91705

Closed
240Sidan opened this issue Apr 19, 2023 · 13 comments
Closed

Problem with BLE Door Lock #91705

240Sidan opened this issue Apr 19, 2023 · 13 comments

Comments

@240Sidan
Copy link

The problem

Updated both HAOS and HA core today 19th of April and it broke the connection with the lock and it seems like the problem is with my bluetooth adapter connection with error message
2023-04-19 22:37:20.598 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth adapter hci0 [XX;XX;XX;XX;XX] could not be reset due to timeout

What version of Home Assistant Core has the issue?

core-2023.4.5

What was the last working version of Home Assistant Core?

core-2023.4.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Bluetooth

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bluetooth

Diagnostics information

home-assistant_bluetooth_2023-04-19T20-47-11.398Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-04-19 22:41:38.544 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 0x7f8c863760>>, 'scanning_mode': 'active', 'adapter': 'hci0'}
2023-04-19 22:41:38.547 DEBUG (MainThread) [homeassistant.components.bluetooth.scanner] hci0 (XX;XX;XX;XX;XX): Starting bluetooth discovery attempt: (1/3)
2023-04-19 22:41:38.593 DEBUG (MainThread) [homeassistant.components.bluetooth.scanner] hci0 (2023-04-19 22:41:38.544 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 0x7f8c863760>>, 'scanning_mode': 'active', 'adapter': 'hci0'}
2023-04-19 22:41:38.547 DEBUG (MainThread) [homeassistant.components.bluetooth.scanner] hci0 (XX;XX;XX;XX;XX): Starting bluetooth discovery attempt: (1/3)
2023-04-19 22:41:38.593 DEBUG (MainThread) [homeassistant.components.bluetooth.scanner] hci0 (XX;XX;XX;XX;XX): adapter stopped responding; executing reset
2023-04-19 22:41:38.595 DEBUG (MainThread) [bluetooth_auto_recovery.recover] Attempting to recover bluetooth adapter hci0 with mac address B8:27:EB:57:C4:B9
2023-04-19 22:41:38.597 DEBUG (MainThread) [bluetooth_auto_recovery.recover] Attempting to power cycle bluetooth adapter hci0 [XX;XX;XX;XX;XX]
2023-04-19 22:41:38.612 DEBUG (MainThread) [btsocket.btmgmt_protocol] Encoding cmd_code as type CmdCode
2023-04-19 22:41:38.615 DEBUG (MainThread) [btsocket.btmgmt_protocol] Encoding controller_idx as type Controller
2023-04-19 22:41:38.617 DEBUG (MainThread) [btsocket.btmgmt_protocol] Encoding param_len as type ParamLen
2023-04-19 22:41:38.624 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding event_code as type EvtCode
2023-04-19 22:41:38.638 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding controller_idx as type Controller
2023-04-19 22:41:38.640 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding param_len as type ParamLen
2023-04-19 22:41:38.642 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding command_opcode as type CmdCode
2023-04-19 22:41:38.644 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding status as type Status
2023-04-19 22:41:38.650 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding num_controllers as type IntUL
2023-04-19 22:41:38.652 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding controller_index[i] as type IntUL
2023-04-19 22:41:38.662 DEBUG (MainThread) [btsocket.btmgmt_protocol] Socket Read: <event_code=CommandCompleteEvent, controller_idx=65535, param_len=7> <command_opcode=ReadControllerIndexList, status=Success> <num_controllers=1, controller_index[i]=[0]>
2023-04-19 22:41:38.666 DEBUG (MainThread) [btsocket.btmgmt_protocol] Encoding cmd_code as type CmdCode
2023-04-19 22:41:38.675 DEBUG (MainThread) [btsocket.btmgmt_protocol] Encoding controller_idx as type Controller
2023-04-19 22:41:38.677 DEBUG (MainThread) [btsocket.btmgmt_protocol] Encoding param_len as type ParamLen
2023-04-19 22:41:38.693 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding event_code as type EvtCode
2023-04-19 22:41:38.699 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding controller_idx as type Controller
2023-04-19 22:41:38.704 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding param_len as type ParamLen
2023-04-19 22:41:38.707 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding command_opcode as type CmdCode
2023-04-19 22:41:38.718 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding status as type Status
2023-04-19 22:41:38.721 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding address as type Address
2023-04-19 22:41:38.735 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding bluetooth_version as type IntUL
2023-04-19 22:41:38.739 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding manufacturer as type IntUL
2023-04-19 22:41:38.742 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding supported_settings as type IntUL
2023-04-19 22:41:38.745 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding current_settings as type CurrentSettings
2023-04-19 22:41:38.774 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding class_of_device as type IntUL
2023-04-19 22:41:38.777 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding name as type Name
2023-04-19 22:41:38.783 DEBUG (MainThread) [btsocket.btmgmt_protocol] Decoding short_name as type IntUL
2023-04-19 22:41:38.786 DEBUG (MainThread) [btsocket.btmgmt_protocol] Socket Read: <event_code=CommandCompleteEvent, controller_idx=0, param_len=283> <command_opcode=ReadControllerInformation, status=Success> <address=XX;XX;XX;XX;XX, bluetooth_version=7, manufacturer=15, supported_settings=114431, current_settings={Powered: True, Connectable: False, FastConnectable: False, Discoverable: False, Bondable: False, LinkLevelSecurity: False, SecureSimplePairing: True, BREDR: True, HighSpeed: False, LowEnergy: True, Advertising: False, SecureConnections: True, DebugKeys: False, Privacy: False, ControllerConfiguration: False, StaticAddress: False, PHYConfiguration: False, WidebandSpeech: False}, class_of_device=2883584, name=b'homeassistant', short_name=0>
2023-04-19 22:41:38.813 DEBUG (MainThread) [bluetooth_auto_recovery.recover] Response(header=<event_code=CommandCompleteEvent, controller_idx=0, param_len=283>, event_frame=<command_opcode=ReadControllerInformation, status=Success>, cmd_response_frame=<address=XX;XX;XX;XX;XX, bluetooth_version=7, manufacturer=15, supported_settings=114431, current_settings={Powered: True, Connectable: False, FastConnectable: False, Discoverable: False, Bondable: False, LinkLevelSecurity: False, SecureSimplePairing: True, BREDR: True, HighSpeed: False, LowEnergy: True, Advertising: False, SecureConnections: True, DebugKeys: False, Privacy: False, ControllerConfiguration: False, StaticAddress: False, PHYConfiguration: False, WidebandSpeech: False}, class_of_device=2883584, name=b'homeassistant', short_name=0>)): adapter stopped responding; executing reset

Additional information

No response

@home-assistant
Copy link

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!

Code owner commands

Code owners of bluetooth 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 bluetooth Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


bluetooth documentation
bluetooth source
(message by IssueLinks)

@WebSpider
Copy link
Contributor

What HAOS version did you upgrade from, and which one are you running now?

@240Sidan
Copy link
Author

What HAOS version did you upgrade from, and which one are you running now?

Upgraded from HAOS 9.5 to 10.0

@mfisher224
Copy link

Similar issue with BLE temp/humidity sensor. Device not found after updated. Had to roll back.

@WebSpider
Copy link
Contributor

Possibly related to home-assistant/operating-system#2485

@agners
Copy link
Member

agners commented Apr 20, 2023

@240Sidan what hardware are you running on?

@240Sidan
Copy link
Author

Running it on a Raspberry Pi 3

@240Sidan
Copy link
Author

Possibly related to home-assistant/operating-system#2485

Seems to be the same problem

@apalau88
Copy link

apalau88 commented May 2, 2023

Mismo problema en dispositivos Mi Flora de xiamo. Si recargo la integración del bluetooth se actualizan los valores pero al paso de los minutos vuelve a perder la conexión.

@wackla33
Copy link

wackla33 commented May 4, 2023

I've been having the same problem for a week

@mfisher224
Copy link

Installing BLE Monitor solved it for me.

@wackla33
Copy link

wackla33 commented May 4, 2023

La instalación de BLE Monitor lo resolvió por mí.

Thank's so much. It's a good solución.

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@bdraco bdraco closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants