Motionsblinds Bluetooth - it is not possible to connect to the device
The problem
My motionblind device is automatically detected and I can install the device. But after that it is not possible to connect to the device. Resetting the motor connection did not help.
What version of Home Assistant Core has the issue?
2024.10.2
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
Motionblinds Bluetooth
Link to integration documentation on our website
https://www.home-assistant.io/integrations/motionblinds_ble
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
Hey there @lennp, @jerrybboy, mind taking a look at this issue as it has been labeled with an integration (motionblinds_ble) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of motionblinds_ble 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 motionblinds_bleRemoves 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)
motionblinds_ble documentation motionblinds_ble source (message by IssueLinks)
What error do you get? Could you send some debug logs?
https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging
core log says:
_Logger: motionblindsble.device Quelle: components/motionblinds_ble/cover.py:100 Erstmals aufgetreten: 22:29:09 (1 Vorkommnisse) Zuletzt protokolliert: 22:29:09
(49:76:30:50:03:E9) Could not connect to blind_
debug log:
"integration_manifest": { "domain": "motionblinds_ble", "name": "Motionblinds Bluetooth", "bluetooth": [ { "local_name": "MOTION*", "connectable": true } ], "codeowners": [ "LennP", "jerrybboy" ], "config_flow": true, "dependencies": [ "bluetooth_adapters" ], "documentation": "https://www.home-assistant.io/integrations/motionblinds_ble", "integration_type": "device", "iot_class": "assumed_state", "loggers": [ "motionblindsble" ], "requirements": [ "motionblindsble==0.1.2" ], "is_built_in": true }, "setup_times": { "null": { "setup": 7.698300760239363e-05 }, "01J9YNRTGPE658SD66RXBFKSAT": { "wait_import_platforms": -0.21066352701745927, "wait_base_component": -0.0015050280198920518, "config_entry_setup": 0.21609360398724675 } }, "data": { "entry": { "created_at": "2024-10-11T20:54:21.462496+00:00", "data": { "address": "49:76:30:50:03:E9", "local_name": "MOTION_03E9", "mac_code": "03E9", "blind_type": "roller" }, "discovery_keys": { "bluetooth": [ { "_type": "<class 'homeassistant.helpers.discovery_flow.DiscoveryKey'>", "repr": "DiscoveryKey(domain='bluetooth', key='49:76:30:50:03:E9', version=1)" } ] }, "disabled_by": null, "domain": "motionblinds_ble", "entry_id": "01J9YNRTGPE658SD66RXBFKSAT", "minor_version": 1, "modified_at": "2024-10-11T20:54:21.462497+00:00", "options": {}, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "bluetooth", "title": "REDACTED", "unique_id": "REDACTED", "version": 1 }, "device": { "blind_type": "Roller blind", "timezone": null, "position": null, "tilt": null, "calibration_type": null, "connection_type": "disconnected", "end_position_info": null } }
Im not seeing anything that could possibly be helpful but please take a look. Thanks.
Sorry, there was another Error I didnt see right away (core log):
Logger: homeassistant.components.websocket_api.http.connection Quelle: components/websocket_api/commands.py:245 Integration: Home Assistant WebSocket API (Dokumentation, Probleme) Erstmals aufgetreten: 22:29:09 (1 Vorkommnisse) Zuletzt protokolliert: 22:29:09
_[139635992482800] Unexpected exception Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/bleak/backends/bluezdbus/client.py", line 214, in connect reply = await self._bus.call( ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dbus_fast/aio/message_bus.py", line 385, in call await future asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 363, in establish_connection await client.connect( File "/usr/local/lib/python3.12/site-packages/habluetooth/wrappers.py", line 311, in connect connected = await super().connect(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/bleak/init.py", line 615, in connect return await self._backend.connect(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/bleak/backends/bluezdbus/client.py", line 151, in connect async with async_timeout(timeout): File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in aexit raise TimeoutError from exc_val TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/motionblinds_ble/cover.py", line 100, in async_stop_cover await self.device.stop() File "/usr/local/lib/python3.12/site-packages/motionblindsble/device.py", line 73, in wrapper if not await self.connect( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/motionblindsble/device.py", line 654, in connect raise e File "/usr/local/lib/python3.12/site-packages/motionblindsble/device.py", line 648, in connect return await self._connection_queue.wait_for_connection(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/motionblindsble/device.py", line 285, in wait_for_connection raise e File "/usr/local/lib/python3.12/site-packages/motionblindsble/device.py", line 277, in wait_for_connection self._connection_task.result() File "/usr/local/lib/python3.12/site-packages/motionblindsble/device.py", line 678, in establish_connection bleak_client = await establish_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 387, in establish_connection _raise_if_needed(name, device.address, exc) File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 327, in raise_if_needed raise BleakNotFoundError(msg) from exc bleak_retry_connector.BleakNotFoundError: 49:76:30:50:03:E9 - 49:76:30:50:03:E9: Failed to connect after 5 attempt(s): TimeoutError
- Do you get this error every time you try to connect?
- Is your blind within reach of the Bluetooth adapter that is connected to home assistant?
- Are there other devices connected to the Bluetooth adapter in home assistant?
- Can you connect to the blind with the Motionblinds Bluetooth app?
- Do you get this error every time you try to connect? Yes
- Is your blind within reach of the Bluetooth adapter that is connected to home assistant? i tested it with the blind in a 1 meter range of my adapter. no success.
- Are there other devices connected to the Bluetooth adapter in home assistant? no, its a new bluetooth adapter i only got to connect the blind. (ugreen CM656)
- Can you connect to the blind with the Motionblinds Bluetooth app? yes. no problems with the app
Thanks a lot for trying to help. I really appreciate it.
Hmm interesting
- Can you make sure the blind address and name in the Motionblinds Bluetooth app (which you can find in the blind settings screen in the top right), match the information in the diagnostics: "address": "49:76:30:50:03:E9", "local_name": "MOTION_03E9",
- The device in home assistant has a signal strength entity (which is disabled by default, so enable it first if you have it disabled), can you see if that gets any value updates by clicking on it?
- Have you tried removing the device from home assistant, restarting home assistant and then adding it again (for example from discovery)?
- You have one Bluetooth adapter correct, and no ESPHome Bluetooth proxies? (check the Bluetooth integration to make sure)
Hmm interesting
* Can you make sure the blind address and name in the Motionblinds Bluetooth app (which you can find in the blind settings screen in the top right), match the information in the diagnostics: "address": "49:76:30:50:03:E9", "local_name": "MOTION_03E9", * The device in home assistant has a signal strength entity (which is disabled by default, so enable it first if you have it disabled), can you see if that gets any value updates by clicking on it? * Have you tried removing the device from home assistant, restarting home assistant and then adding it again (for example from discovery)? * You have one Bluetooth adapter correct, and no ESPHome Bluetooth proxies? (check the Bluetooth integration to make sure)
- adress and name match the ones in the motionblinds app.
- signal strength is empty. no updates even after 2 hours +
- yes i did try that before. just tried it again but no success.
- yes i have a bluetooth adapter (ugreen cm656) - no proxy
In that case I think there is an issue with your Bluetooth adapter, as you receive no advertisements which should update the signal strength entity.
@bdraco do you maybe know why this is happening and how he can go about troubleshooting his Bluetooth adapter? Does the discovery use some cached advertisement, thus the discovery still shows up after reloading?
Please see the warning about the RTL based adapters here https://www.home-assistant.io/integrations/bluetooth/#realtek-rtl8761bu-adapters
Short version is they sometimes lock up and you need to unplug and replug them or power down to get them to come back up
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.