top | item 4413185

Build Your Own Home Automation w/ Pusher, Twilio, and Arduino

252 points| jonmarkgo | 13 years ago |twilio.com | reply

32 comments

order
[+] jsilence|13 years ago|reply
I'd like to add a pointer to OpenHAB, which has been released in Version 1.0.0 some days ago. It is an open source Home Automation Bus (HAB).

https://code.google.com/p/openhab/

[+] jonmarkgo|13 years ago|reply
That's awesome, are there any compatible pieces of hardware yet?
[+] thecodemonkey|13 years ago|reply
This is really cool! But also kind of complex for a task that could be performed in a much simpler way.

Using a GSM module such as the Telit GM862 [1], you will be able to receive text messages directly on the Arduino without the need of any web services. This would be much faster and cheaper. This particular module even includes a GPS.

[1] http://tinkerlog.com/2009/05/15/interfacing-arduino-with-a-t...

[+] jonmarkgo|13 years ago|reply
Indeed - I've been meaning to experiment with a GSM module actually, I just had the WiFly handy so I built it with that instead. One thing I would say is that using the WiFly allows you to connect with web services as well as the cell networks (in my example I made a very basic Sinatra app with an on/off button)
[+] notatoad|13 years ago|reply
a GSM module requires you to deal with cell phone companies for service though, right? i'd much rather integrate with twilio than with bell.
[+] Timothee|13 years ago|reply
I had skimmed the post earlier and came back because I thought "hmm, I wonder how he got the Arduino publicly accessible…" and didn't remember seeing anything about that.

But thanks to things like Pusher, you don't need that!

I was just picturing the request going to Twilio and then pinging the Sinatra app on the Arduino directly… But Pusher and the like really help so much to put things "online", albeit indirectly. But between a free Pusher app and a free Heroku app, it's easy to get going without worrying of your home router configuration or anything anything like that.

[+] jonmarkgo|13 years ago|reply
Early on, I actually attempted to run a webserver on the Arduino and have Twilio POST to it. However, I couldn't find a good/easy way to make it publicly accessible (tried no-ip, dyndns, etc.) - and while I could get it working on my own router I couldn't find a good way to describe how to set it up in the tutorial
[+] jeffiel|13 years ago|reply
Check out ninjablocks too, really cool stuff they're building
[+] BarnabasLAL|13 years ago|reply
You piqued my interest, Jeff, so I did check out ninjablocks.com. They have a cloud service (ninjablocks.com/cloud) that appears that the whole heroku/pusher bit might be unnecessary. The hardware is open, so you could build your own, or they are also doing limited runs were selling them for $155 AUD ($160 USD, £100 GBP) for the basic device, more with sensors and stuff.

I suppose one could also use IFTTT recipes too, again to get around the server bit. Still, this is more DIY with websockets, so that's got a big cool factor.

[+] notregistering|13 years ago|reply
Thank you for posting this Jon. I do believe I will have to put one together now.
[+] jonmarkgo|13 years ago|reply
Great to hear, be sure to let me know how it works out or if you have any problems :)
[+] sean-duffy|13 years ago|reply
Too bad there isn't anything like the PowerSwitch for UK power outlets!
[+] sebastianavina|13 years ago|reply
i'd like to point out that those devices are going to waste more energy in a year, than the amount due to the A(C
[+] carlsednaoui|13 years ago|reply
Awesome tutorial Jon!
[+] jonmarkgo|13 years ago|reply
Thanks Carl! I'm loving the arduino hacking. Its a great prototyping tool
[+] ijustwantbacon|13 years ago|reply
I'm in Australia. If only there was some way to get an Arduino Uno in Australia. OH WAIT THERE IS, SNAP.

http://jacobsdirect.com/arduino/1-arduino-uno-rev3.html

[+] nosignal|13 years ago|reply
If I had karma enough to downvote advertising, I would.

FWIW, Little Bird electronics are another Australian supplier of Arduino & associated electronics. http://littlebirdelectronics.com/products/arduino-uno-r3

No association, except for being a satisfied customer.

It's always a toss-up between ordering locally & just shipping from Sparkfun, though, especially with the exchange rate.

[+] Gussy|13 years ago|reply
I'm also from Australia and I could list at least a dozen places I would buy an Arduino from, before using your website that's less than a month old, and provides no contact details.

This blatant advertising is poor form.