Open aquisgranum opened 2 days ago
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!
(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": [ { "localname": "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_positioninfo": 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_retryconnector.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? 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
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