hassio-plejd: Failed to start discovery. Operation already in progress
hi guys,
I get this everytime. I have the recommended BT ASUS USB-BT400 device.
It has worked before but had to restart the plugin every time. Now it is impossible to do something with the devices but the entities are alive. Any way I can fix this?
2021-06-21 20:09:50 INF [plejd-main] Log level set to info
Starting Plejd addon and reading configuration...
2021-06-21 20:09:50 INF [plejd-main] Log level set to info
2021-06-21 20:09:50 INF [plejd-main] Plejd add-on, version 0.8.0-beta
2021-06-21 20:09:50 INF [device-comm] Starting Plejd communication handler.
2021-06-21 20:09:50 INF [plejd-ble] Starting Plejd BLE Handler, resetting all device states.
2021-06-21 20:09:50 INF [plejd-main] Main Plejd addon init()...
2021-06-21 20:09:50 INF [plejd-api] init()
2021-06-21 20:09:50 INF [plejd-api] Getting cached api response from disk
2021-06-21 20:09:50 INF [plejd-api] login()
2021-06-21 20:09:50 INF [plejd-api] logging into Disturbx
2021-06-21 20:09:50 INF [plejd-api] got session token response
2021-06-21 20:09:50 INF [plejd-api] Get all Plejd sites for account...
2021-06-21 20:09:51 INF [plejd-api] Got site list response with 1: Disturbx
2021-06-21 20:09:51 INF [plejd-api] Site found matching configuration name Disturbx
2021-06-21 20:09:51 INF [plejd-api] Get site details for 8209e937-57a8-45e1-b857-c78848c96c16...
2021-06-21 20:09:52 INF [plejd-api] got site details response
2021-06-21 20:09:52 INF [plejd-api] Site details for site id 8209e937-57a8-45e1-b857-c78848c96c16 found
2021-06-21 20:09:52 INF [plejd-api] Saving cached copy
2021-06-21 20:09:52 INF [plejd-api] Getting devices from site details response...
2021-06-21 20:09:52 INF [plejd-api] Plejd gateway 'Woonkamer' found on site
2021-06-21 20:09:52 INF [plejd-mqtt] Initializing MQTT connection for Plejd addon
2021-06-21 20:09:52 INF [plejd-ble] init()
2021-06-21 20:09:52 INF [plejd-mqtt] Connected to MQTT.
2021-06-21 20:09:52 INF [plejd-mqtt] Sending discovery for 1 Plejd output devices
2021-06-21 20:09:52 INF [plejd-mqtt] Discovered DIM-01 (light) named Keuken led (11 : FA5A2830632A_0).
2021-06-21 20:09:52 INF [plejd-mqtt] Sending discovery for 1 Plejd input devices
2021-06-21 20:09:52 INF [plejd-mqtt] Discovered WRT-01 (device_automation) named Keuken schakelaar (12 : CC01B664D086_I_0).
2021-06-21 20:09:52 INF [plejd-mqtt] Sending discovery for 0 Plejd scene devices
2021-06-21 20:09:52 INF [device-comm] Plejd got turn off command for Keuken led (FA5A2830632A_0)
2021-06-21 20:09:58 INF [plejd-ble] BLE init done, waiting for devices.
2021-06-21 20:09:58 INF [plejd-main] Main init done
2021-06-21 20:09:58 INF [plejd-main] main() finished
2021-06-21 20:09:58 INF [device-comm] Plejd got turn on command for Keuken led (FA5A2830632A_0), brightness undefined
2021-06-21 20:09:59 ERR [plejd-ble] Discovery timeout elapsed, no devices found. Starting reconnect loop...
2021-06-21 20:09:59 INF [plejd-ble] Starting reconnect loop...
2021-06-21 20:09:59 INF [device-comm] Bluetooth reconnecting...
2021-06-21 20:10:04 INF [plejd-ble] Reconnecting BLE...
2021-06-21 20:10:04 INF [plejd-ble] init()
2021-06-21 20:10:09 ERR [plejd-ble] Failed to start discovery. Operation already in progress
DBusError: Operation already in progress
at _methodReturnHandlers.<computed> (/plejd/node_modules/dbus-next/lib/bus.js:343:27)
at handleMessage (/plejd/node_modules/dbus-next/lib/bus.js:101:11)
at EventEmitter.<anonymous> (/plejd/node_modules/dbus-next/lib/bus.js:151:9)
at EventEmitter.emit (events.js:314:20)
at /plejd/node_modules/dbus-next/lib/connection.js:116:14
at Socket.<anonymous> (/plejd/node_modules/dbus-next/lib/message.js:63:9)
at Socket.emit (events.js:314:20)
at emitReadable_ (_stream_readable.js:557:12)
at processTicksAndRejections (internal/process/task_queues.js:83:21)
2021-06-21 20:10:09 INF [plejd-ble] If you continue to get "operation already in progress" error, you can try power cycling the bluetooth adapter. Get root console access, run "bluetoothctl" => "power off" => "power on" => "exit" => restart addon.
2021-06-21 20:10:09 WRN [plejd-ble] Failed reconnecting. Failed to start discovery. Make sure no other add-on is currently scanning.
Error: Failed to start discovery. Make sure no other add-on is currently scanning.
at PlejBLEHandler._startGetPlejdDevice (/plejd/PlejdBLEHandler.js:436:13)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
2021-06-21 20:10:09 INF [device-comm] Bluetooth reconnecting...
2021-06-21 20:10:11 ERR [plejd-ble] Discovery timeout elapsed, no devices found. Starting reconnect loop...
2021-06-21 20:10:11 INF [plejd-ble] Starting reconnect loop...
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 28
I got an asus BT500 adapter and I also have this issue it actually finds all devices but then it fails to connect. My server is next to one Plejd device and it should be no problem for it to connect but I guess it is
Maybe it’s not a solution, but I have now disconnected Bluetooth adapter, moved the raspberry pie closer to Plejd device and bought à Ikea Åskstorm.
And it works!