Announcement

Collapse
No announcement yet.

My HomeSeer Based Smart Home

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • racerfern
    replied
    Just looking at upgrading Homeseer 3 to utilizing an GPIO Zigbee card in an RPi2-3 configuring it to function as a remote Zigbee interface similiar to my current remote GPIO ZWave RPi.
    I just installed an RPi3 with the dresden-electrik zigbee card. I also installed the JowiHue plugin. It found the card and the one Philips RGB bulb. That is my only zigbee device right now. I'm waiting for other zigbee items to arrive from China to see if things other than bulbs will work. From the postings in the JowiHue section it appears many other things will work and there are some that are questionable.

    I may try some Samsung devices such as the arrival sensor.

    Leave a comment:


  • Pete
    replied
    Good news Matt.

    Yes here have been running Zigbee since the beginning testing it on the Almond + and Leviton OmniPro 2 panel and Samsung Hub.

    Just looking at upgrading Homeseer 3 to utilizing an GPIO Zigbee card in an RPi2-3 configuring it to function as a remote Zigbee interface similiar to my current remote GPIO ZWave RPi.

    Leave a comment:


  • Pete
    replied
    @Matt,

    Excellent write up.

    Personally suggest to move it to the help section as it will get buried here in this section. Well it has already happened.

    How-To's

    One comment and relating to aspx.

    I have been running HS3Pro and HS3 Lite on Ubuntu 16.04 64 bit current V.404 and have no issues running with latest release of Mono.

    I understand the stuff relating to aspx but statically configuring Mono to V.5.0.0.1 rather than most current release of 5.4 may cause future issues.

    It should be that Homeseer 3 runs on the latest release of Mono versus configuring a legacy version of Mono and not the other way around.

    Here have always updated / upgraded any OS that HS3 is running on.

    IE: RPi Wheezy,Jessie or Stretch or Ubuntu 14.04 or Ubuntu 16.04. I do my updating once a week.

    Leave a comment:


  • mwolter
    replied
    Upgrading SEL to Ubuntu 16.04 and Mono 5.0.1.1

    First up is upgrading your HomeTroller SEL from Libuntu 14.04 with Mono 3.2.8 to Ubuntu Server 64 bit with Mono 5.0.1.1. This was no easy task but with my notes, it should be much easier for you! These steps should work with the standard Linux version and possibly the Pi version as well.

    I have been playing around with scripting on HomeSeer and using TenScripting but noticed that Mono 3.2.8 uses an older version of VB .Net. After helping my Mother install her SEL I noticed that HS is now shipping it with Mono v5. So I decided to update the OS and Mono at the same time and did a complete rebuild of the system.

    I was able to save my devices, zwave info, most of the events and now my system appears to be faster as well. All functionality has been maintained. Linux Tools, updating HS through the web interface, plugin installation, lighthttpd (for disaster recovery) and also added support for proper HS shutdown from Linux. For Linux, I decided to go with a server version of Ubuntu and use Webmin for administration. If you have a Linux based HS system, I highly recommend Webmin. It's a very easy to use web-based administration for GUI file access and exiting, Linux logs, user administration and a whole lot more. Far better than VNC or any other remote access system IMO. I've used it on other work-related projects in the past and it was perfect for this.

    HS process startup was moved to a system service and can be properly started and stopped from within systemd. I used the screen method from one of Pete's scripts, modified and split in two. One for start-up and another for shutdown. Made a simple systemd script and it appears to be working perfectly. Through monitoring of systemd and HS logs everything is started and shutdown properly and the HS web-based startup and shutdown work as well. Events and device operation appear to be faster than before (if that's even possible).

    Be very careful which version of Mono you install. As I am aware, the only Mono versions 100% compatible with HS are 3.2.8 and 5.0.1.1.

    Systemd Scripts

    HomeSeer.service
    Code:
    [Unit]
    Description=HomeSeer Home Automation
    After=network.target
    
    [Service]
    Restart=on-failure
    RestartSec=30
    TimeoutStartSec=60
    Type=forking
    ExecStart=/usr/local/HomeSeer/HomeSeer_start.sh
    PIDFile=/usr/local/HomeSeer/HomeSeerScreen.pid
    ExecStop=/usr/local/HomeSeer/HomeSeer_stop.sh
    
    [Install]
    WantedBy=multi-user.target
    HomeSeer_start.sh
    Code:
    #!/bin/bash
    DIR='/usr/local/HomeSeer' # HomeSeer Directory
    NAME='HomeSeer' # Server handle for the screen session
    HSPID="$DIR/HomeSeer.pid" # HomeSeer Process ID
    PID="$DIR/HomeSeerScreen.pid" # Screen Process ID
    if [ "$(pgrep -cf "mono.+HSConsole")" -ge 1 ]; then # Test if HS is running
            echo -e "$NAME is already running."
    else # If not running start HS
            if [ "$(pgrep -cf "[S]CREEN.+${NAME}")" -ge 1 ]; then pkill -cf "[S]CREEN.+${NAME}"; fi # Stop screen if running
            /usr/bin/screen -dm -S $NAME # Start detached screen
            sleep 2
            /usr/bin/screen -S $NAME -X stuff "export LANG=en_US.UTF-8; echo 0403 c07f > /sys/bus/usb-
    serial/drivers/ftdi_sio/new_id; cd $DIR; mono $DIR/HSConsole.exe --log; exit^M" # Start HomeSeer
            sleep 2
            pgrep -f "mono.+HSConsole" > $HSPID # Obtain HomeSeer Process ID
            pgrep -f "[S]CREEN.+${NAME}" > $PID # Obtain screen Process ID
            [ -s $HSPID ] && echo "$NAME started." # If HSPID exists and the size is greater than zero, echo
    fi
    HomeSeer_stop.sh
    Code:
     #!/bin/bash
    HSPID='/usr/local/HomeSeer/HomeSeer.pid'
    PID='/usr/local/HomeSeer/HomeSeerScreen.pid'
    NAME='HomeSeer'
    if [ -f $HSPID ]; then # Test if PID file exists
            if [ -s $HSPID ]; then # Test if PID is not empty
                    if [ "$(pgrep -cf "mono.+HSConsole")" -ge 1 ]; then # If HS is running
                            for char in $(printf "\\r s h u t d o w n \\r") ; do #invoke shutdown command to homeseer screen instance...
                                    /usr/bin/screen -p 0 -S $NAME -X stuff "$char"
                                    sleep 0.1
                                    done
                    fi
                    for number in {1..4} ; do # Allow time for HS and plugins to gracefully shutdown
                            sleep 10
                            if [ "$(pgrep -cf "mono.+HSConsole")" -lt 1 ]; then break; fi # If HS has closed, stop waiting
                    done
                    if [ "$(pgrep -cf "mono.+HSConsole")" -ge 1 ]; then # Kill HS if it was not stopped gracefully
                            echo -e "$NAME did not stop gacefully. Killing it"
                            kill "$(cat $HSPID)"
                    else
                            echo -e "$NAME was stopped."
                    fi
                    if [ "$(pgrep -cf "[S]CREEN.+${NAME}")" -ge 1 ]; then /usr/bin/screen -S $NAME -X stuff "exit^M"; fi # Gracefully close screen if running
            fi
            rm -f $HSPID; rm -f $PID # Remove PID files
    else
        echo -e "$NAME is not running."
    fi
    So here you go, my notes in PDF. Please take a look and let me know if you find anything that needs correction.

    Change Log:
    180104: Updated PDF with auto reboot and importing events
    180107: Found aspx pages were not loading properly. Spent quite a bit of time on this. Tried going to a 32 bit version of linux. Tried installing other Mono related packages. In the end had to revert to Mono 5.0.1.1. Updated the PDF with several new steps regarding this.
    180203: Removed unnecessary lines and made systemd scripts available directly in the post to avoid formatting issues.
    Attached Files
    Last edited by mwolter; February 3, 2018, 05:39 PM. Reason: Revision

    Leave a comment:


  • mwolter
    started a topic My HomeSeer Based Smart Home

    My HomeSeer Based Smart Home

    Hello Everyone, Thought I would share some info about my Smart Home set up and repay the help so many others have provided 😀 Hope this will help others that are trying to do something similar to what I have done, and maybe save them a little time and frustration.

    I will try to go into detail in many areas such as Z-wave basics, Blue Iris, Oregon Scientific, HS Touch3, scripting basics, etc. My goal is to grow this post over time with detailed instructions and configurations. Basically, I will be sharing my notes on how everything was set up. This won't be for the beginner and you will need to know basic topics (which are easily Googleable) such as using ssh, basic network configuration (IE assigning and finding IP addresses) and troubleshooting. This won't be an attempt to sell you anything, just show what I've done and how I did it. Topics will be posted in this thread and I'll attempt to keep them towards the top.

    Before we get into it, here's a little of my background. In a previous life, lol, I did IT for 20 years. Mostly telecom, servers, and networking. Had my own IT business for 10 years and about two years ago decided to do something different. To keep my skills sharp and satisfy my tinkering need I found home automation. Oddly enough, I found out about it from my parents! My Mother was using a ZigBee based system to monitor and control her home greenhouse and had a completely separate X10 system (BTW they just switched to HS and love it). I was intrigued by the capabilities of her system but noticed it was slow and unreliable. I liked what they've done but the two systems weren't integrated and it had severe shortcomings, so I decided to do something different.

    Started with Wink, wanted something more flexible and found Smarthings, then started looking for something faster, and more reliable and found HomeSeer. Overall I've been very happy with my HomeTroller SEL. I've had it for over a year and never really had an issue. It's been extremely reliable which was a surprise since the SEL is Linux and HomeSeer is primarily windows based. Congrats to HomeSeer for making a cross-platform system that is fast, flexible and reliable. Anyway, my story is pretty similar to many just getting started with home automation, started with something easy and cheap, then grew from there.

    So this is my attempt to pay it forward and hopefully make a central location of info for anyone trying to do what I've done. Enjoy!
Working...
X