Started By
Message

Not-so-official Open Source Home Automation Thread

Posted on 2/4/16 at 4:14 pm
Posted by The Next
Baton Rouge
Member since Oct 2013
417 posts
Posted on 2/4/16 at 4:14 pm
CAD’s Wink thread really piqued my interest in home automation but the headaches he’s been having has kinda led me away from using Wink or any other commercial HA hub. I’ve worked with computers for as long as I can remember and I’ve dabbled in a bit of programming so I decided to start looking around at free open source solutions and I thought I would share my experiences. I am by no means an expert in this hence the “not-so-official” tag. Anyone else that has had any experience with an OSHA, please contribute.

What I was looking for in an OSHA hub:
1) Good, clean, modern graphical interface
2) Easy installation
3) Multiple OS support (I have several machines running different OS’s)
4) Minimal need for script-based configuration
5) Variety of available protocol support
6) Variety of hardware support
7) Highly flexible automation
8) Mobile App Support preferable, web interface ok

I know some of those requirements are a bit ubiquitous but as I came to find out, the difference between platforms was huge is some cases.

A bit of info about the machines that I have running and available:
- HP laptop, 2.1GHz i3 proc, 8 GB RAM, 750GB hard drive running Ubuntu Server 15.10 primarily used for Zoneminder camera system
- Dell Studio XPS, 3.3GHz i7 proc, dual 640GB RAID 1, 12GB RAM running Win10 primarily used for KODI and other server applications
- Several Raspberry Pi’s doing nothing in particular

With these machines available to me, I would like to use the Dell first, followed by the HP laptop, and lastly an RPi. I also decided on Z-wave for my wireless protocol so that I can add any switches, door trippers, motion detectors, etc. I’d also look into connected light bulbs where it would be cost prohibitive to use a Z-wave switch/outlet but most controllers support wifi control as well so no big issue at the moment. I found a USB Z-wave stick on Amazon for $35 and away I went. I also got a door tripper, light switch/dimmer, and plug in lamp dimmer to go along with it. Each running about $30.

So, then begins the research into which package I would ultimately end up using. Initially, I had NO idea how popular this was. I found dozens of options across various languages (both written and programming), OS platforms, and flavors. After quite a bit of reading through forums and reviews, these were the packages I ultimately decided to test before diving in:

- OpenHAB
- Home Assistant
- Home Genie
- Domoticz
- Misterhouse

Posted by The Next
Baton Rouge
Member since Oct 2013
417 posts
Posted on 2/4/16 at 4:16 pm to
And here are my reviews of each:

OpenHAB

Clearly the most powerful of the list mainly due to the fact that it has been around longer than all but Misterhouse and a much larger developer community. Installing it on all of my machines was very straightforward and easy and I was up and “running” in no time flat. To see what it could do, I installed the “demo house” like was recommended. I liked the interface that OpenHAB offered and made navigation and control very easy and intuitive. There is even an official OpenHAB mobile app which I also liked. While it was easy to get it up and running, that’s where the “easy” ended. Everything else past that was a challenge at best and frustrating for the most part. I was never able to get it to recognize my Z-wave stick. Even after exhaustive research I found an add-on package (not official OpenHAB by the way) that claimed to help ease the configuration of OpenHAB and Z-wave but in the end, I did not have any luck. I wasn’t too keen on the fact that I needed 3rd party software to make something easy either. I eventually decided against using OpenHAB because as I discovered in my reading, almost everything in OpenHAB is controlled and configured by scripts or config files. I wasn’t prepared or willing to spend the time to learn it all so it was on to the next package.


Home Assistant

I didn’t spend a lot of time with Home Assistant. The reason primarily was that it did not support a Windows installation, only Linux. Even the installation for Linux was not as straightforward as OpenHAB but it wasn’t overly painful. What I liked about it was the user interface. I liked it WAY better than OpenHAB. It was a lot cleaner and way more user friendly. However, there wasn’t a mobile app but the web app was good enough for me to overlook it. Its downfall, again, for me was the fact that everything was script/config file controlled. For anyone that is in to programming I would actually recommend Home Assistant over OpenHAB. Moving on again.


Home Genie

A newer player in the market but I was very impressed with what it had to offer. Installation was supported on Windows, Linux, and Mac. The interface was also very nice and, again, no mobile app but the web interface allowed me to overlook that. It supported all of the protocols that I would need and even had a very nice voice control feature. That feature can be accessed through either a connected webcam or microphone or through the web portal on a mobile device. Different phrases can be set up to access different functions of the system. It even has direct access to the RPi GPIO functions. Adding my Z-wave stick was pretty effortless and it was able to recognize all of my devices right away. Setting up different scenes, automation events, and triggers can be set up using a graphical interface but some of the more complex things I wanted to do required the use of scripting. Not a complete deal-breaker but disheartening nonetheless. The other thing that concerns me is that because they are so new, their support docs are not as well written as I would have hoped and the developer community is not quite on the level as the other packages so I suspect that progress and additional features will be slow. All in all, color me impressed with Home Genie.


Domoticz

Domoticz was one of the packages that just about everyone mentioned and recommended when browsing through all the reviews. Everyone placed it right below if not on par with OpenHab. After looking into it myself, I found that it supports Windows, Linux, and Mac, an extensive developer community, and a wiki that put the others to shame. Installation was very straightforward. Windows was a standard executable and there was even a pre-built image file for installation on an RPi. Installation on a standard Linux box was a little more involved but if you are used to installing anything on Linux, you will probably be ok. There are several mobile apps available that can connect to it and some that give geo-fencing capabilities. There is also an official Domoticz app but I’ll pass on the $20 price tag. Adding the Z-stick was pretty easy as well though finding the devices was not as easy but still relatively pain free. It does give you some scripting options but just about all the automation events I wanted to build was done through a Blockly (check it out here LINK) which I found very nice allowing me to set device attributes, variables, and even trigger alerts through a simple if/then graphical interface. Another thing I liked was that I can run a main controller on one of my “big boxes” and have slave controllers running on an RPi. The only thing I did not like all that much about it was the interface. Though it was easy to navigate and control, it wasn’t as clean or modern as some of the others. However, they do offer different skins but I didn’t get around to playing with any of them this early in the process.


Misterhouse

I honestly didn’t even look too deep into Misterhouse. The website alone just gave me the feeling that it was old and outdated even though from what I read, it can do just about anything that the others can do. It’s written completely in PERL which I have no experience with so I didn’t even attempt an installation. It also appears to be completely script based. Misterhouse is a “no”.


So, in the end, I picked Domoticz and will begin using the Dell XPS for the main controller. Once I get my final installation up and going, I will continue to update.

Thanks for reading.
This post was edited on 2/4/16 at 4:17 pm
Posted by Hu_Flung_Pu
Central, LA
Member since Jan 2013
22164 posts
Posted on 2/4/16 at 4:26 pm to
First
Posted by mchias1
Member since Dec 2009
805 posts
Posted on 2/4/16 at 6:40 pm to
What kind of coding does domoticz support? Is everything done in the puzzle piece coding?


I have a pi set up with homegenie. I like his ability to do macro coding or scripting in multiple languages.
Posted by The Next
Baton Rouge
Member since Oct 2013
417 posts
Posted on 2/4/16 at 9:06 pm to
The blockly is not the only option though it does make it easier for non-programmers to set up different events. It uses a scripting language called Lua which I had never heard of before Domoticz. After a cursory glance through the wiki and forums, the developers explain it very well and give quite a few examples of things you can do.

Just got it installed on the Dell. Going to bed early tonight so I'll have to wait to add all my devices until tomorrow.
This post was edited on 2/4/16 at 9:08 pm
Posted by mchias1
Member since Dec 2009
805 posts
Posted on 2/4/16 at 9:17 pm to
I've messed with lua before. It's pretty powerful but slightly confusing to me.

I'll be interested to follow your progress with domoticz to compare it to my homegenie setup, once I get around to buying an new zwave stick.

Brings up another question, which version zwave stick do you have?
Posted by The Next
Baton Rouge
Member since Oct 2013
417 posts
Posted on 2/5/16 at 8:07 am to
I wanted to go cheap because I'm just starting out so I went with the Aeon Labs USB stick ( LINK) - $35

Other Z-wave devices:
2-gig light switch/dimmer ( LINK) - $30
Ecolink Door Tripper ( LINK) - $25
GoControl Plugin Dimmer ( LINK) - $35




Stick added and all devices connected and working!!!

It seems as though the included nodes stayed in the z-stick and didn't need to be re-added after the installation.
Posted by mchias1
Member since Dec 2009
805 posts
Posted on 2/5/16 at 8:52 am to
That's the same USB stick i have/had (can't find it). Curious if it still works with the new Gen5 Aeon Labs devices.
Posted by The Next
Baton Rouge
Member since Oct 2013
417 posts
Posted on 2/5/16 at 10:06 am to
From what I can tell, it will be able to connect and use some of the basic functions of the devices. To use the more advanced features, they make another stick that is fully gen5 compatible.
Posted by MrSmith
Member since Sep 2009
8311 posts
Posted on 2/5/16 at 11:45 am to
I've gone back and forth between openHAB and home-assistant.io. I was on openHAB for a month but just recently switched back to home-assistant because they now have full support for my SmartThings hub. I really like the chromecast control that home-assistant offers as well.
In my experience, home-assistant was just as easy to install as openHAB. I'm running this on a raspberry pi2 with the quad-core processor and 1GB ram.
Posted by The Next
Baton Rouge
Member since Oct 2013
417 posts
Posted on 2/7/16 at 10:20 pm to
Played around with some basic automation events using the blockly. Just scratching the surface.

- triggered a light to turn on when door tripper is opened.
- sent a notification to my phone when door was opened
- set scenes with a variety of light settings

I discovered a pretty useful function in Domoticz - the addition of a "dummy" hardware where you can then add virtual switches and sensors. My initial though for this was for a garage door notification. If its left open for x minutes, alert my phone. I was able to set a switch "on" after x minutes which then triggered the notification. Interested to see what other things I can do with the dummy devices.

Notifications were through an email but I just found that it can also use various apps to push notifications directly to my phone. The apps are Prowl, Pushbullet, Pushover, Clicktell, NMA, and Pushalot. This may be my next endeavor to dig into. I can see some potential applications for this.

I also began looking through the IFTTT channels to see what possibilities are there as well. Busy week ahead.
This post was edited on 2/7/16 at 10:35 pm
Posted by mchias1
Member since Dec 2009
805 posts
Posted on 2/8/16 at 7:44 am to
which machine are you running the software on? I'm having a hell of a time trying to get email notifications to work on my Pi with HomeGenie. If Domo is easier, I may have to switch to it.
Posted by The Next
Baton Rouge
Member since Oct 2013
417 posts
Posted on 2/8/16 at 12:14 pm to
Right now, the "production" instance is running on the Win10 Dell. For posterity's sake, I'm also installing it on my Ubuntu Server and I'm running into a few small issues with dependencies. May have to revisit that later. The RPi install was a non-issue. They have an image ready-to-go that I just wrote to an SD card and it just worked. I even set it up to see my PiFace that's attached to it to control the relays and GPIO on it.

As for the email notifications, that was also very simple. All it needs is the info entered in the settings as below.




Then go into the Notifications button on the switch




And add a notification




I did have an issue connecting to my smtp server using SSL but being that it uses 26 for the port, I wasn't too concerned by it. I may try to set it up to use my gmail account for testing. I'll let you know what happens.
Posted by mchias1
Member since Dec 2009
805 posts
Posted on 2/8/16 at 7:31 pm to
I got my email/text message notifications to work on my Pi. I set up a email server.
instructions
I didn't open up port 25 on my router because I'm only using it to send out email messages. Had to tell my gmail account it isn't spam, but after that no issues. Just used (phone number)@messaging.sprintpcs.com (use your own mobile provider) to send a text message.
This post was edited on 2/8/16 at 7:36 pm
Posted by The Next
Baton Rouge
Member since Oct 2013
417 posts
Posted on 2/9/16 at 8:24 am to
That suprises me. Most home ISP's block outbound SMTP traffic on their home accounts. I might use that setup on the Pi for another application that I have. It would be most useful.

I just set everything up and I was able to use my gmail account to send a notification. The only downside is that gmail rewrites the from address to my gmail account instead of my home address that I want to use. Small concession I guess.
Posted by Asgard Device
The Daedalus
Member since Apr 2011
11562 posts
Posted on 2/9/16 at 11:50 pm to
quote:

Right now, the "production" instance is running on the Win10 Dell.


Implies you have test instances. What do you do with them?

quote:

email notifications, that was also very simple


You have your own domain name, SSL, and hosting provider that allows you to change the smtp port, or you manage your own infrastructure?

What's the advantage of going this route vs. just using Wink? (I'm a n00b, so this is an honest question.)
This post was edited on 2/9/16 at 11:51 pm
Posted by mchias1
Member since Dec 2009
805 posts
Posted on 2/10/16 at 7:37 am to
quote:

What's the advantage of going this route vs. just using Wink? (I'm a n00b, so this is an honest question.)


The biggest advantage of using these over Wink/Smarthub is customization. The controllers in a box work, but if you want to do real complex stuff it's better to use software like this.

I'm also not a fan of having to use cloud servers to control my system. I don't want my whole system to become unresponsive if they decide to shut down their servers. You can also control the updates with your own system. No more being forced to upgrade to a version that may or may not break your system.


As far as email notifications, most of these software packages just send smtp email messages to the email server (think like outlook or thunderbird using gmail/yahoo email).
For some reason, I could never get my emails routed through gmail or yahoo, so I added a email server to my raspberry Pi to send out email notifications for me.
Posted by The Next
Baton Rouge
Member since Oct 2013
417 posts
Posted on 2/10/16 at 8:57 am to
mchias summed it up pretty well. Another big advantage of open source is flexibility. With the developer communities that support any of these packages, new features and hardware are added quicker and end up being more reliable than the commercial products. You are also able to include support for whatever protocol you have in place (insteon, x10, zwave, etc.) with inexpensive hardware and if any part of your set up goes bad, you just replace that one piece of hardware. I guess the only downside would be that it does take a little more involvement on your part to set everything up. It would probably not be an enjoyable project for the casual tech user. In some cases, a working knowledge of programming is almost a requirement but things are getting easier.

I do have other test instances on an RPi and my Ubuntu Server (finally) that are for exactly that; testing. Domoticz has a "networking" feature that allows you to collect information and send control commands to other Domoticz servers and right now I'm just playing around with what can be done. There are examples of people setting up utility monitoring using this. They get a $5 RPi zero, a few cheap sensors, and a small amount of coding and they are in business.

As for the email setup, I do have my own domain name and email host which I am currently using but I was also able to use my gmail account without any problem. I played around with some of the other notification avenues that were available in Domoticz and while I got them to work, I wasn't too happy with them. Mainly because they required that the app be at least running in the background in order to receive the notifications. If I ever have to reboot my phone, I have to remember to open that particular app. Looks like I'm sticking with email.

Posted by Asgard Device
The Daedalus
Member since Apr 2011
11562 posts
Posted on 2/10/16 at 11:36 am to
Wait, you have to use wink's servers to control things? The wink hub doesn't handle it all??
Posted by mchias1
Member since Dec 2009
805 posts
Posted on 2/10/16 at 1:30 pm to
from reddit:
"Right now, when you turn on a light switch through the Wink app, it goes from your phone, to Wink's Servers, then back again.
With local control, your phone will talk directly to the hub when you are at home, and then update the server after. This is much faster."

Basically the hub is a dumb device that just sends out your commands to your other devices. It doesn't handle any of your automation rules, their servers do.

An advantage to this is your don't have to be home to control your home automation. If I wanted to do control away from home with my setup, I have to get a DNS for my home IP (it changes occasionally) then set up port forwarding on my router. The wink hub connects to the wink servers, so it's communication link is always open (like visiting a webpage).
This post was edited on 2/10/16 at 1:35 pm
first pageprev pagePage 1 of 3Next pagelast page

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram