www.homeseer.com    
 

Go Back   HomeSeer Message Board > HomeSeer Products & Services > HomeSeer Software > HS3 / HS3PRO > HS3-Pi Discussion

HS3-Pi Discussion Discussions related to the released version of HS3-Pi for the Raspberry Pi

Reply
 
Thread Tools Display Modes
  #21  
Old December 5th, 2017, 11:01 PM
pmoneill pmoneill is offline
Viewer
 
Join Date: Dec 2017
Location: Fort Collins, Colorado
Posts: 3
Correct Installation of HS3 Standard on Raspberry Pi 3

I have not found any official Linux installation instructions from Home Seer while none of the forum posts are complete and accurate. Here is the process I developed over the last week. I am not an expert so I'll take the community's inputs to improve this post.

Overview
These instructions are written for installing HS3 Standard on a headless Raspberry Pi 3B (RPi 3) microcomputer running its standard Raspbian operating system. Raspbian is the Debian-based version of Linux provided by the Raspberry Pi Foundation. As of this writing, the current version of Raspbian is called Stretch, which succeeded Jessie in September 2017. Since HS3 is easily accessed from a web browser or mobile app, there is no need to add a monitor or keyboard to the Raspberry Pi, i.e. it can be run “headless”, though a keyboard and monitor are helpful temporarily during installation. Not using HS3 from the controller’s monitor and dedicating the RPi to home automation, there is no need for the Linux graphical user interface and the application software that comes with the standard Raspbian installation, so use the Lite version instead. This will free up compute resources to allow HS3 to perform better.

HomeSeer is written in Microsoft .NET; therefore it is fundamentally a Microsoft Windows package. HomeSeer is enabled to run on Linux by the Mono .NET emulator. Not being a usual part of a Linux installation, Mono must be installed separately. In Linux, HomeSeer resides entirely in the HomeSeer directory under the user’s home directory. By default in Raspbian Linux, this is the /home/pi/HomeSeer directory.

Linux Installation
Install Raspbian Lite:
1. Download Raspbian Stretch Lite to a PC.
2. Write the Raspbian image to a micro SD card with the Etcher SD card image writer for Linux and Windows ( https://etcher.io/ ).
3. Insert this micro SD card into the powered-down Raspberry Pi 3.
4. Connect the RPi to your network with an Ethernet cable if you are not using Wi-Fi because it is about to automatically download more software.
5. Attach a monitor and keyboard to the RPi.
6. Boot the RPi by powering it on and let it do its automatic installations and updates, which might take up to 15 minutes.

If you will only connect to your RPi 3 via Ethernet and USB then disabled the Wi-Fi and Bluetooth radios at the firmware level to improve security and to save power. Add these lines to /boot/config.txt:
dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt

Keep Raspbian’s default user of “pi” and default file structure.

Start the RPi text-based configuration tool with sudo raspi-config and:
1. Change the password for the default user “pi” from “raspberry” to a stronger one.
2. Set localization from UK to your locale. (For United States English pick US en-US-UTF8.)
3. Enabled SSH on boot to be able to remotely administer this system.
4. Expand the file system to utilize the entire SD card
5. Set the hostname to the name of your choosing.
6. Memory split - give as little memory as possible to the GPU
7. Reboot for all of these changes to take effect: sudo shutdown -r now .

Prepare the RPi for HomeSeer installation:
1. Shut down the RPi: sudo shutdown -h now .
2. Remove the monitor and keyboard from the RPi and make all further connections from a Linux computer terminal with SSH or a Windows computer SSH client like PuTTY.
3. Remove the micro SD card.

HomeSeer HS3 Installation
Download HomeSeer:
1. Download the HS3 Linux tar file hs3_linux_<version>.tar.gz to a PC.
2. Copy it to the inserted micro SD card as /home/pi/hs3_linux_<version>.tar.gz with the PC file manager.
3. Eject the micro SD card from the PC.
4. Insert the micro SD into the powered-down, headless RPi.
5. Power up the RPi and allow it to boot up.

Install Mono to run Microsoft .NET code on Linux:
1. Connect to the RPi as user “pi” with SSH from a PC: ssh <hostname>
2. sudo apt update
3. sudo apt install mono-complete
4. sudo apt install mono-vbnc
5. sudo apt install mono-xsp4

After installation, make sure you update the builds. Repeat this pair of commands several times to update all of the dependencies.
1. sudo apt update
2. sudo apt upgrade

Install HomeSeer: sudo tar xvf hs3_linux_<version>.tar.gz

The tar script creates the /home/pi/HomeSeer directory.

HomeSeer can be started by cd HomeSeer followed by sudo ./go , but this only runs HomeSeer while the SSH console session is active.

Better is to run the heart of the go script in the background without logging:
sudo mono HomeSeer/HSConsole.exe &

Best is to automatically start HS3 at bootup by adding this line to /etc/rc.local before the “exit 0” line:
sudo mono /home/pi/HomeSeer/HSConsole.exe &
Reply With Quote
  #22  
Old December 6th, 2017, 11:42 AM
RichM RichM is offline
Seer
 
Join Date: Feb 2017
Location: Palatin, IL
Posts: 25
Smile

I know what I will be trying this weekend! I will let you know how it goes.
Reply With Quote
  #23  
Old December 6th, 2017, 12:00 PM
rmasonjr's Avatar
rmasonjr rmasonjr is offline
OverSeer
 
Join Date: May 2001
Location: Brookhaven, MS USA
Posts: 6,487
Quote:
Originally Posted by pmoneill View Post
I have not found any official Linux installation instructions from Home Seer while none of the forum posts are complete and accurate. Here is the process I developed over the last week. I am not an expert so I'll take the community's inputs to improve this post.

You deserve an award. This is great info.
__________________

HS3Pro Running on a Raspberry Pi2 (Raspbian)
64 Z-Wave Nodes, 162 Events, 293 Devices
UPB modules via OMNI plugin/panel
Plugins: Z-Wave, BLRF, OMNI, HSTouch, weatherXML, EasyTrigger
HSTouch Clients: 3 Android, 1 Joggler
Reply With Quote
  #24  
Old December 6th, 2017, 01:01 PM
concordseer concordseer is offline
Seer Master
 
Join Date: Sep 2016
Location: Ireland
Posts: 559
Might also be worth noting that to get the latest version of Mono follow the instruction on this link. The version in the current Raspberry Pi repos is a little behind.


http://www.mono-project.com/download...d-lin-raspbian
Reply With Quote
  #25  
Old December 7th, 2017, 01:14 AM
zwolfpack zwolfpack is online now
Seer Master
 
Join Date: Sep 2015
Location: Orange County, California, USA
Posts: 944
Very nice. To download the HS3 installation archive directly to the rpi, use the wget command:

To download the file to the current directory. Change version spec as appropriate.
Reply With Quote
  #26  
Old December 7th, 2017, 03:00 AM
Pete's Avatar
Pete Pete is offline
OverSeer
 
Join Date: Jan 2001
Location: House
Posts: 15,263
Great stuff Peter!

Can I copy or you copy and paste your excellent post to the Homeseer Help how to section such that it is easy to get to or refer to?
__________________
- Pete

Automator

HS3 Pro & Lite Edition Beta 3.0.0.435

HS3 Wintel Touch | Ubuntu 16.04 64 bit | Oracle Windows Virtual Box ==> for Wintel only SAPI and HS3 plugins | Speech - Microsoft SAPI - Neospeech - Amazon Echo | Hardware | Haswell Intel iSeries 3 - 16Gb | Pine64 - 2Gb computers | Openpeak Intel Atom SoC tabletop touchscreens (15 HS tabletop tablets) | Touchscreens - Windows embedded POE connected |Light switches - X10,UPB, ZWave and Zigbee | Firewall - PFSense - 2 WAN plus 4 LAN interfaces | Network - Gb managed switches / POE WAP(s) | CCTV - Zoneminder IPHD cams - variety | Audio - Russound - AB8SS | Security - Leviton HAI Omni Pro 2 | Weather - Davis Vantage Vue - MeteoStick - WeeWx | 1-Wire - AAG, Midon and HB | OWFS - Mosquitto - Node Red - Python - RPi Stretch - OpenWRT
Reply With Quote
  #27  
Old December 10th, 2017, 12:14 AM
Jfree23 Jfree23 is offline
Seer
 
Join Date: Nov 2017
Location: MA
Posts: 39
Thanks Peter, very nice instructions for HS3 Standard install to RPI.

Is there a way to install the HS3Pi version in a similar way? I didn't have much trouble installing HS3Pi on my Pi3 using the HS instructions, but the process is very different from yours, and installs the OS and HS3 together. I don't have an HS3 Standard license, only the HS3Pi, and I'd like to install it on a Pi3 with Stretch installed already.

Has anyone tried that, or is HS3Pi tied to the older version of Debian that comes with the install package? Won't run on Stretch?

I am hesitating to even update/upgrade the OS on my HS3Pi also, for the same reason - it is Jessie, but far behind the current releases. Will doing a normal apt-get update/upgrade break HS3Pi?
Reply With Quote
  #28  
Old December 12th, 2017, 07:14 PM
MarkHargrove MarkHargrove is offline
Seer Deluxe
 
Join Date: May 2008
Location: Longmont, CO
Posts: 205
Quote:
Originally Posted by pmoneill View Post

Prepare the RPi for HomeSeer installation:
1. Shut down the RPi: sudo shutdown -h now .
2. Remove the monitor and keyboard from the RPi and make all further connections from a Linux computer terminal with SSH or a Windows computer SSH client like PuTTY.
3. Remove the micro SD card.

HomeSeer HS3 Installation
Download HomeSeer:
1. Download the HS3 Linux tar file hs3_linux_<version>.tar.gz to a PC.
2. Copy it to the inserted micro SD card as /home/pi/hs3_linux_<version>.tar.gz with the PC file manager.
3. Eject the micro SD card from the PC.
4. Insert the micro SD into the powered-down, headless RPi.
5. Power up the RPi and allow it to boot up.
Alternatively, to get the tarball for the HS3 release, simply do:
Code:
$ wget https://homeseer.com/updates3/hslinux_hs3_3_0_0_<release>.tar.gz
...from the command line on the RPI. The command line above will pull the tarball directly from HomeSeer's web site to your current directory. No need to fiddle with moving the SD card around. After wget finishes you can proceed with installing Mono per the rest of the installation instructions.

-M.
__________________
Mark Hargrove
Longmont, CO
Reply With Quote
  #29  
Old December 13th, 2017, 09:16 AM
Pete's Avatar
Pete Pete is offline
OverSeer
 
Join Date: Jan 2001
Location: House
Posts: 15,263
Kudos to Peter for writing "Correct Installation of HS3 Standard on Raspberry Pi 3"!!!!

Suggestion is to become familiar with Linux and Linux command lines. Baby steps.

Will doing a normal apt-get update/upgrade break HS3Pi?

It should not.

HST provided sold and image for the Zee2 build is a customized dual boot with recovery build.

Guessing too that the HST S2 standard and pro boxes are done the same way.

Homeseer 3 on Linux is just a directory and Homeseer 3 runs with Mono such that the Linux base build needs to include Mono.

The above documents a HS3 Standard build on an RPi following the HST Zee2 standard build (up to 5 plugins), HS3 Standard or Pro.

The Raspberry Pi runs a customized Debian Linux which is very similiar to the Ubuntu Debian versions except that it is made to run on an ARM cpu (RPi).

Homeseer 3 Zee2, HS3 Standard, HS3 Pro runs fine on Wheezy, Jessie or Stretch Raspberry Pi's.

Here have updated (apt-get update / upgrade) every HS3 build since the very first Zee.

Having written the above there are many ways to build your Homeseer 3 Linux box.

The above written dialog documents the way that HST builds it Zee2 image except for the DR partition.

Will doing a normal apt-get update/upgrade break HS3Pi?

Not typically.

For an OS upgrade from Jessie to Stretch it is recommended to start from scratch as you cannot upgrade the OS via the update/upgrade command. Just copy the working HS3 directory over to your new build.

Stuff to note:

1 - is that the base builds Mono Versions are 3.28 updating to later versions of Mono will break your events / triggers. This is not an issue for a new build new HS3 box rather an upgrade in the Mono OS. It is an issue relating to a Mono upgrade on a running HS3 box in whatever RPi OS is running (Wheezy, Jessie or Stretch).

2 - Hardware differences of the RPi2 to the RPi3 relating to the integrated Blue Tooth on the RPi3 disable Bluetooth and enable an integrated GPIO Z-Wave card. The current Zee2 build for the RPi3 already does this where as a DIY build has to be configured. A Z-Wave USB stick wouldn't need a change for GPIO port use.

3 - There is no dependency on the X Windows Lite installation or use for use with Homeseer 3. Everything can be done via command line and HS3 browser interface directly on the console or remotely from another computer.

4 - relating to creating a HS3 auto start service the base Linux (all of them) builds have changed from using Upstart to Systemd. Relating to HST the autostart command in the rc.local file has been present since the first HST Linux box (Zee) was introduced. There are issues with shutting down an HS3 service via a system command line referring to the upstart / systemd service of lingering plugins that take longer to shut down than the HS3 core. Here utilize the HS3 web interface to shut down HS3.

5 - While Homeseer 3 Standard and Pro do run on the Raspberry Pi's it is not recommended to push them over the Zee2 limit of 5 Plugins as this will / or can cause over utilization of the CPU and the 1 Gb of the RPi RAM.

Last edited by Pete; December 13th, 2017 at 10:28 AM.
Reply With Quote
  #30  
Old December 15th, 2017, 03:43 PM
Jfree23 Jfree23 is offline
Seer
 
Join Date: Nov 2017
Location: MA
Posts: 39
Thanks Pete. Not sure what you meant exactly by "baby steps". I am not a linux guru but am fairly familiar with linux and its command line, have several RPi's used for different things, have done some hacking.

Good to hear that the HS3Pi version is not tightly locked to the exact OS used in the HS release/install file. Also great to hear it will/should run on Stretch. That inspires me to take an image copy of my HS3Pi Pi3 SD card as backup, and try the upgrade. Also to build a new fresh Stretch SD image (lite), set up users, install mono, and copy my working homeseer directory in, see if I can get that running, and to start automatically, using your notes.

I am not using Bluetooth or Zwave, so hopefully that will not be an issue; if so I'll figure out how to disable. My HS3 is mostly a front end to my OmniIIe panel.

My concern was that the regular HS3 linux versions are more like packages (well, a tar file) to install on your own linux setup, while HS3Pi is a complete bundled OS + HS thing, designed and built to include/resolve all dependencies. No HS3Pi tar file available.

Thanks again
Reply With Quote
  #31  
Old December 15th, 2017, 04:32 PM
concordseer concordseer is offline
Seer Master
 
Join Date: Sep 2016
Location: Ireland
Posts: 559
Works just fine on Stretch. That's my setup. From start with a bare SD card to fully up and running on HS3 Pro took just over two hours on a Raspberry Pi 3.
Reply With Quote
  #32  
Old December 16th, 2017, 07:58 AM
Pete's Avatar
Pete Pete is offline
OverSeer
 
Join Date: Jan 2001
Location: House
Posts: 15,263
Baby steps....means don't rush...take your time...

Yes relating to a new build originally here downloaded the Homeseer posted download for the Zee2. Wrote it to an SD card and copied the Homeseer directory to another media.

I am not sure that the updates to the Zee2 contain the whole HS3 Lite stuff to start from scratch. You can try to see if it works.

For a transfer from an old build to a new build only concern is the update of mono 3.28 to most current version of mono and the loss of triggers.
Reply With Quote
  #33  
Old December 16th, 2017, 03:30 PM
Jfree23 Jfree23 is offline
Seer
 
Join Date: Nov 2017
Location: MA
Posts: 39
I'm a slow and pretty methodical engineer, so I always take lots of time

Thanks so much to so many on these forums; no way to get here without the many tips and guiding points, code fragments, etc.

I succeeded! Now up and running HS3Pi on my Stretch-Lite RPi3!

I've set up many RPi's so Peter's install instructions were easy to follow.

Built new Stretch Lite SD card. 2 things maybe useful for others:
1. After loading the RPI image, with SD still in your PC, create an empty file named "ssh" (no extension) in the /boot directory of the SD (this dir is visible in Windows). Notepad works if you rename it, or touch. This enables SSH after initial boot, no need for HDMI monitor and keyboard at all.
2. Create or copy a good wpa-supplicant.conf file with your WiFi info, from another RPI or you can type it in, into /boot. The system will copy that file into /etc/wpa-supplicant so you will be able to access the RPI via WiFi after first boot. No ethernet cable needed.

Now you can put the new SD card into the target Pi and boot up, connect via SSH on WiFi, do update/upgrade, raspi-config, etc.

I ended up installing mono-runtime, mono-vbnc, mono-xsp4, latest version from mono site 5.4.1.6. System actually came up without xsp4, but with an error for a missing dll. xsp4 installed that missing file, along with ~ 200MB of other stuff. Had to install dirmngr first to install mono repository key.

Not sure if needed, but created a homeseer user in homeseer group, and gave it sudo rights, as that is how the original HS3Pi was set up. Found key and key.db files in /home/homeseer, copied those to same place new in new build, don't know if needed or what they do.

Then I shut down my original HS3 and made a tar file of /usr/local/HomeSeer tree, which was the original HS3Pi HS root. Copied that to the new Stretch setup (I used Bitvise SFTP), untarred to /usr/local to create the same structure and permissions as the original.

That was pretty much it, maybe did a few things I forgot. HS3 could be started from an SSH session, manually, using ./go. Looking good.

Then used the excellent forum How-To on automatically starting HS3 in Linux with systemctl, copied the homeseer.service and stop_homeseer.sh scripts to /etc/systemd/system and /usr/local/HomeSeer, enabled with systemctl, and HS3 now starts on boot! Logs are all clean, no errors or warnings, all seems to work.

Thanks again to all....
Reply With Quote
  #34  
Old December 18th, 2017, 01:36 PM
Pete's Avatar
Pete Pete is offline
OverSeer
 
Join Date: Jan 2001
Location: House
Posts: 15,263
Good news!!!

Yeah here too change the pi password.

For Mono only install Mono-complete and mono-vbnc. Way long time ago would install xsp4.
Reply With Quote
  #35  
Old January 20th, 2018, 09:24 AM
racerfern racerfern is offline
Seer Master
 
Join Date: Dec 2016
Location: NY, USA
Posts: 851
Thanks for the detailed instructions. Thanks to @Pete, @bdickhaus and others, I'm up and running.

Last edited by racerfern; January 20th, 2018 at 09:35 AM. Reason: spelling
Reply With Quote
  #36  
Old May 5th, 2018, 01:32 PM
Brady Brady is offline
Seer
 
Join Date: May 2016
Location: Ohio
Posts: 19
One alternate way to get up and running on a Raspberry Pi w/ either the standard or pro license...

I'm not 100% sure if this is "allowed"... but I took the official HomeSeer Raspberry Pi image, loaded it up on an SD card... got it running on the pi, changed the system password, ssh'd in to the pi, went to /usr/local/HomeSeer/ then did a wget on the normal linux install and installed it over the normal pi installation.

Now I seem to have a easy ready built pi image with all the dependencies with a HS3 standard license installed on it.

I already owned HS3 standard and I'm trying to move from Windows VM to a pi. Didn't want to just throw away my license and buy a new pi license.
Reply With Quote
Reply

Bookmarks

Tags
hs3, linux host, pi3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HS3 Linux Installation Instructions rjh HS3/PRO Beta Releases 439 May 22nd, 2018 08:04 PM
Raspberry Pi 3 Z-NET OzTechGeek Z-NET 11 August 27th, 2016 12:48 PM
Somewhere there are instructions.... dcjohnston HSGirder, NetRemote, NetTouchPad Discussions 16 March 7th, 2008 08:54 PM
Hardware Installation Instructions sjaffe1 MCS Temperature 1 June 16th, 2007 04:14 PM
New instructions Nitrox Caddx (3P) 5 December 1st, 2004 11:27 AM


All times are GMT -4. The time now is 07:10 PM.


Copyright HomeSeer Technologies, LLC