No announcement yet.

Turning RPi2 in to a remote Z-Wave plus device

  • Filter
  • Time
  • Show
Clear All
new posts

  • Turning RPi2 in to a remote Z-Wave plus device

    Just an FYI here. I have used this to remote run the X10 and UPB and HAI plugins.

    I have migrated my Zee-2 RPI Homeseer 3 lite over to an AMD based Xi5A.

    I wanted to continue to utilize the RPi2 (in the attic) GPIO ZWave Plus card.

    This will work only Linux to Linux and not Linux to Windows or Windows to Linux. Note that I recommend that you do not utilize root for the script.

    Make sure that Mono is installed on the RPi2.

    1 - used the original /HomeSeer/HSPI_ZWave.exe file on the RPi2.
    * you can also just copy the HSPI_ZWave.exe file to any directory on the RPi2. Make sure the two HSPI_ZWave.exe are identical versions of the plugin.

    2 - create a simple two line bash script on your Homeseer 3 server. Call it anything you want. I called mine and it is in the /HomeSeer/scripts directory.

    ssh root@ip-of-slave-zwaver-pi "/usr/bin/mono /HomeSeer/HSPI_ZWave.exe server=p-of-mainHS3-server  >> /dev/null 2>&1"
    3 - chmod u+x

    4 - SSH to your main HS3 Linux box

    5 - cd /HomeSeer/scripts * or whatever directory you have Homeseer 3 installed.

    6 - execute the script ==> ./

    7 - you will need to type your password for the script to execute.

    8 - Go the your HS3 GUI log / plugins section and you will see your Z-Wave nodes load. The plugins section will show a remote Z-Wave connection. See attached picture.

    9 - to automate the login using the script do the following.

    Step 1: Create public and private keys using ssh-key-gen on local-host. Here is an example.

    jsmith@local-host$ [Note: You are on local-host here]

    jsmith@local-host$ ssh-keygen
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key]
    Enter passphrase (empty for no passphrase): [Press enter key]
    Enter same passphrase again: [Pess enter key]
    Your identification has been saved in /home/jsmith/.ssh/id_rsa.
    Your public key has been saved in /home/jsmith/.ssh/
    The key fingerprint is:
    33:b3:fe:af:95:95:18:11:31:d5:de:96:2f:f2:35:f9 jsmith@local-host
    Step 2: Copy the public key to remote-host using ssh-copy-id

    jsmith@local-host$ ssh-copy-id -i ~/.ssh/ remote-host
    jsmith@remote-host's password:
    Now try logging into the machine, with "ssh 'remote-host'", and check in:
    to make sure we haven't added extra keys that you weren't expecting.

    Step 3: Login to remote-host without entering the password

    jsmith@local-host$ ssh remote-host
    Last login: Sun Nov 16 17:22:33 2008 from
    [Note: SSH did not ask for password.]
    jsmith@remote-host$ [Note: You are on remote-host here]
    10 - Create a manual event to run the bash script. See 2nd attached picture.

    11 - run the event manually and you should see the remote Z-Wave controller connect.

    12 - autostart the event by editing your Startup.vb file adding the following lines. Note this is an example using my created Start Z-Wave event.

    ' Start Z-Wave
    hs.triggerevent("Start Z-Wave")
    13 - test the autostart remote Z-wave by shutting down Homeseer and rebooting the device.

    Please post comments / suggestions / adds over here===>Turning an RPi2 in to a remote Z-Wave plus device
    Attached Files
    Last edited by Pete; July 13th, 2016, 09:54 PM.
    - Pete

    Auto mator
    Homeseer 3 Pro - (Linux) - Ubuntu 18.04/W7e 64 bit Intel CPU - Mono 6.00
    Homeseer Zee2 (Lite) - (Linux) - Ubuntu 18.04/W7e BeeLink 4Gb BT3 Pro - Mono 6.00

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation.