Switch connected with phoscon and(!) lamps

Thank you Jan666, I understand, My problem is, that I haven’t deCONZ running. It was to difficult for me, to install this an run this in parallel. Is there a way with phoscon only?

Phoscon uses the deCONZ API, you are running deCONZ. Maybe you can Access the GUI via VNC.

AFAIK its not possible without GUI

Just VNC or ssh -X into your deCONZ server and stop the current running process with:
sudo systemctl stop deconz

Restart with:
/usr/bin/deCONZ &
and you’re off in the GUI :slight_smile:

1 Like

I have tried, OMR. But it doesn’t work for me. I have added two lamps (each in an other group Test1 and 2) to two switches. But nothing happend - no reaction at the lamps.
I’m wondering, the names on the old Web App is Switch 12 and 13 and in the new Web App is shown as I changed their name to Taster 1 und 2.

I have tried OMR, but I don’t know what is to do now:

Debian GNU/Linux 12 deconz tty1

deconz login: root (automatic login)

deCONZ LXC provided by https://tteck.github.io/Proxmox/

Last login: Sun Dec 10 23:10:28 CET 2023 on tty1
root@deconz:~# sudo systemctl stop deconz
root@deconz:~# /usr/bin/deCONZ &
[1] 339
root@deconz:~# 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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Tips from google doesn’t help:

root@deconz:~# sudo apt-get install libxcb-xinerama0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libxcb-xinerama0 is already the newest version (1.15-1).
libxcb-xinerama0 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[1]+  Aborted                 /usr/bin/deCONZ
root@deconz:~# /usr/bin/deCONZ &
[1] 348
root@deconz:~# 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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Other descriptions also not help:

root@deconz:~# sudo systemctl stop deconz
root@deconz:~# sudo systemctl start deconz-gui
root@deconz:~# sudo systemctl status deconz-gui
* deconz-gui.service - deCONZ: ZigBee gateway -- GUI/REST API
     Loaded: loaded (/lib/systemd/system/deconz-gui.service; disabled; preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Sat 2023-12-23 14:53:30 CET; 3s ago
    Process: 347 ExecStart=/usr/bin/deCONZ --http-port=80 (code=exited, status=217/USER)
   Main PID: 347 (code=exited, status=217/USER)
        CPU: 1ms

How do you log into you system? (tty1 had me baffled …)

How do you log into you system?

via the Terminal for the specific LXC Container within Proxmox GUI

Sorry, jan666. That is to difficult for my very low linux knowledge. :frowning:

And there you lost me :slight_smile:
Can you run any X applications through that terminal? (xeyes for instance …)

Thank you!

I started with the question of how to connect to the Conbee and lamps easily. :slight_smile:
Since I managed to do it two years ago without all the pull-ups, I’m sure that it can be done without the hassle…

I also suspect that I’m doing something wrong with the coupling, because after I’ve directly coupled switches with different lamps, they suddenly switch other lamps that they were never coupled with. But not all available lamps within the Zigbee network - only some of them.
I don’t understand it because I have reset everything, reseted all lamps and switches and while that never seen unreseted lamps, lamps already been reseted.

Maybe someone has an idea or instructions on how to do it again as easily as I did well two years ago (like in the video I linked in the start post, but for the HueBridge).

Suddenly like during the pairing prosess or when you operate a switch?
I have noticed that sometimes, just after pairing a light or switch whole groups blinks a time or two, but that’s all.

Yes, it worked 2 years ago out of the box. But this is not the case anymore because ikea changed the firmware and deconz now handles every remote like it has the new firmware. No group bindings are created automatically. Just see Ikea 5 Button Switch on 24.4.5; Dimmer on 24.4.6 - group bindings don't work anymore - #4 by Mimiix. You need to get the GUI running to make your bindings

When I operate a switch.
I pair lamp by lamp - all other lamps an switches has no electricity.

Here a longer description was I have sent to the support of dresden electronic - but no answer.

  1. ConBee „Gateway zurücksetzen“ über Phoscon http://192.168.111.179/pwa/settings-gateway2.html
  2. ZigBee Kanal 25 ausgewählt
  3. alle Lampen, Aktoren und Zwischenstecker stromlos gemacht
  4. jede Lampe habe ich mit dem Hue Dimmer Switch (und die iluminize Aktoren) resettet (und anschließend über Bluetooth die letzte SW 1.104.2 draufgespielt) und zwar so, dass zeitgleich kein anderes Zigbee Gerät unter Strom stand – keine Lampe hat eine andere Lampe nach dem Resett „gesehen“
  5. alle 34 resettete Lampen, die drei resetteten iluminize Aktoren und den einen resetteten Ikea Zwischenstecker in Phoscon eingebunden (siehe Anhang: raspbee_gateway_config_2023-12-07 alle_Aktoren_angelernt.dat)
  6. alle 23 Schalter mit neuen Batterien ausgestattet und an Phoscon angelernt (siehe Anhang: raspbee_gateway_config_2023-12-08 komplett.dat)
  7. dann lernte ich die 11 Ikea Tradfri OnOff Taster wieder direkt (falls das Gateway mal ausfällt, will ich wenigstens alle Lampen noch an/aus schalten können (die teilweise an keinem mechanischen Schalter hängen)) an nur die Lampen im jeweiligen Zimmer an. Wobei dabei wieder alle Lampen und Aktoren in der gesamten Wohnung stromlos waren und immer nur die eine Lampe unter Strom stand, die ich mit dem Taster koppelte. Als ich damit fertig war und alle Lampen und Aktoren an den Strom brachte stellte ich fest, dass die Schalter nahezu alle Lampen steuerten – auch die, an die sie nie angelernt wurden.
  8. Ich habe dann alle Schalter aus Phoscon wieder gelöscht
  9. die 11 Ikea Tradfri OnOff Taster resettet und dabei waren wieder die Lampen und Aktoren stromlos, allerdings nicht die anderen Schalter.
  10. Ich habe sie dann nacheinander an Phoscon angemeldet (weiterhin: alle Lampen und Aktoren stromlos) und nacheinander an die Lampen in den Räumen angelernt (siehe Anhang: raspbee_gateway_config_2023-12-09.dat). Leider mit dem gleichen Ergebnis: die Schalter steuern Lampen, an die sie nicht angelernt wurden.
  11. daraufhin habe ich neben den Lampen und den Aktoren auch alle Schalter stromlos gemacht und nun immer nur einen davon zur gleichen Zeit unter Strom gehabt
  12. ich habe zwei 11 Ikea Tradfri OnOff Taster nochmals resettet und nacheinander (ohne dass zwei Lampen oder zwei Ikea Tradfri OnOff Taster gleichzeitig Strom hatten) an zwei Lampen angelernt – jeden Taster an eine andere Lampe, aber auch hier steuerten nach wieder Strom für beide Lampen und beide Taster, beide Taster beide Lampen.
    Wenn ich auf dem Handy mit der App Hue Essentials in die Detailansicht dieser beiden Taster gehe, zeigt es mir auch unterschiedliche IDs an (siehe die Screenshots im Anhang).

:sob:

Maybe(!) when you delete the DDF file for the switches deconz falls back to old c++ join code and creates the group bindings. But you really should better get the GUI running…

Ok, then I have to find time to go step by step to this very long instruction Raspberry Pi Documentation - Remote access you have refer to.

Would you recomend to update the Ikea switches for that?
…I have no Ikea gateway, only the conbee (in a LXC Container) and no good linux knowledge.

You can update the switches via deconz gui ota.

But you will lose group bindings. If you need them don’t update them. Latest firmware supports unicast bindings only

Then of course I won’t update it! Never change a running system - as I had to painfully see once again.
I’ve now learnt all the buttons and configured room-by-room/group-by-group switching for each switch using the Hue Essentials app.

I’ll see how I can get it to work with deCONZ in the near future so that it also works in the event of a gateway failure. Thanks again for pointing out that it couldn’t work the way it did two years ago.

Do you happen to know where the Hue Essentials actions I configured for the switches are stored? In Phoscon they are not visible on the switches or groups in either the new or the old app.

Thank you again and Merry Christmas to you!

I had the same problem after updating to version v2.24.2 in January 2024.
A switch swiched other lamps that they were never coupled with.

After reinstalling the old version 2.16.01 / 21.4.2022 the problem has gone.
Peter