Openhab on Raspberry PI 5

WiFi issues have nothing to do with Etcher or imager.

They’re because the beta image you tried is bookworm distro based, unlike the production images which are still bullseye based.
And in bookworm the debian people changed a lot and even removed support for stuff we have been using in years, without providing an equivalently capable replacement. That was a stab in the back.
WiFi configuration is among these.

Any help is welcome.

1 Like

Hi,
I reinstalled opehabian 64 latest beta using the Raspi Imager with saved credentials for my wifi only and that works the wifi part for me (Raspi 5 - 8GB).
I have read enough to realize, that switching to booworm is not a small, but a big task!

I am willing to put in time to help, unfortunately my knowledge of Linux and programming is very, very small, so that you would have to give me a lot of instructions of what and how to do it. If you do, I will be glad to help.
I put in my first-boot.log, reading this thread above that seems to be of interest.

first-boot.log (253.2 KB)

If I can provide anything else useful, please tell me!

I am aware that this is a beta Version and that not everything wil be running smoothly.
Shall I post everything I come across here? (I never did a “PR” and I am not registered at Github)

For expamle using the openhabian-config (after updating wih menu 01 latest “main” and menu 02 Upgrade System and changing password after exiting the menu and reboot):
When I try to install “Frontail - menu 21” it gives an error. I copied the output from the shell:
frontail.txt (3.9 KB)

Another point ist that the folder /var/lib/openhab/backups/ is write protected, so that I can’t copy my backup into it from Windows (there it shows as \openhabian\openHAB-userdata\backups). Other folders like /var/lib/openhab/tmp are accessible and writable. On my old Raspi3 Openhabian 3.4 this folder had write access.
Is something like that helpful?

If I am not an advanced enough (linux) user to be of “useful” help (e.g. too time consuming for simple task instructions) , please tell me and I will be glad to wait until a stable release comes.

Thank you for the great work you do - I really appreciate it!
Only with the ease of a complete image to use with the raspi, the openhabian-config and then the OpenhabUI am I able to use Openhab at all, which I believe is a great and open system!!!

Pi 5 hatdrive (PCIe extension board for M-key NVMe SSD) can now be pre-ordered.
I have pre-ordered one here:
https://shop.pimoroni.com/products/nvme-base?variant=41219587178579
Seems to be nice as the hat can be mounted at the bottom of a Pi so that the top remains uncovered.

npm is not installed.

1 Like

Hi,
thanks for this answer, which solved the Frontail issue.
I did run

sudo apt-get install npm

and after that the “Frontail - menu 21” did run without errors and was installed properly, so that I access the log viewer now. Thank you.

Eckart

2 Likes

should be

1 Like

Another point is that the folder /var/lib/openhab/backups/ is write protected, so that I can’t copy my backup into it from Windows (there it shows as \openhabian\openHAB-userdata\backups). Other folders like /var/lib/openhab/tmp are accessible and writable. On my old Raspi3 Openhabian 3.4 this folder had write access.

This problem exists since I started wirh openhab 2 … theres an option 14 “fix permissons” in openhab-config which gives access to the backup folder.

I also changed to a pi5 now and used the 64 bit beta 1.9b openhabian image. I can add that samba was missing after the standard installation process. Option 16 added it without a problem.

1 Like

Hello,I have tested openhabian 1.8c on raspberry pi5 , a lot of things seems to work very smooth. But I have problems with installing Homegear .I need this for my heating control (cunx).
I hope I will get help here :wink:

Best Regards, Martin

which of the 3 images did you use?

I don’t think so. This is not an openHABian issue. Homegear still doesn’t support bookworm.
You would need to ask Homegear devs for support over at their forum.

I use openhabian-pi-raspios64-202402052003-git4f124c2-crc217d2cd1.img.xz

I’m about to release openHABian 1.9 with full support for bookworm and all RPi models (incl. 5).

Please help with testing and provide your feedback in this thread.

2 Likes

There have not been an Openhabian image when I installed Openhab on my Pi5 with NVMe-SSD-drive. Therefore I used the installation with APT packages (option 2).
I installed “Raspberry Pi OS Lite (64-bit)”, Java 17, Samba, Openhab 4.1.1, Mosquitto 2.0.11 and Node.js v21.6.2.

bguser@raspberrypi5:~ $ cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
bguser@raspberrypi5:~ $ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 238,5G  0 disk
├─nvme0n1p1 259:1    0   512M  0 part /boot/firmware
└─nvme0n1p2 259:2    0   238G  0 part /
bguser@raspberrypi5:~ $ java -version
openjdk version "17.0.10" 2024-01-16 LTS
OpenJDK Runtime Environment Zulu17.48+15-CA (build 17.0.10+7-LTS)
OpenJDK 64-Bit Server VM Zulu17.48+15-CA (build 17.0.10+7-LTS, mixed mode, sharing)
bguser@raspberrypi5:~ $

I used Openhabian in the past and are missing the Openhabian tool a bit, especially the Frontail log viewer in the web-browser (I need a SSH session and have to run openhab-cli showlogs).

Is it possible to install the “Openhabian tool” over a running Openhab installation - or is the Openhabian image especially for new SD-card installations?
Looking forward if it is possible to help with the testing of Openhabian on Pi5.

It’s an image for good reasons as its workings rely on a number of prerequisites in HW and OS config that are not guaranteed to be there when you bring that part in yourself.
It’s not built to be installed on whatever unsupported hardware or selfmade OS.

Thanks but no, thanks, read here why.

If you want to install frontail, execute the following script as sudo:

#This installs nodejs (it might run with version 21, too, but I am not sure). You may want to uninstall version 21 first
curl -fsSL "https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key" | gpg --dearmor > /usr/share/keyrings/nodesource.gpg
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" > /etc/apt/sources.list.d/nodesource.list
apt-get install --yes nodejs

#Install NPM
apt-get install --yes npm

#Install FRONTAIL
useradd --groups bguser,openhab -s /bin/bash -d /var/tmp frontail
mkdir -p /usr/local/lib/node_modules/frontail
git clone https://github.com/Interstellar0verdrive/frontail_AEM.git /usr/local/lib/node_modules/frontail
cd /usr/local/lib/node_modules/frontail
npm audit fix --omit=dev
npm update --audit=false --omit=dev
npm install --global --audit=false --omit=dev
echo '[Unit]
Description=Frontail openHAB instance, reachable at http://%H:9001
Documentation=https://github.com/mthenw/frontail
After=openhab.service
PartOf=openhab.service

[Service]
Type=simple
ExecStart=/usr/local/lib/node_modules/frontail/bin/frontail --disable-usage-stats --ui-highlight --ui-highlight-preset /usr/local/lib/node_modules/frontail/preset/openhab_AEM.json --theme openhab_AEM --lines 2000 --number 200 /var/log/openhab/openhab.log /var/log/openhab/events.log
Restart=always
User=frontail
Group=openhab
Environment=PATH=/usr/local/bin:/usr/bin/
Environment=NODE_ENV=production
WorkingDirectory=/usr/bin/

[Install]
WantedBy=multi-user.target' | tee /etc/systemd/system/frontail.service
chmod 644 /etc/systemd/system/frontail.service
systemctl enable --now frontail.service
1 Like

Thank you @Oliver2 for your help. Your instructions help me to install Frontail.

I had a few problems downgrading node v21.6.2 to node v18.19.1 and downgrade npm 10.5.0 to 10.2.4

bguser@raspberrypi5:~ $ sudo su
root@raspberrypi5:/home/bguser# apt-get install --yes nodejs
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
nodejs ist schon die neueste Version (21.6.2-1nodesource1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
root@raspberrypi5:/home/bguser# node -v
v18.19.1
root@raspberrypi5:/home/bguser#

root@raspberrypi5:/usr/local/lib/node_modules/frontail# npm audit fix --omit=dev
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient…
npm WARN old lockfile
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

added 139 packages, and audited 140 packages in 20s

After I run “npm audit fix --force” I still had 4 moderate severity vulnerabilities

… anyway I finished the installation … and Frontail works! Thank you!
The next days I’ll check possible difference between “Frontail web view” and “openhab-config showlogs”


Thanks again for your great support!

That‘s something we cannot solve. These errors require a developer to be fixed, but Frontail is no longer maintained.
Anyway, at the moment it is working for all of us - that‘s the good news.

You mean openhab-cli showlogs (do not mix up with openhabian-config).
There are no differences because both openhab-cli and frontail simply show the content of log files events.log and openhab.log.

1 Like

" * Zwave with Razberry board - After changing the “branch” to latest (main) I can disable the serial console (menu 35 of openhabian config). If I also select “move Bluetooth to miniuart”, the select “*” does not stay selected, if I leave the menu and re-enter it or reboot, so it does not seem to work. Do I still need this with Raspi5? Anyway my Zwave-Controller is not recognized, so I am lacking those “Things” unfortunately."

Hi,
@ecko I got the same problem here, ZWave with Razbbery board V2 and Pi 5 4gb, I bought yesterday Pi 5 and I try to make it work, still can’t disable mini uart from config…
"export EXTRA_JAVA_OPTS=-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA10
openhabian@openhabian:~ $ /dev/ttyAMA10
-bash: /dev/ttyAMA10: Permission denied

dtoverlay=pi3-disable-bt
openhabian@openhabian:~ $ ls /dev/tty*

I can see “/dev/ttyAMA10” and I can selected it from UI → Z-Wave Serial Controller at Port Configuration /dev/ttyAMA10 , but I got Status:OFFLINE, BRIDGE_OFFLINE, Controller is offline. It working fine on PI3, I bought yesterday a Pi 5 and I need help… Do you have any advice?
Thanks

Hi,
same situation with me. I haven‘t got it working yet. I decided to sit it out and wait for a functioning version of openhabian. Until then my raspi 3b has to do all the work.
I have tried to install a z-way server alongside openhabian (as they seem to have a working bookworm version) to switch from the z-wave-binding, to the z-way-binding, but I could not reach the z-way web-interface even though the server was running, to set it up properly. But that would have been a sort of „work around“. Maybe that idea helps you and you get it to work.

Greetings
Eckart

1 Like

Hello,

Have you considered this

/boot/config.txt
DO NOT EDIT THIS FILE
The file you are looking for has moved to /boot/firmware/config.txt

So you need to edit

/boot/firmware/config.txt

Try openHABian v1.9c.

Open Source Software is a joint effort and anyone to benefit is expected to contribute his or her share. So if 1.9c still does not work, please help with development and follow the debug guide to identify the cause rather than just wait for someone else to do the work. Thank you.

2 Likes