- Install Ubuntu minimal
- Login to your UBUNTU with user root and password odroid
- Reset password with passwd
- Reboot system - reboot
- Update with apt-get update && apt-get upgrade
- If you have issue with update - run dpkg --configure -a - then try again
- If your distribution is old you can run apt-get dist-upgrade
- You can optionally install extra packages: apt install mc nano build-essential
- You can use mc as file explorer - this is Midnight Commander - which works perfectly through SSH connection
- Install pre-requested packages for OpenHAB
- JAVA - we would use ZULU:
Import Azul's public key add the repository and install ZULU.
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9 apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main' apt-get update apt install zulu-embedded-8
Install extra packages as requested by OpenHAB:
apt-get install screen mc vim git htop apt-get install apt-transport-https
- JAVA - we would use ZULU:
Install OpenHAB repositories for UBUNTU (as root user) - we need to add key and repository
wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | apt-key add - echo 'deb https://dl.bintray.com/openhab/apt-repo2 stable main' | tee /etc/apt/sources.list.d/openhab2.list apt update
Install OpenHAB and all addonsadd-ons
apt-get install openhab2 apt-get install openhab2-addons
- Confirm that all startup scripts are working fine
14. Check if you can access your OpenHAB at http://IP_OF_ODROID:8080
Install Z-way server
Default Razberry installation was prepared for Raspberry Pi - it would as well work perfectly on Odroid C1. Before you run default installer - create user pi in your system. This would be standard user - with ID 1000 - we can set up an account in such a way that login would be not allowed.
We can create this account in two ways - one - standard user with locked login privileges... second - system user - which would use the same name for the group. As a default, this user would have no home folder... which is not needed.
A. First method
useradd -M pi usermod -L pi
B. Second method
useradd -r pi
Now we can start installation - all scripts for Rasberry Pi should work as expected. It would be necessary only to change the serial port.
Just run one command as root:
ln -s /dev/ttyS2 /dev/ttyAMA0 reboot
Keep in mind this link is not permanent - so it must be recreated every time you restart your Odroid.
Generally, in Z-way server you can change the port to use as always /dev/ttyS2 - I would suggest using that solution.
After installation, go to http://IP_ODROID:8083 and finish initial setup.
I would suggest visiting Apps- and then setup in z-wave a proper port:
- Go to Apps → Active
- Search for z-wave network access and select settings
- In this place, you can define a proper port to be used:
- If you plan to use API without authentication - then just select that option. I would suggest always to use authentication - for security reasons. Unless you are sure that your local network is extremely safe.
Configuration for OpenHAB
- Select Standard setup at the first step
- Wait a few moments for OpenHAB start-up and initial configuration.
- As interface - I have used PaperUI
- Go to Add-ons and select Bindings - search for z-way
- Install this add-on as we need this to communicate with all our Z-wave devices.
- Go to Bindings and set-up this addon.
- In Inbox press + button then select your add-on.
- Provide all details to access your Z-way server - using admin level account.
- Confirm. After a few moments, you should see all created devices in Z-way server. If there was no device created - just create in Z-way server. Then come back to OpenHAB and refresh Things.
- To add Things - just go to Things menu and select devices to be added. It would ask you to define some basic information. After confirm - you should see your devices in Dashboard.
This manual is based on official installation docs from OpenHAB with extra information for Z-way server setup.