No announcement yet.

Turning a Pi2/Pi3/Linux computer into a Zee-HS2Standard-HS3Pro device

  • Filter
  • Time
  • Show
Clear All
new posts

    Turning a Pi2/Pi3/Linux computer into a Zee-HS2Standard-HS3Pro device

    A full Linux install on the RPi2/RPi3 would be Wheezy or Jessie Lite.
    Preferred Linux install on Intel / AMD based machine would be Ubuntu Server 16.04 or 16.10

    Rethinking this post a bit. Maybe one script do all.

    1 - write image to SD card
    2 - ssh, copy and paste script, make it executable, run it. (it will install TTS, Mono, base HS build and systemd start up)


    Download current Jessie Lite image:

    Raspbian Jessie Lite

    Write the image to an SD card.

    Boot up with the SD card and utilize raspi-config to configure:

    1 - Expand Filesystem to utilize entire SD card
    2 - Change user password
    3 - Go to advanced options
    4 - Set the hostname
    5 - Memory split - give as little memory as possible to the GPU
    Note: here it is assumed you will be running the RPi3 headless. Note you can still use a monitor with the RPi3 but graphics speeds will be slow.
    6 - SSH - enable SSH if it is not already enabled.
    7 - Finish to save your stuff and reboot.
    8 - ssh to your RPi3 using the default user name pi.

    Ubuntu Install

    1 - Server Install is here: Download Ubuntu Server
    2 - LUbuntu is here: lubuntu
    3 - Ubuntu LTS - Desktop is here: Download Ubuntu Desktop

    Write the ISO to a USB stick for quickie installation.
    1 - Boot via USB stick
    2 - follow prompts and utilize defaults
    3 - after you have finished SSH to new machine and continue build via SSH.

    Don't forget to change the default passwords.

    I like to create a homeseer and nickname user plus I like to set up a root password.

    Creating a new user is easy.

    1 - sudo adduser newuser * answer all of the questions
    2 - add user to sudo ==> sudo usermod -aG sudo newuser

    changing root password is easy

    1 - sudo passwd root

    Adding access for root ssh is easy

    1 - sudo nano /etc/ssh_config
    2 - change PermitRootLogin without-password to PermitRootLogin yes
    3 - make sure line reads as so: PasswordAuthentication yes
    4 - save the file
    5 - sudo service ssh reload
    6 - test it by sshing to your new box ==> ssh root@ipofhomeseerbox

    Baby steps and take your time. You cannot break anything. Make sure you keep a copy of the current HomeSeer directory in Windows.

    The Pine64 2Gb machine will run Ubuntu 16.04 64 bit server and Homeseer faster than the RPi2 or RPi3.

    An add for Linux Homeseer running would be Mono. Default new Mono is 4.XX (Mono 3.XX or Mono 4.XX)

    MONO Install

    1 - sudo apt-get update
    2 - sudo apt-get install mono-complete
    3 - sudo apt-get install mono-vbnc
    4 - sudo apt-get install libmono-system-web4.0.cil
    5 - sudo apt-get install libmono-system-design4.0.cil
    6 - sudo apt-get install libmono-system-web-extensions4.0-cil
    7 - sudo apt-get install libmono-system-runtime-caching4.0-cil
    8 - sudo apt-get install ca-certificates-mono
    9 - sudo apt-get install mono-xsp4

    Text to speech install
    Note: Here run speaker dot exe on a wintel computer. Specifically for my Homeseer 3 Pro machine I run Oracle Virtual box and a Wintel VB with MS SAPI.

    1 - sudo apt-get install alsa-utils
    2 - edit the file /etc/modules using:
    A - sudo nano /etc/modules to have line:
    B - snd_bcm2835
    C - If this line is already there then leave the file as is!
    3 - sudo apt-get install mplayer
    4 - sudo nano /etc/mplayer/mplayer.conf and check and add line nolirc=yes

    5 - Festival Text to Speech
    A - sudo apt-get install festival
    B - Try out Festival with: echo “Just what do you think you're doing, Dave?” | festival --tts
    C - or to speak RPi’s IP address: hostname -I | festival --tts

    6 - Espeak Text to Speech
    A - sudo apt-get install espeak
    B - Test Espeak with: English female voice, emphasis on capitals (-k), speaking slowly (-s) using direct text:
    espeak -ven+f3 -k5 -s150 "I've just picked up a fault in the AE35 unit"

    7 -

    After install make sure you update the builds; do it a couple of times.


    1 - sudo apt-get update
    2 - sudo apt-get upgrade

    To run Homeseer 3 you will need a Homeseer Zee, Homeseer Standard or Homeseer Pro license.

    Homeseer 3 in Linux is just a directory that typically sits in the /usr/local/HomeSeer directory.

    Download Homeseer 3 for Linux here:

    1 - wget hxxp://
    2 - tar xavf hslinux_zees2_3_0_0_297.gz

    I personally put my Homeseer Zee directory in the root /HomeSeer
    Other users sometimes use /opt/HomeSeer
    Default HomeSeer directory is: /usr/local/HomeSeer

    Whatever directory you choose just check out the scripts to make sure the HomeSeer directory references are correct.

    Read on in the forum to autostart HomeSeer. I will post methodologies here:

    1 - manually start HS3 by typing ./go in the Homeseer directory via SSH
    2 - one time running it while booting and using cron
    3 - creating a script to start it as a service.

    Personally here manually start it to check it out then later on auto start it.

    1 - manual start up is via /HomeSeer/go (leave the terminal window open)
    2 - manual start up via a cron job in the boot process running /HomeSeer/go
    3 - automatic start up with an upstart script (or sytemd).

    I like to run Webmin to manage the hardware (whatever it is in Linux) and updates.

    Webmin is installed by:

    1 - wget hxxp:// **
    2 - sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
    3 - dpkg --install webmin_1.831_all.deb

    ** xx equals tt

    Many folks like to utilize Windows WinSCP. You can install WinSCP from here ==> WinSCP

    In summary you have three tools to choose from for Linux Homeseer stuff:

    1 - ssh to your Homeseer box
    2 - WinSCP to your Homeseer box
    3 - WebMin management

    Updating a plugin via a zip file

    1 - download beta plugin ZIP file
    2 - copy ZIP file to your Updates3/Zips folder
    3 - if plugin author provides an updater_override.txt file copy it to the HS3 root folder
    4 - From the Manage Plugins page, disable the plugin if it is running.
    5 - Click on Update Listing.
    6 - You should see the Plugin Beta listed.
    7 - Select and install the plugin.
    8 - make sure you copy the updater_override.txt file and preserve the /r/n line feeds - transfer it in binary and you should be fine
    9 - When the plugin installs and runs for the first time, it will remove the updater_override.txt automatically
    10 - note if author doesn't provide an updater_override.txt file you will need to unzip file and manually install files.

    Updating OS

    1 - Use Webmin or
    2 - SSH to your device and run
    3 - sudo apt-get update
    4 - sudo apt-get upgrade
    5 - sudo apt-get autoremove (just cleans up stuff).

    I do this once a week or every couple of weeks.

    Starting Homeseer

    Manual start of Homeseer

    1 - ssh to your Homeseer server IP
    2 - go to your Homeseer directory
    3 - cd /usr/share/HomeSeer (default)
    4- sudo ./go
    5 - keep the terminal window running to watch Homeseer for a bit.
    6 - type shutdown to shutdown homeseer
    do a cat to see what the script does
    sleep 5
    shutdown now

    Automatic start of Homeseer via ./go or ./autostart_hs on the RPi or Ubuntu.

    Zee-2 way

    1 - nano /etc/rc.local
    2 - edit file so it looks like this:
    NOTE: this is how the current Zee-2 starts Homeseer.

    #!/bin/sh -e
    # rc.local
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    # In order to enable or disable this script just change the execution
    # bits.
    # By default this script does nothing.
    sudo /usr/local/HomeSeer/autostart_hs &
    printf "HomeSeer is starting...\n"
    # Print the IP address
    #_IP=$(hostname -I) || true
    #if [ "$_IP" ]; then
    #  printf "My IP address is %s\n" "$_IP"
    sudo /etc/init.d/lighttpd start
    sudo /usr/local/HomeSeer/
    exit 0
    Personally here just do a start on boot using cron - IE: sometimes disable cron and reboot the device without Homeseer running.

    1 - exec sh /usr/local/HomeSeer/
    2 - sleep 30 && exec sh /HomeSeer/autostart_hs

    Creating a service / autostart script using systemd

    Using Linux tools in the Homeseer web GUI

    1 - go to tools / system / linux tools on the Homeseer GUI
    2 - type your password in *
    3 - enter any command here. **

    * use the default password as described
    ** if the command result doesn't display install ==> aha
    sudo apt-get install aha
    Last edited by Pete; March 29, 2017, 04:39 AM.
    - Pete

    Auto mator
    Homeseer 3 Pro - (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
    Homeseer Zee2 (Lite) - (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
    HSTouch on Intel tabletop tablets - Asus AIO

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

    Is this still the best way to establish a Pi3-based system? I've been running HS3 Pro off my main PC but I'd like to have something that is more centrally located in the house, and has a much lower energy draw. I've already got a decommissioned Raspberry Pi 3 that I could use, and in my PC I've just been using a Zwave stick... so I'm ready to rock! I just want to ensure I'm using the most up to date instructions.

    Our neighbourhood is prone to power outages while our infrastructure is being replaced, so I would be really interested to know how I can set it up so that it automatically boots into HS3 when the machine turns on. How would I create that script?