During an upgrade system (02) with openhabian-config I noticed some remarks related to deconz_2.14.01
Important: enable_uart=1 should be set in /boot/config (RaspBee only)
Important: /boot/cmdline must not contain console=serial0 (RaspBee only)
The ConBee II USB stick was added just lately to the same machine as OH and I did not experienced any problems so far and the Phoscon APP was also at this point still working as normal.
However after a reboot of this Pi the Phoscon APP/Binding stopped working.
I found a similar but older topic started by @fanavity about this subject
Tried to change /boot/config.txt from
BTW LATER THIS APPEARED THE WRONG SOLUTION FOR TWO REASONS; I HAVE A CONBEE II AND WAS MIXING THE TWO FILES SO DO NOT CUT & PASTE THIS
But likely this is an incorrect/incomplete syntax because after another reboot the Phoscon APP/Binding was not working anymore.
For NOOBS like me the workaround to redo in openhabian-config menu-option '29 - deCONZ to restart this. But likely I will need to redo this after each reboot.
Can anyone guide me to get a more permanent solution? Thank you.
System details are:
Installed = OpenHABian
Release Build = 3.2.0 release build
Release = Raspbian GNU/Linux 10 (buster)
Kernel = Linux 5.10.63-v7l+ armv7l
Platform = Raspberry Pi 4 Model B Rev 1.1
BTW Most of this info is not visible anymore when you logon with SSH but google was my friend:
uname -snrvmo
I would suggest to run sudo journalctl | grep -i deconz
or sudo journalctl -xu deconz
this should give a hint about why the deconz service cannot be started.
These commands are helpful and after another test reboot of my system the inital log is:
Feb 15 09:20:34 openhabian sudo[24197]: openhabian : TTY=pts/0 ; PWD=/home/openhabian ; USER=root ; COMMAND=/usr/bin/journalctl -xu deconz
Feb 15 09:27:03 openhabian systemd[1]: Stopping deCONZ: ZigBee gateway -- REST API...
Feb 15 09:27:03 openhabian systemd[1]: Stopping deCONZ: ZigBee gateway -- WIFI Service...
Feb 15 09:27:03 openhabian systemd[1]: Stopping deCONZ: ZigBee gateway -- Update Service...
Feb 15 09:27:03 openhabian systemd[1]: deconz-update.service: Main process exited, code=killed, status=15/TERM
Feb 15 09:27:03 openhabian systemd[1]: deconz-update.service: Succeeded.
Feb 15 09:27:03 openhabian systemd[1]: Stopped deCONZ: ZigBee gateway -- Update Service.
Feb 15 09:27:03 openhabian systemd[1]: deconz-wifi.service: Main process exited, code=killed, status=15/TERM
Feb 15 09:27:03 openhabian systemd[1]: deconz-wifi.service: Succeeded.
Feb 15 09:27:03 openhabian systemd[1]: Stopped deCONZ: ZigBee gateway -- WIFI Service.
Feb 15 09:27:13 openhabian systemd[1]: deconz.service: Main process exited, code=exited, status=143/n/a
Feb 15 09:27:13 openhabian systemd[1]: deconz.service: Failed with result 'exit-code'.
Feb 15 09:27:13 openhabian systemd[1]: Stopped deCONZ: ZigBee gateway -- REST API.
Feb 15 09:27:26 openhabian systemd[1]: Started deCONZ: ZigBee gateway -- WIFI Service.
Feb 15 09:27:26 openhabian systemd[1]: Started deCONZ: ZigBee gateway -- Update Service.
Feb 15 09:29:33 openhabian sudo[1634]: openhabian : TTY=pts/0 ; PWD=/home/openhabian ; USER=root ; COMMAND=/usr/bin/journalctl -xu deconz
In OH deCONZ is stuck on initializing and the bridge is in error, the deCONZ APP is not accessible.
Performing my NOOBS solution (menu option ‘29’) gives the following lines in the background:
openhabian@openhabian:~ $ sudo openhabian-config
2022-02-15_09:40:18_CET [openHABian] Checking for root privileges... OK
2022-02-15_09:40:19_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2022-02-15_09:40:19_CET [openHABian] openHABian configuration tool version: [openHAB3]{2022-01-28T11:18:18+01:00}(aaf8aca)
2022-02-15_09:40:19_CET [openHABian] Checking for changes in origin branch openHAB3... OK
2022-02-15_09:40:23_CET [openHABian] Switching to branch openHAB3... OK
2022-02-15_09:40:23_CET [openHABian] Adding slightly tuned bash configuration files to system... OK
2022-02-15_09:41:14_CET [openHABian] Updating Linux package information... OK
2022-02-15_09:41:16_CET [openHABian] Adding required keys to apt... OK
2022-02-15_09:41:16_CET [openHABian] Preparing deCONZ repository ... OK
2022-02-15_09:41:22_CET [openHABian] Installing deCONZ ... OK
and adds this to the log:
Feb 15 09:41:31 openhabian systemd[1]: /lib/systemd/system/deconz-gui.service:10: Unknown lvalue 'StartLimitIntervalSec' in section 'Service', ignoring
Feb 15 09:41:31 openhabian systemd[1]: /lib/systemd/system/deconz-gui.service:10: Unknown lvalue 'StartLimitIntervalSec' in section 'Service', ignoring
Feb 15 09:41:31 openhabian systemd[1]: Stopping deCONZ: ZigBee gateway -- WIFI Service...
Feb 15 09:41:31 openhabian systemd[1]: deconz-wifi.service: Main process exited, code=killed, status=15/TERM
Feb 15 09:41:31 openhabian systemd[1]: deconz-wifi.service: Succeeded.
Feb 15 09:41:31 openhabian systemd[1]: Stopped deCONZ: ZigBee gateway -- WIFI Service.
Feb 15 09:41:31 openhabian systemd[1]: /lib/systemd/system/deconz-gui.service:10: Unknown lvalue 'StartLimitIntervalSec' in section 'Service', ignoring
Feb 15 09:41:31 openhabian systemd[1]: /lib/systemd/system/deconz-gui.service:10: Unknown lvalue 'StartLimitIntervalSec' in section 'Service', ignoring
Feb 15 09:41:32 openhabian systemd[1]: Started deCONZ: ZigBee gateway -- REST API.
Feb 15 09:41:32 openhabian systemd[1]: Starting deCONZ: ZigBee gateway -- Initialisation...
Feb 15 09:41:32 openhabian deCONZ-init.sh[3891]: starting deconz-wifi.service
Feb 15 09:41:32 openhabian systemd[1]: Started deCONZ: ZigBee gateway -- WIFI Service.
Feb 15 09:41:32 openhabian deCONZ-init.sh[3891]: Created symlink /etc/systemd/system/multi-user.target.wants/deconz-wifi.service → /lib/systemd/system/deconz-wifi.service.
Feb 15 09:41:32 openhabian deCONZ[3890]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-openhabian'
Feb 15 09:41:32 openhabian systemd[1]: deconz-init.service: Succeeded.
Feb 15 09:41:32 openhabian systemd[1]: Started deCONZ: ZigBee gateway -- Initialisation.
Feb 15 09:41:33 openhabian deCONZ[3890]: libpng warning: iCCP: known incorrect sRGB profile
Feb 15 09:41:34 openhabian deCONZ[3890]: This plugin does not support propagateSizeHints()
Feb 15 09:41:34 openhabian deCONZ[3890]: This plugin does not support propagateSizeHints()
Feb 15 09:41:36 openhabian deCONZ[3890]: This plugin does not support propagateSizeHints()
Feb 15 09:41:44 openhabian deCONZ-update2.sh[387]: found deCONZ port 8081
Feb 15 09:41:44 openhabian deCONZ-update2.sh[387]: use database file /home/openhabian/.local/share/dresden-elektronik/deCONZ/zll.db
Feb 15 09:41:44 openhabian deCONZ-update2.sh[387]: process update state noupdates
Feb 15 09:44:22 openhabian sudo[5613]: openhabian : TTY=pts/0 ; PWD=/home/openhabian ; USER=root ; COMMAND=/usr/bin/journalctl -xu deconz
And both the bridge and APP are back alive.
However I not able to determine what is missing and should be changed to get this service started after a reboot except for the initial hint (what brings me back to the syntax problem)
So if anyone has the ConBee II on a the same device as Openhab may be I can do a T&E with their /boot/config.txt to see if that is the solution.
Thank you for your input, in my system (also a Pi4) difference are:
file '/etc/systemd/system/deconz.service.d/override.conf ’ is empty
file ‘/etc/udev/rules.d/69-conbee.rules’ is identical except for last line which is still on comment
file ‘/boot/config.txt’ identical plus additial line with ‘dtoverlay=disable-wifi’ because my Pi4 is wired and I do not use here Wifi
file ‘/boot/cmdline.txt’ did not change this file/reverted back to original because I RTFM comments better and realised this was only required for a RaspBee and not for the ConBee II
So think my solution will be in the 1st file, explore that further so thank you again.