Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install Ubuntu minimal
  2. Login to your UBUNTU with user root and password odroid
  3. Reset password with passwd
  4. Reboot system -  reboot
  5. Update with apt-get update && apt-get upgrade
  6. If you have issue with update - run dpkg --configure -a - then try again
  7. If your distribution is old you can run apt-get dist-upgrade 
  8. You can optionally install extra packages: apt install mc nano build-essential
  9. You can use mc as file explorer - this is Midnight Commander - which works perfectly through SSH connection
  10. Install pre-requested packages for OpenHAB
    1. JAVA - we would use ZULU:
      1. Import Azul's public key add the repository and install ZULU.

        Code Block
        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
    2. Install extra packages as requested by OpenHAB:

      Code Block
      apt-get install screen mc vim git htop
      apt-get install apt-transport-https
  11. Install OpenHAB repositories for UBUNTU (as root user) - we need to add key and repository

    Code Block
    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
  12. Install OpenHAB and all addonsadd-ons

    Code Block
    apt-get install openhab2
    apt-get install openhab2-addons
  13. 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

Code Block
useradd -M pi
usermod -L pi

B. Second method

Code Block
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:

...

Code Block
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:

  1. Go to Apps → Active

    Image Added
  2. Search for z-wave network access and select settings

    Image Added
  3. In this place, you can define a proper port to be used:
    Image Added
  4. 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

...

  1. Select Standard setup at the first step
  2. Wait a few moments for OpenHAB start-up and initial configuration.
  3. As interface - I have used PaperUI

  4. Go to Add-ons and select Bindings - search for z-way
  5. Install this add-on as we need this to communicate with all our Z-wave devices.
  6. Go to Bindings and set-up this addon.

  7. In Inbox press + button then select your add-on.
  8. Provide all details to access your Z-way server - using admin level account.
  9. 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. 
  10. 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. 



Info

This manual is based on official installation docs from OpenHAB with extra information for Z-way server setup.

...