Open Source "Roll-Your-Own Cloud" Home Automation Solutions

GraysonPeddie

Active Member
Hey you guys. It's been a while since I've been in CocoonTech since I no longer have interest in home automation until late last year when I purchased Philips Hue Starter Kit since I'm interested in doing programming from my server. I have created a web application once that gets the light information and allows me to set the temperature and hue/saturation. Plus, I setup a cron job to turn on and off the lights depending on certain time of day. This is all done in a Linux Container (LXC).
 
Attached is a homeautomation,zip file that you can take a look.
 
If you have Philips Hue and you try this out in your own server, the "roll-your-own cloud" is what I am referring to "private cloud."
 
Okay, sort of changing subjects, but I don't know what ever happen to Ninja Blocks that sell starter kits. When I went into Ninja Blocks website, it turns out they sell spheres or something, which don't look like Ninja Blocks per se. But then I don't want IoT devices to require me to create a cloud account just so I can put them to use.
 
So here is my question: Are there any open-source wireless solutions that can be controlled by BASH scripting? I did not mind creating an account with Philips Hue Developers area just so I can get to the API documentation and I also did not mind setting up all of the devices such as door/window sensors, motion sensors, push-button sensors, and all that from my smartphone, but once it's setup, I want to be able to control and have my server know if a door/window sensor has been activated or the button has been pressed.
 
Later on, when I plan to buy a house (hopefully I don't mind having wired sensors), I'm planning to add thermostat and smoke detectors, although I don't want to deal with burning my fingers with soldering ion when it comes to building an open source version of a Nest thermostat. Plus, I don't know what's become of Birdi, which is in pre-order state right now.
 
But because I live in my mom's house after I resign from work in Bainbridge over at Georgia Industries for the Blind mid-August, I'm planning to go to Arkansas to get certified in Desktop Support Technician. It's at World Services for the Blind in Little Rock, Arkansas. And then I will buy a house (probably next Fall) once I get certified. So yeah, I'm not in a hurry to buy devices that requiring wiring.
 
And last, but not least, I only run Linux at home, so no Windows in my desktop. Other than games that require Windows, my life has been great without Windows since November 2012.
 
Please pardon my long post. I wanted to get my point across that I care for flexibility and not wanting devices that lock me on to specific platform or locking me on that require me to use the "public cloud" in order to make use of them.
 

Attachments

  • homeautomation.zip
    14.6 KB · Views: 7
Well done having a go at writing your own automation system. I have also written my own automation system that has grown over the years to be quite powerful and flexible as well as a great way of playing and learning about associated technologies.
 
Regarding ninja blocks, it was a promising solution that evolved into a v2 called ninja sphere with a lot of good ideas about home automation (eg. locator services, gesture control) and using modern technologies like HTML5 and the Go programming language. Unfortunately the commercialisation of this system was harder and more expensive than the funding and business plan allowed so the company folded, however I do believe there is a grass roots community of initial kickstarter investors who are finishing the software as an open source platform (on github). You can check the ninja blocks forum for more information.
 
I can't help you with linux solutions as I prefer Windows myself, however you can check the thread pinned to the start of this forum titled 'HA Technology Comparison Spreadsheet' that will give you more information.
 
Good luck and do post on this forum if you need more help / guidance.
 
Thanks for your reply. I did come across the thread years ago, but when I looked through it today, it does not tell me if some of the technologies are open-source friendly or not. This is critical for me because I would like to be able to let my server control home automation. Previously before I got Philips Hue, I tried Insteon and Z-Wave, and even X10 back then (IBM Home Director for those who had IBM Aptiva back during the 90s -- oh, there goes that nostalgia again, but I've got to move forward), but I don't want to be stuck with proprietary technologies on which I need to pay $$$$ to gain access to APIs (application programming interfaces).
 
I will make a feature request to add whatever the technology is open-source or proprietary and whatever the API is free or not as that will influence my purchasing decisions.
 
And thanks for your comment about my automation system. With Model/View/Controller and PHP, I could easily expand my automation system to work with LIFX and other technologies, so long as I can gain access to APIs.
 
Here are a couple of open source ones that I know of (but can't vouch for as I haven't tried them). Others here may know more.
www.openhab.org
www.freedomotic.com
www.opensourceautomation.com
 
The MVC architecture is very powerful as it separates the UI logic from the backend functionality making the solution more flexible. You have made a start with your home brew software, why don't you continue expanding it (if this is what you enjoy) and use the open source alternatives to help show you how to connect to different devices (eg. by using their plugins as a reference)? You will need to build a plugin architecture for the back end to abstract the specific protocols needed to talk to specific peripherals from your automation logic (think of it like a MVC for the back end). This way you invest your time into your own system rather than learning a system written by others. Or use the open source solutions and contribute back to them by extending them to suit your needs. All valid options!
 
I've looked into the links you've provided and they are more of a software side and not hardware, such as INSTEON (proprietary) and Z-Wave (proprietary).
 
With INSTEON, I don't want to pay $99 just to gain access to API documentation. The SDK for Z-Wave cost way too much.
 
(Ugh... Thank you Fairpoint Communication (Altha, FL) for letting me post to my thread...)
 
Is there still an NDA for Insteon?
 
Update: I've done some research in the Internet and there's REST API. Well, too bad I've gotten rid of my INSTEON modules, but I suppose I will buy a couple of new modules.
 
Thanks for letting me know.
 
Welcome back to Cocoontech Grayson Peddie
 
Last night found a RPi2 Zigbee shim from Germany.  Looks to be a bit smaller that Z-Wave + RPi2.
 
The Thing system
 
zigbee RPI2.jpg
 
Automation is moving in leaps and bounds.  Everyday now see something new or a new Kickstarter.
 
Here moved my Homeseer / Cumulus Davis Weather stuff to Ubuntu and Wheezy.   It is working well.  I have here too moved a majority of stuff over to Linux. 
 
OpenHab is interesting as you can do much with hardware / software and I believe it is open source.
 
Not sure if HomeGenie is open source (thinking it might be).
 
Here started with X10, then went to Insteon then UPB.  I do play a bit with Z-Wave and Zigbee.  I have continue to keep a few things running and using whatever from whatever to get my stuff running.  Light switches here are all UPB.
 
Playing a bit with the Securifi Almond + which is not open source and a unique device; IE: LCD, Firewall, Router, AP, Zigbee, Z-wave (well too X10) on a 3.5" LCD.
 
The little RPi2/clones are getting very resonable in price.  Saw a RPi2 called an Orange today for $15.  Thinking OpenHab uses REST API
 
Here also using a couple of Chumby's with modded OS's and one Seagate Dockstar that is running Arch Linux doing my irrigation. 
 
It's a bit like the old wild west out there with the variety of different methodologies of automation.
 
I really don't think there's an Orange Pi for $15 in Amazon.com, so I think I will go with these:
 
Raspberry Pi 2 Model B
Raspbee Premium - ZigBee Addon For Raspberry Pi with Firmware
 
I'm unsure which ZigBee devices are compatible other than Philips Hue, be it tap switches, motion sensors, door/window sensors, etc.
 
And I don't have a need for OpenHAB so long as I can communicate with home automation devices using any languages such as BASH scripting, Python, Vala (for GNOME which I am currently using), etc.
 
But maybe one day I might try out OpenHAB in a Linux container (LXC). For now, I'm okay with what I have for basic needs. I might try and find a way how to add timer support to my web application so that I don't have to use cron. Writing an application as a daemon can be a bit tricky when it comes to tracking a JSON file every seond for tracking changes and reading a file by the minute to see what needs executed. And then construct a timer UI for adding/editing/deleting timers in JSON file.
 
Yeah here found the Orange via a google search.  It was just a "new" thing on the site.
 
I only have used RPi and RPi2's for my Rasberry tinkering.  My stock builds now always include the PiFace RTC clock as time is a hobby here and I do not use the internet for a time base.
 
I have purchased much of my RPi stuff from MCM electronics versus Amazon (even though I am an Amazon Prime member).
 
MCM electronics does $5 shipping wherever after a certain spend.
 
Adding up costs relating to my RP2 for automation here:
 
1 - RPi2 $35
2 - RPi2 case ~ $10
3 - RPi2 PS - $10 (here use POE / TPLink power injector to my POE switches)
4 - RPi2 - PiFace RTC clock -  $~ 15.00
5 - RPi2 - Z-Wave Plus GPIO card ~ $59.00
======================================
Guessing...  $130 or so
 
Thinking the Zigbee card is less.  I prefer to go internal versus a USB stick for this stuff.  That is me.
 
I am also playing with the PiPoX7 quad core Intel CPU mini PC.  This one is not really expandable.
 
I did purchase it for around $100 and have installed Ubuntu 14.04 64 bit on it.  It came stock with a lite Windows 8.1 32 bit license which I updated to Windows 10.
 
Now looking at the next generation of Intel Baytrail mini PCs.  These are expandable now and found one for $120 with Wintel licensing directly from China with free shipping.  More CPU (intel), more RAM, SSD OS, included WLAN, LAN, Bluetooth, VGA, HDMI, HD Audio, RS-232 serial, USB et al running at 7 Watts gives you much more bang for the buck than the RPi2.  You pay the premium for the Wintel licensing.  Without the licensing the box is probably worth around $60 for the raw hardware.
 
They are on Amazon and Ebay for a bit under $200. 
 
Thinking you can do more with the Intel based quad core Baytrail which is expandable runs linux than the RPi2.  (note that tinkering is fine; depending on the device for security / automation is mickey mouse - that is my opinion only).
 
My first RPi with an SD card got trashed doing RW's on the SD card.  This sort of made me not like the RPi for automation stuff.  I did switch that first Linux automation software over to an Intel based CPU / Linux at the time and it did well.  I am now using new fast microSD cards and caching RW's.  I still do not trust it for long term automation stuff although it is a neato experimental type of device.  My Seagate Dockstar(s) long term automation box (irrigation) now running for over 3 years is using two SSD cards via USB and running just fine. 
 
I just switched over my Wintel Based Cumulus software over to an RPi2 based Linux version called CumulusMX.  It has not yet failed running on the microSD card.  That said I am building a second one running on an RPi2.  RWing stuff in RAM thinking that may work.  I can also just do a boot partition on the MMC and run the OS on a USB SSD stick.  May decide though just to go with an Intel Baytrail on the CumulusMX box #2.
 
The new Arm based automation boxes are using soldered on MMC and SD cards.  I have an Atom based intel boxes (> 1) which use these MMCs and noticed after a couple of years the MMCs do get trashed and it would be a PITA to have to replace them such that I have gone now to using standard SSD OS drives for these boxes.  (well too my Leviton OPII panel (s) is doing fine after 10 years with the firmware and my first generation Arm (~ 200 MHz CPUs?)  based Omnitouch screens are doing well these days after many many years).
 
That is my opinion only.
 
Hi Guys,
 
Life's too short to deal with the Insteon network directly.   The great thing about Insteon is its reliability with or without the central controller running.
I use Universal Devices ISY944 (  http://www.universal-devices.com/  ).   It has a REST API interface and other http protocols.
 
So the ISY handles all the Insteon network,  the RaZberry handles the Z-Wave,   custom Arduino and ESP8266 units handle odds and ends like the AC dampers and the pool pump and valves.
 
My problem is that I was using OpenRemote, as the middleware software, but it seems to have gone stale (at least based on the forums).
Is there a better middleware package?   OpenHab, etc....
 
 
Thanks for any insights.
 
Chris in Miami
 
Back
Top