Deconz (update) destroyed my bluetooth & zigbee

Hi,

I have OH 3.4.4 on rPi4, with Conbee II and Bluetooth devices among others and I wanted to add Tuya device (pool heat pump) so I installed the tuya-mqtt bridge after doing update of the system. I noticed that after the update my zigbee and bluetooth devices were gone.

From the Phoscon app I could see that the conbee II stick was not connected anymore and also that the Bluetooth service was not started. I was doubting that the tuya-mqtt was causing the trouble.

I tried to repair them, without succes, so I took backup and installed fresh openhabian on it and tried to restore the backup, (which btw also failed to restore, even with manually stopping openhab but that is another story).

So I started installing the tuya-mqtt on a fresh openhabian, however the bluetooth kept working, up to the moment I installed deconz.

To be sure I flashed the SSD again and installed openhabian, did LTE scan, which worked, and right after it I installed deconz, that killed the bluetooth service.

Below is the terminal output:

Testing that bluetooth works

openhabian@openhabian:~ $ sudo hcitool lescan

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for openhabian:
LE Scan ...
0D:5D:DE:91:3E:C1 (unknown)
0D:5D:DE:91:3E:C1 (unknown)
60:20:20:ED:54:4E (unknown)

Installing deconz via openhabian-config

openhabian@openhabian:~ $ sudo openhabian-config
2023-05-30_16:53:13_CEST [openHABian] Checking for root privileges... OK
2023-05-30_16:53:13_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2023-05-30_16:53:13_CEST [openHABian] openHABian configuration tool version: [openHAB3]{2022-12-18T2
2023-05-30_16:53:13_CEST [openHABian] Checking for changes in origin branch openHAB3... OK
2023-05-30_16:53:17_CEST [openHABian] Switching to branch openHAB3... OK
2023-05-30_16:53:17_CEST [openHABian] Checking for updates of openhab_rules_tools for JS Scripting..
2023-05-30_16:53:23_CEST [openHABian] Adding slightly tuned bash configuration files to system... OK
2023-05-30_16:53:28_CEST [openHABian] Updating Linux package information... OK
2023-05-30_16:53:30_CEST [openHABian] Adding required keys to apt... OK
2023-05-30_16:53:31_CEST [openHABian] Preparing deCONZ repository ... OK
2023-05-30_16:53:40_CEST [openHABian] Installing deCONZ ... OK
OK
2023-05-30_16:56:06_CEST [openHABian] Checking for default openHABian username:password combination.
2023-05-30_16:56:07_CEST [openHABian] We hope you got what you came for! See you again soon ;)

Testing bluetooth again (failure)

openhabian@openhabian:~ $ sudo hcitool lescan
Set scan parameters failed: Connection timed out
openhabian@openhabian:~ $ sudo systemctl bluetooth
Unknown command verb bluetooth.
openhabian@openhabian:~ $ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-05-30 16:47:24 CEST; 9min ago
       Docs: man:bluetoothd(8)
   Main PID: 616 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 2176)
        CPU: 127ms
     CGroup: /system.slice/bluetooth.service
             └─616 /usr/libexec/bluetooth/bluetoothd

May 30 16:47:24 openhabian systemd[1]: Starting Bluetooth service...
May 30 16:47:24 openhabian bluetoothd[616]: Bluetooth daemon 5.55
May 30 16:47:24 openhabian systemd[1]: Started Bluetooth service.
May 30 16:47:24 openhabian bluetoothd[616]: Starting SDP server
May 30 16:47:24 openhabian bluetoothd[616]: Bluetooth management interface 1.21 initialized
May 30 16:47:24 openhabian bluetoothd[616]: profiles/sap/server.c:sap_server_register() Sap driver i
May 30 16:47:24 openhabian bluetoothd[616]: sap-server: Operation not permitted (1)
May 30 16:47:24 openhabian bluetoothd[616]: Failed to set privacy: Rejected (0x0b)
openhabian@openhabian:~ $ sudo systemctl status  hciuart
● hciuart.service - Configure Bluetooth Modems connected by UART
     Loaded: loaded (/lib/systemd/system/hciuart.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-05-30 16:47:24 CEST; 10min ago
   Main PID: 603 (hciattach)
      Tasks: 1 (limit: 2176)
        CPU: 236ms
     CGroup: /system.slice/hciuart.service
             └─603 /usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow - b8:27:eb:d8:fa:ac

May 30 16:47:18 openhabian systemd[1]: Starting Configure Bluetooth Modems connected by UART...
May 30 16:47:24 openhabian systemd[1]: Started Configure Bluetooth Modems connected by UART.

Trying to restart services

openhabian@openhabian:~ $ sudo systemctl restart  bluetooth
openhabian@openhabian:~ $ sudo hcitool lescan
Could not open device: No such device
openhabian@openhabian:~ $ sudo systemctl restart  hciuart
Job for hciuart.service failed because the control process exited with error code.
See "systemctl status hciuart.service" and "journalctl -xe" for details.

After reboot

openhabian@openhabian:~ $ sudo hcitool lescan
[sudo] password for openhabian:
Could not open device: No such device
openhabian@openhabian:~ $
openhabian@openhabian:~ $ sudo systemctl status  hciuart
● hciuart.service - Configure Bluetooth Modems connected by UART
     Loaded: loaded (/lib/systemd/system/hciuart.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-05-30 19:59:31 CEST; 7min ago
    Process: 362 ExecStart=/usr/bin/btuart (code=exited, status=1/FAILURE)
        CPU: 239ms

May 30 19:59:25 openhabian systemd[1]: Starting Configure Bluetooth Modems connected by UART...
May 30 19:59:31 openhabian systemd[1]: hciuart.service: Control process exited, code=exited, status=1/FAILURE
May 30 19:59:31 openhabian systemd[1]: hciuart.service: Failed with result 'exit-code'.
May 30 19:59:31 openhabian systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.
openhabian@openhabian:~ $

Anyone else experiencing similar thing and if possible guidance on how to repair?

Thanks

I don’t use bluetooth so I can’t check if this works. googling showed up these threads

https://github.com/marthoc/hassio-addons/issues/50

I couldn’t get it work so I ended up ditching the raspberry and install Ubuntu on Intel NUC

I know this is a little late now that you have a NUC, just seen this post and thought of similar symptoms I had last month. When I updated deCONZ, other software also updated and I ran into this problem:

If anyone else runs into this issue, it may be worth reading all of the above issue and updating udev if possible.