Setup nymea on a UniPi Neuron


Requirements

  • UniPi Neuron
  • 12V Power Supply
  • Micro SD Card, minimum size 4GB
  • LAN Connection to a router

Step 1: Downloading and preparing the image

  • Download the latest Raspbian Stretch Image
  • Flash the SD Card
  • Add an empty ssh file to the boot partition
  • Plug the SD card into the UniPi and power on
    • Use ifconfig to get your IP Address
    • use nmap -sP YOURIPADDRESS/24 to find the IP address of your UniPi
    • ssh pi@IPADDRESS - Password is raspberry
      • remove known hosts if ssh complains
  • Run the following command:

    $ sudo apt-get update
    
    $ sudo apt-get upgrade
    
    $ sudo apt-get install git dirmngr build-essential qt5-default i2c-tools
  • Once this is done, please run:

    $ sudo raspi-config
  • Inside there do the following things:

    *   Interfaces > I2C > Enable
    *   Interfaces > SPI > Enable
    *   Interfaces > Serial Port
    *   Disable Access over serial port
    *   Enable Hardware
  • After that, exit raspi-config and reboot the device.

    Step 2: Install nymea


  • Connect back to the UniPi
  • Type sudo nano /etc/apt/sources.list.d/nymea.list and add those lines:

    add "
    ## nymea repo
    deb http://repository.nymea.io stretch main
    deb-src http://repository.nymea.io stretch main
    "
  • Close and save the file and then run:

    $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key A1A19ED6
    $ sudo apt-get update
    $ sudo apt-get install nymea nymea-plugins nymea-cli nymea-webinterface libnymea1-dev



    Step 3: Install Evok


  • While still in the terminal, run this script to install Evok

    $ git clone https://github.com/UniPiTechnology/evok.git
    $ cd evok
    $ chmod +x install-evok.sh uninstall-evok.sh
    $ sudo ./install-evok.sh
       Webserber Port: 1060
       API Port: 8080
       UniPi Model: 1) Neuron
  • Reboot your device to finalize.

    Step 4: Start nymea


  • In order to start the nymead just type:

    $ sudo systemctl start nymead
  • Install nymea:app on your Smartphone
  • Connect to the UniPi using nymea:app
  • Try to Add Thing
    • Unipi → Select one of the IOs your UniPi model offers
  • Enjoy and have fun!