openHAB is an alternative to Home Assistant, and somewhat easier to configure. Where Home Assistant is Python/Yaml based, openHAB is Java.
Both systems has great capabilities, and differs a lot in the approach, but I do prefer openHAB and the UI is better and the UI configuration great.
Java install on Ubuntu
Do not install Java 10 or 11, currently only java 8 is supported (do review here)
sudo apt install openjdk-8-jdk java -version openjdk version "1.8.0_191" OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
With Java 10 accidently installed, i experienced that all things suddenly was "uninitiallized".
Security
Notice that OpenHab has no security, and You need to install it in front of openHab. Do read Securing Communication and access to openHAB
Apache
Camera Binding
I use https://github.com/Skinah/IpCamera for my HIKVisions, but only with images currently. It works okay.