I've made the conversion from Vera to HS3 over the past month or so. In that time, I have gleamed quite a bit across a number of sources that I wanted to share with the community in a single guide as it may help a lot of other people new to Homeseer if they want to do a similar setup
My Setup:
This setup has been rock solid with zero issues. This diagram is the setup I'm running (HS3 running on Ubuntu VM and a Remote Z-Wave interface (HS SmartStick+ connected to a Raspberry Pi 3 (RPi3) B+ using SER2NET to expose the USB interface to the network). This allows me to host my HS3 server within my network equipment closet and have the RPi Z-Wave device anywhere in the house (since I have the whole house wired for ethernet). For those that don't have wired ethernet, this setup should still work for WiFi networks (just imagine the dotted lines connecting the objects below being wireless connections).
Step 1: Install HS3
Step 2: Install Raspberry Pi 3 OS (Raspbian Lite)
Hardware: I chose a 16GB MicroSD card. IMPORTANT: Raspberry Pi 3 B+ needs a Class 10 or higher grade card.
You want to make sure the RPi always has a static IP address so the HS3 server can find it on the network. If DHCP is used, the address will periodically change and the HS3 server will lose connection to the RPi3. You can either set a static IP in the DHCP server like I did or you can configure the RPi to have a static IP.
After you configure the static IP, reboot the RPi:
Step 4: Install ser2net on the RPi3
ser2net allows COMM ports (such as serial and USB) to be exposed to the network through a TCP port. This makes it really easy for the HS3 Z-Wave plugin to connect to the RPi3 and use the Smartstick+ Z-Wave interface remotely (anywhere in the world if you want).
Step 6: Add Z-Wave Devices
Hopefully this guide will help some newer folks out there if they want to do this sort of similar setup. If you have any questions, feel free to reply or reach out to me.
One side note about the security of this approach - since the USB of the RPi is exposed to the local network without authentication, I have it in a separate subnet/VLAN along with some other home automation/security related devices. Very few devices on my network can access this "security" network.
Thanks,
Ryan
My Setup:
This setup has been rock solid with zero issues. This diagram is the setup I'm running (HS3 running on Ubuntu VM and a Remote Z-Wave interface (HS SmartStick+ connected to a Raspberry Pi 3 (RPi3) B+ using SER2NET to expose the USB interface to the network). This allows me to host my HS3 server within my network equipment closet and have the RPi Z-Wave device anywhere in the house (since I have the whole house wired for ethernet). For those that don't have wired ethernet, this setup should still work for WiFi networks (just imagine the dotted lines connecting the objects below being wireless connections).
Step 1: Install HS3
- I used this fantastic guide by to get my HS3 running on Ubuntu 18.10.
- Reboot the Ubuntu server (missing from the linked guide).
- Load the initial webpage: http://find.homeseer.com/findhomeseer/
- Install the HS3 license
- Modify any additional configuration settings you want
- 4 vCPU
- 8 GB Memory
- 20 GB HDD
Step 2: Install Raspberry Pi 3 OS (Raspbian Lite)
Hardware: I chose a 16GB MicroSD card. IMPORTANT: Raspberry Pi 3 B+ needs a Class 10 or higher grade card.
- Install NOOBS on the MicroSD card using this Raspberry Pi tutorial
- Insert the MicroSD card and connect the Smartstick+ USB, Ethernet cable (if you have one), HDMI monitor, keyboard, and mouse to the RPi3 and power it on.
- Once the RPi boots to the install menu, select Raspbian Lite from the list of OS choices (it may take a minute or so to display the full list). Follow the prompts to install the OS (I chose all defaults except I set my local timezone).
- Once the RPi has finished installing the OS, reboot it.
- Login (default username/password = pi / raspberry)
- If you don't have the RPi connected via an ethernet cable and instead need to use WiFi, now is the time to connect it.
- Open the Config Menu:
Code:
sudo raspi-config
- Select 2 Network Options
- Select N2 Wi-fi
- Choose your country
- Enter the WiFi network's SSID
- Enter the WiFi network's passphrase
- If it works, you should get a success (and no error message). If it didn't work, check the SSID and passphrase.
- Exit the config menu
- Open the Config Menu:
- Enable SSH
- Open the Config Menu:
Code:
sudo raspi-config
- Select 5 Interfacing Options
- Select P2 SSH
- Select Yes
- Exit the config menu
- Open the Config Menu:
- Change the default password:
Code:
passwd
You want to make sure the RPi always has a static IP address so the HS3 server can find it on the network. If DHCP is used, the address will periodically change and the HS3 server will lose connection to the RPi3. You can either set a static IP in the DHCP server like I did or you can configure the RPi to have a static IP.
After you configure the static IP, reboot the RPi:
Code:
sudo reboot now
ser2net allows COMM ports (such as serial and USB) to be exposed to the network through a TCP port. This makes it really easy for the HS3 Z-Wave plugin to connect to the RPi3 and use the Smartstick+ Z-Wave interface remotely (anywhere in the world if you want).
- Log back into the RPi's SSH interface (remember to use the new static IP address you set).
- Run the following command to install ser2net:
Code:
sudo apt-get install ser2net
- Now we need to determine the "device address" of the USB port where the Smartstick+ is located. ser2net uses this to map to a network port.
- Run the following command:
Code:
dmesg | grep tty | grep USB
- The "device address" will start with tty (default should be ttyACM0).
- Run the following command:
- Edit the ser2net.conf file and map the USB device address to a network port. I used port 4000 (doesn't really matter as long as it is above 1024).
- Open the /etc/ser2net.conf file:
Code:
sudo nano /etc/ser2net.conf
- Move the cursor all the way to the bottom of the file
- Add the following line of code beneath everything else:
Code:
4000:raw:0:/dev/ttyACM0:115200
- NOTE: The format is <TCP port>:<state>:<timeout>:<device>:<options>
- You can understand the fields more in the ser2net man page
- Save and Exit (Control + X, then Y)
- Open the /etc/ser2net.conf file:
- Restart the ser2net service:
Code:
sudo systemctl restart ser2net
- From the HS3 webpage, go to Plugins >> Manage.
- Expand Additional Interfaces >> Lighting & Primary Technology.
- Select the HomeSeer Z-Wave plugin and click Download and Install (just below Additional Interfaces).
- Once it's installed, enable the plugin.
- Once the plugin has enabled, go to Plugins >> Z-Wave >> Controller Management
- Click Add Interface
- Name: (whatever you want to name it)
- Interface Model: Ethernet Interface
- IP Address: <static ip address of the RPi3>
- Port Number: <ser2net port> (Mine was port 4000)
- Click Add
- Click the Enable box (it should successfully connect to the RPi3!)
- Expand Z-Wave Networks and Options
- Rename the network to whatever you want
Step 6: Add Z-Wave Devices
- From the HS2 webpage, go to Plugins >> Z-Wave >> Controller Management
- Expand Z-Wave Interfaces
- From the Actions dropdown, select Add/Include a Node
- Click the Start button and then press the Programming button on the Z-Wave device itself. You should see activity in the dialog box. If you do, congrats! It works!
Hopefully this guide will help some newer folks out there if they want to do this sort of similar setup. If you have any questions, feel free to reply or reach out to me.
One side note about the security of this approach - since the USB of the RPi is exposed to the local network without authentication, I have it in a separate subnet/VLAN along with some other home automation/security related devices. Very few devices on my network can access this "security" network.
Thanks,
Ryan
Comment