With openHAB 4 and its support for Java 17 a new hardware platform became available: Android
openHAB 4 server runs on Termux on Android.
(just in case people want to run their home automation on their Android tablet)
Don’t forget the Termux-wake-lock.
Lenovo Tab M10 here.
openhab> shell:info
Karaf
Karaf version 4.4.3
Karaf home /data/data/com.termux/files/home/openhab-4/runtime
Karaf base /data/data/com.termux/files/home/openhab-4/userdata
OSGi Framework org.eclipse.osgi-3.18.0.v20220516-2155
JVM
Java Virtual Machine OpenJDK 64-Bit Server VM version 17-internal+0-adhoc..src
Version 17-internal
Vendor Oracle Corporation
Pid 14430
Uptime 7 minutes
Process CPU time 8 minutes
Process CPU load -1.00
System CPU load -1.00
Open file descriptors 185
Max file descriptors 32,768
Total compile time 5 minutes
Threads
Live threads 119
Daemon threads 50
Peak 136
Total started 766
Memory
Current heap size 139,942 kbytes
Maximum heap size 976,896 kbytes
Committed heap size 267,264 kbytes
Pending objects 0
Garbage collector Name = 'G1 Young Generation', Collections = 64, Time = 2.483 seconds
Garbage collector Name = 'G1 Old Generation', Collections = 0, Time = 0.000 seconds
Classes
Current classes loaded 19,299
Total classes loaded 19,367
Total classes unloaded 68
Operating system
Name Linux version 4.9.190+
Architecture aarch64
Processors 8
Total physical memory 3,905,968 kbytes
Free physical memory 669,096 kbytes
This is interesting! Could you provide a little more detail on how you installed openHAB? Did you simply add the apt repositories into termux, and then install?
It would be great if you could provide a brief tutorial. I’ve got an old Galaxy S8 that I could try this out on, but I’ve never used Termux or done a zip install of OH.
This could be a nice way to reuse old Android devices.
The hardest part is to install F-Droid, as it has to be installed via the .apk (Side-loaded)
From the browser on your Android device get the F-Droid.apk from [F-Droid - Free and Open Source Android App Repository] (the blue download button).
google how to side-load for your device.
for my Lenovo it is : find the .apk from Androids File Manager with settings - Memory - Files - Open with Files
You might have to allow install .apks.
Thanks for the details. I might spin it up on my old S8 and then use the Remote openHAB binding to control my existing server.
Looks like it would be tricky to get a Z-Wave USB controller working, but I suppose that could be offloaded to an RPi3 running openHAB (just for Z-Wave devices) or ZWaveJS.