Phoscon App doesn't find Conbee 2 Stick

Hello there,

today I finally got my Conbee 2 Stick in the mail.
I want to use it with Homebridge.

I started from scratch and flashed a new SD card with the newest Homebridge Raspberry Pi image.
After that I installed the VNC Server tool and also installed deCONZ.

I worked my through the official documentation for the ConBee Installation for Raspbian.

pi@homebridge:~ $  sudo gpasswd -a $USER dialout
Adding user pi to group dialout
pi@homebridge:~ $  wget -O - http://phoscon.de/apt/deconz.pub.key | \
           sudo apt-key add -
--2023-06-13 23:34:09--  http://phoscon.de/apt/deconz.pub.key
Resolving phoscon.de (phoscon.de)... 144.76.96.194
Connecting to phoscon.de (phoscon.de)|144.76.96.194|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1692 (1.7K) [application/octet-stream]
Saving to: ‘STDOUT’

-                                            100%[=============================================================================================>]   1.65K  --.-KB/s    in 0s      

2023-06-13 23:34:09 (66.5 MB/s) - written to stdout [1692/1692]

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
pi@homebridge:~ $ sudo sh -c "echo 'deb http://phoscon.de/apt/deconz \
            $(lsb_release -cs)-beta main' > \
            /etc/apt/sources.list.d/deconz.list"
pi@homebridge:~ $  sudo apt update
Get:1 http://phoscon.de/apt/deconz bullseye-beta InRelease [2,876 B]
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease                                                                                                       
Hit:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease                                                                 
Hit:4 https://repo.homebridge.io stable InRelease                        
Get:5 http://phoscon.de/apt/deconz bullseye-beta/main armhf Packages [730 B]
Fetched 3,606 B in 1s (2,895 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
pi@homebridge:~ $ apt list --upgradeable
Listing... Done
deconz/unknown 2.22.01-raspbian-buster-beta armhf [upgradable from: 2.21.02-raspbian-buster-stable]
N: There is 1 additional version. Please use the '-a' switch to see it
pi@homebridge:~ $  sudo apt install deconz
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
  deconz
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,729 kB of archives.
After this operation, 438 kB of additional disk space will be used.
Get:1 http://phoscon.de/apt/deconz bullseye-beta/main armhf deconz armhf 2.22.01-raspbian-buster-beta [6,729 kB]
Fetched 6,729 kB in 2s (3,722 kB/s)  
Reading changelogs... Done
(Reading database ... 121048 files and directories currently installed.)
Preparing to unpack .../deconz_2.22.01-raspbian-buster-beta_armhf.deb ...
Important: enable_uart=1 should be set in /boot/config (RaspBee only)

Important: /boot/cmdline must not contain console=serial0 (RaspBee only)

use raspi-config to configure serial port access as described in user manual (RaspBee only)
Unpacking deconz (2.22.01-raspbian-buster-beta) over (2.21.02-raspbian-buster-stable) ...
Setting up deconz (2.22.01-raspbian-buster-beta) ...
Important: enable_uart=1 should be set in /boot/config (RaspBee only)

Important: /boot/cmdline must not contain console=serial0 (RaspBee only)

use raspi-config to configure serial port as described in documentation (RaspBee only):
https://github.com/dresden-elektronik/deconz-rest-plugin#software-requirements
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mailcap (3.69) ...


pi@homebridge:~ $ systemctl status deconz
● deconz.service - deCONZ: ZigBee gateway -- REST API
     Loaded: loaded (/lib/systemd/system/deconz.service; disabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-06-13 23:21:22 CEST; 15min ago
   Main PID: 1829 (deCONZ)
      Tasks: 4 (limit: 1599)
        CPU: 15min 25.708s
     CGroup: /system.slice/deconz.service
             └─1829 /usr/bin/deCONZ -platform minimal --http-port=80

Jun 13 23:21:22 homebridge systemd[1]: Started deCONZ: ZigBee gateway -- REST API.
Jun 13 23:21:22 homebridge deCONZ[1829]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-pi'
Jun 13 23:21:23 homebridge deCONZ[1829]: libpng warning: iCCP: known incorrect sRGB profile
Jun 13 23:21:24 homebridge deCONZ[1829]: This plugin does not support propagateSizeHints()
Jun 13 23:21:24 homebridge deCONZ[1829]: This plugin does not support propagateSizeHints()
pi@homebridge:~ $ 

I encounter two problems (they might be the same after all):

  1. When I connect to my Raspberry via VNC I can’t start deCONZ. Just nothing happens.
  2. When I enter the URL Phoscon App - Login into my browser, it looks and looks for gateways but can’t find any.
    But the Stick itself can be found.
pi@homebridge:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Is there a way to check if the Stick is corrupted or so? I really have no idea what problem Ive run into.

https: //phoscon .de/discover shows just “[]”

Thanks in advance!

What do you get when doing ls -la /dev/serial/by-id/usb-* ?

1 Like

Hello,

thanks for your answer.

pi@homebridge:/ $ ls -la /dev/serial/by-id/usb-*
ls: cannot access '/dev/serial/by-id/usb-*': No such file or directory

E: Just made a clean installation. I erased my SD card and flashed the latest Homebridge Image on it. Connected it to wifi. Downloaded Deconz (followed the official docu) and it also says Deconz is running. Still get the same result for ls -la /dev/serial/by-id/usb-*

Can you have a look at this ? After a sudo apt update && sudo apt full-upgrade and a reboot deconz no longer connects to the conbee 2 · Issue #6937 · dresden-elektronik/deconz-rest-plugin · GitHub

1 Like

Thank you.

I think I’m stuck here.

I get the following error.

pi@homebridge:/ $ deCONZ --dev=/dev/ttyACM0
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted

I’ve also tried the next proposed fix from this comment.

...
[Wed Jun 14 16:46:47 2023] usb 1-1.1: SerialNumber: DE2671547
[Wed Jun 14 16:46:47 2023] cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device

pi@homebridge:~ $ sudo ln -s /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2671547-if00 ../../ttyACM0

Phoscon App - Login can’t find anything.

Furthermore I’ve tried the next comment, too.

...
[Service]
User=1000
ExecStart=/usr/bin/deCONZ -platform minimal --http-port=80 --dev=/dev/ttyACM0
...
pi@homebridge:~ $ sudo nano /lib/systemd/system/deconz.service
pi@homebridge:~ $  systemctl daemon-reload
 systemctl restart deconz-gui.service 
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: ,,, (pi)
Password: 
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'deconz-gui.service'.
Authenticating as: ,,, (pi)
Password: 
==== AUTHENTICATION COMPLETE ===
● deconz.service - deCONZ: ZigBee gateway -- REST API
     Loaded: loaded (/lib/systemd/system/deconz.service; disabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-06-14 16:57:03 CEST; 9s ago
   Main PID: 4202 (deCONZ)
      Tasks: 3 (limit: 1599)
        CPU: 810ms
     CGroup: /system.slice/deconz.service
             └─4202 /usr/bin/deCONZ -platform minimal --http-port=80 --dev=/dev/ttyACM0

Jun 14 16:57:03 homebridge systemd[1]: Started deCONZ: ZigBee gateway -- REST API.
Jun 14 16:57:03 homebridge deCONZ[4202]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-pi'
Jun 14 16:57:03 homebridge deCONZ[4202]: libpng warning: iCCP: known incorrect sRGB profile

still, I can’t find the stick.

Sorry if Ive made mistakes so far …

You can’t have deconz and deconz-gui (launched from menu) active in the same time.
If the above command return that deconz is active then can you try :

sudo systemctl stop deconz
sudo systemctl start deconz-gui
sudo systemctl status deconz-gui
1 Like

Oh sorry, my bad.
I should be able to start the deCONZ app under Programming > deCONZ, right? Because I still can’t start it.

pi@homebridge:~ $ sudo systemctl stop deconz
pi@homebridge:~ $ sudo systemctl start deconz-gui
pi@homebridge:~ $ sudo systemctl status deconz-gui
● deconz-gui.service - deCONZ: ZigBee gateway -- GUI/REST API
     Loaded: loaded (/lib/systemd/system/deconz-gui.service; disabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: signal) since Wed 2023-06-14 18:14:18 CEST; 7s ago
    Process: 10671 ExecStart=/usr/bin/deCONZ --http-port=80 (code=killed, signal=ABRT)
   Main PID: 10671 (code=killed, signal=ABRT)
        CPU: 52ms

Im really questioning myself here.
Thank you so much for helping me.

E: rebooted my Pi and can’t start Deconz-gui.
If you want you can connect to my computer if that helps.

If deconz is starting but not deconz-gui then may be something is missing for display.

1 Like

Okay, so I finally got it working.
I, once again, deleted my sd card and flashed a fresh image on it.
Then I installed deCONZ via hb-config.
It didn’t show up then.
When I switched to the beta (alternate) version from the official Phoscon guide, it finally kinda worked.

sudo sh -c "echo 'deb http://phoscon.de/apt/deconz \
            $(lsb_release -cs)-beta main' > \
            /etc/apt/sources.list.d/deconz.list"

Phoscon.de/discover shows the following:

[{"id":"00212EFFFF09AD75","internalipaddress":"192.168.179.148","macaddress":"00212EFFFF09AD75","internalport":4530,"name":"Phoscon-GW","publicipaddress":"84.180.173.166"}]

But then, when I’m in the webapp I can’t add devices and found the following:

I literally have no idea anymore.
When I run the following command it shows RaspBee as Type.
I reinstalled and removed deCONZ twice now and made sure to install Conbee / Conbee II on the first reinstall and then went for the Conbee Raspbian Guide on the official website the second try.

pi@homebridge:~ $ GCFFlasher_internal -l
GCFFlasher V3_17 (c) dresden elektronik ingenieurtechnik gmbh
Path             | Vendor | Product | Serial     | Type
-----------------+--------+---------+------------+-------
/dev/ttyAMA0     | 0x0000 | 0x0000  |            | RaspBee 

Can you share some logs? In #deconz you can find out how.

1 Like

I had a hiccup on my Rpi4 after doing a apt update/upgrade and installing 2.22.01
Suddenly it would not connect to the stick any more.

Trick is doing a sudo dmesg | grep -i tty
Mine looked like: usb 2-6.4.4: FTDI USB Serial Device converter now attached to ttyUSB0 (Conbee I)
And at the end there is your device, that you need to supply as a startup parameter:

~ $ cat /lib/systemd/system/deconz.service
[Unit]
Description=deCONZ: ZigBee gateway -- REST API
Wants=deconz-init.service deconz-update.service
StartLimitIntervalSec=0

[Service]
User=1000
ExecStart=/usr/bin/deCONZ -platform minimal --http-port=80 --dev=/dev/ttyUSB0
Restart=on-failure
RestartSec=30
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_KILL CAP_SYS_BOOT CAP_SYS_TIME

[Install]
WantedBy=multi-user.target

Why it suddenly needed that /dev option is a mystery to me …

2 Likes

Hello,

I just, for the sake of my sanity, downloaded an old Homebridge Raspbian Image (V1.0.39).
And I got it to run. Smoothly and without any problem. Damnit.

For the meantime I’ll try to use that for my HomeKit integration.

Since it’s a Debian bug and has nothing to do with deconz per se and there are solutions available and only I can’t seem to make them work, do you want me to recreat the error?