fsaris / home-assistant-awox

AwoX mesh light integration for Home Assistant
MIT License
83 stars 23 forks source link

Error fetching awox data: No device connected #87

Closed ludoComp9 closed 9 months ago

ludoComp9 commented 1 year ago

Hello,

Configuration:

Bluetooth adapter (hci0) is detcted by Home Assistant with valid MAC address. Awox custom component v0.1.4 successfully installed (AwoX / Eglo light devices and Mesh object added).

Unfortunately, Mesh device is still unavailable, and I can see this following message at the HA plugins load:

Logger: custom_components.awox.awox_mesh
Source: helpers/update_coordinator.py:168
Integration: AwoX MESH control ([documentation](https://github.com/fsaris/home-assistant-awox), [issues](https://github.com/fsaris/home-assistant-awox/issues))
First occurred: 16:33:28 (1 occurrences)
Last logged: 16:33:28

Error fetching awox data: No device connected

Second error message is:

Logger: custom_components.awox.bluetoothctl
Source: custom_components/awox/bluetoothctl.py:37
Integration: AwoX MESH control ([documentation](https://github.com/fsaris/home-assistant-awox), [issues](https://github.com/fsaris/home-assistant-awox/issues))
First occurred: 16:34:03 (3 occurrences)
Last logged: 18:23:08

Failed to start scan: Timeout exceeded. <pexpect.pty_spawn.spawn object at 0x7f673967fd30> command: /usr/bin/bluetoothctl args: [b'/usr/bin/bluetoothctl'] buffer (last 100 chars): '9D:0C ManufacturerData Value:\r\n a7 20 0c 9d 0f 38 . ...8 \r\n' before (last 100 chars): '9D:0C ManufacturerData Value:\r\n a7 20 0c 9d 0f 38 . ...8 \r\n' after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 136 child_fd: 43 closed: False timeout: 30 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_re: 0: re.compile('bluetooth') 1: EOF
Failed to start scan: Timeout exceeded. <pexpect.pty_spawn.spawn object at 0x7f6720e85ae0> command: /usr/bin/bluetoothctl args: [b'/usr/bin/bluetoothctl'] buffer (last 100 chars): '\x1b[0m\x02] Device 42:60:B0:D5:26:11 RSSI: -58\r\n[\x01\x1b[0;93m\x02CHG\x01\x1b[0m\x02] Device 5B:DF:DD:26:6F:07 RSSI: -83\r\n' before (last 100 chars): '\x1b[0m\x02] Device 42:60:B0:D5:26:11 RSSI: -58\r\n[\x01\x1b[0;93m\x02CHG\x01\x1b[0m\x02] Device 5B:DF:DD:26:6F:07 RSSI: -83\r\n' after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 2495 child_fd: 43 closed: False timeout: 30 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_re: 0: re.compile('bluetooth') 1: EOF
Failed to start scan: Timeout exceeded. <pexpect.pty_spawn.spawn object at 0x7f67315abf70> command: /usr/bin/bluetoothctl args: [b'/usr/bin/bluetoothctl'] buffer (last 100 chars): '38:68:01:76 AdvertisingFlags:\r\n 05 . \r\n' before (last 100 chars): '38:68:01:76 AdvertisingFlags:\r\n 05 . \r\n' after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 3130 child_fd: 67 closed: False timeout: 30 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_re: 0: re.compile('bluetooth') 1: EOF

Any idea ? (It worked fine before 2022.7)

Regards,

fsaris commented 1 year ago

Do you have the HA Bluetooth component enabled? The integration needs a dedicated Bluetooth controller and that interfere with the Bluetooth component.

ludoComp9 commented 1 year ago

Yes, HA Bluetooth integration is defined and launched. I have just to remove it ?

fsaris commented 1 year ago

Yes, disable/remove te integration and restart HA to ensure the Bluetooth controller gets available again for the awox integration

ludoComp9 commented 1 year ago

Done. Unfortunately, same error message

fsaris commented 9 months ago

I'm now focusing on a ESPHome solution https://github.com/fsaris/EspHome-AwoX-BLE-mesh-hub because of all Bluetooth issue, maybe that helps you too.