Home Automation Remote your home will never be the same . . .
Turn on and off Lights, Fans, TV’s, Fireplaces, Air Compressors, Pool Lights, anything you can plug into a 110 wall outlet, over the cloud from anywhere.
Configure everything from your phone from anywhere over the cloud. (Requires Android device running Gingerbread or higher and Android Smart Hub app, I run mine on a HTC EVO which can be found for $20 on e-bay)
Schedule devices to come on daily (Front Exterior Lights, Christmas Lights, Pet Lights)
Link items together (Bedroom Fan and Lights, All Interior Lights, Multiple Exterior Lights)
Change Icons to catch your eye.
Full App Demo Here
Things you need to do this Home Automation thing:
— Android Smart Hub —
An Android device running Gingerbread or higher.
On the Android device you will need to install:Home Automation Hub
— Raspberry Pi Hardware —
1. Raspberry Pi (around $35)
2. A Micro SD Card (16 GB or higher) with Raspbian and configured the way I show you here.
(If the process seems too daunting, it is harder than I wish it was,
I sell pre configured 16 GB Micro SD cards for $15 – contact me through e-mail)
3. Power Cord for the Raspberry Pi (not included with just the Raspberry Pi) ($7)
You can use a cord for a Android phone if you have extras.
4. A relay ($4)
5. Wires to connect the relay to the Raspberry Pi ($9)
6. Ethernet Cable
7. HDMI Cable (to hook up to a TV or Monitor)
8. Keyboard and Mouse.
— Raspberry Pi Software Configuration —
When you have all this then you can configure the Raspberry Pi like I show you here.
Then configure the extras you will need to control the Raspberry Pi over the cloud:
The link above is for a quick sheet to get everything done as quickly as possible if you would like a little more background info:
Custom Script Install Detail Info:
Once you get the Raspberry Pi configured you will then need to download my python and php scripts to the Raspberry Pi from Git.
To install Git on the Raspberry Pi:
sudo apt-get install git-core
My Python and PHP scripts needed by the hub app.
Make sure you are in the /home/pi directory.
Make a directory called git: sudo mkdir git
Go to that directory: cd git
Get my scripts from Git:
sudo git clone https://github.com/z4x4van/Home-Automation-Production.git
Go to Home-Automation-Production directory: cd Home-Automation-Production
Python scripts go in the /home/pi directory – I will show you a shortcut
PHP scripts go in the /var/www directory – I will show you a shortcut
(UPDATE! raspbain JESSIE has changed this location to /var/www/html
(If this directory doesn’t exist you skipped the Raspberry Pi Configuration Process step which has you install a Apache Web server and PHP).
I am about to give you a command that takes you out of safe mode and into full on admin mode that will let you break anything without asking “Are You Sure?”
But this allows you to get to root which makes copying files to the right directory doable from a single command.
Make sure you type exit as soon as your done copying the files!
So while in the /home/pi/git/Home-Automation-Production directory type:
YOU ARE NOW IN ADMIN MODE!
Now type: cp *.php /var/www/ – to put the php files where they go.
(UPDATE! raspbian JESSIE has moved the location where to put PHP files, use above for
Wheezy, Use command below for JESSIE)
Now type: cp *.php /var/www/html – to put the php files where they go.
(UPDATE! use command below for both Wheezy and JESSIE python files)
And type: cp *.py /home/pi – to put the Python files where they go.
NOW TYPE: exit
You can now go to these directories and make sure they have:
/home/pi – powerOn.py powerOff.py togMe.py
(UPDATE! raspbian JESSIE has moved the location where to put PHP files)
/var/www – powerOn.php powerOff.php togMe.php
/var/www/html – powerOn.php powerOff.php togMe.php
If they are there Your Raspberry Pi is now ready!
— Raspberry Pi Hardware Configuration —
Once you have that done, you are ready to wire up the relay to the Raspberry Pi and this is how you do it, the project is for a garage door opener app (to be released soon) but the hardware set up is still the same.
— Raspberry Pi Smart Hub Software Configuration —
You can now go get and install the HUB app first which will give you an IoT Chat Room Code, this is what your Hub monitors while waiting for commands from the Remote app on your phone.
When you install the Remote app on your phone it will ask for this code so it can talk to the hub.
The best way to make sure your Phone is communicating to your Hub is to try to adjust the volume on your hub by going to the slide out menu on the left side of your phone and select a volume level.
If that works you are ready to start configuring some new devices as I show you in the YouTube video.
Full App Demo Here