Welcome to Alexa Home! The goal of this project is to use your Amazon Echo to control various home automation software. Interested in integrating a new module? Check out some of the code and send in a pull request! Glad to help out.
Here's a blog post too with a bad demo video and some background:
http://blog.zfeldman.com/2014-12-28-using-amazon-echo-to-control-lights-and-temperature
You'll need to clone the repository from GitHub in the Terminal.
You'll also need to set some environmental variables, which could be accomplished like this:
# in a file called .env
export NEST_EMAIL=your_nest_email@awesome.com
export NEST_PASS=your_nest_password_not_test123
export AMAZON_EMAIL=youramazonlogin
export AMAZON_PASSWORD=your_awesome_pass_not_12345
when you're done putting together the file, source it in the Terminal:
$ source .env
For more, check out Using Environment Variables to Safely Store API Credentials(
This has to be run on the same network your Hue is on, but not necessarily the same network your echo is on.
-
Clone this repository (see the link on the right) or download it as a zip file.
-
Open up the directory in your terminal application by dragging it into Terminal from the Finder or using the
cd
(change directory) command, I.E.cd /home/pi/dev/alexa-home
-
Run
bundle install
(I'm assuming you have Ruby 2.0+, usingruby -v
to find out). -
If you plan on using a Hue setup, press the button on top of your Hue unit
-
Type
chmod +x startScript.sh && ./startupScript.sh
-
This will start Alexa Home in the background. To stop Alexa Home, see "Stopping Alexa Home"
-
Phillips Hue
-
Nest Thermostat
I'd love to get these resolvers/modules done at some point too:
-
August Smart Lock
-
IR Transmitter to turn on and off the television
-
Uber to call a cab...with your voice!
-
Type
ps aux | grep ruby
at the Terminal to see a list of running Ruby processes -
If you see the server (app.rb) or the Watir runner (watir-login.rb) and want to stop either of them, type
sudo kill -9 <PID>
, PID corresponding to the program's process ID.
Send in pull requests!
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.