Close

Voice Activated Home Automation with SiriProxy & ioBridge

Siri Lighting the Fireplace

Siri Light my Fire

I’ve been using ioBridge & X10 for a couple years now to control some of my appliances / lights etc. in my apartment. ioBridge is a small module that allows you to web-enable your projects. Once you buy the control panel you can extend it with various boards, probes and sensors.

With the release of SiriProxy you can now intercept Siri commands and create your own custom commands and responses.

Using this I setup a simple SiriProxy plugin to call a PHP file on my web server, which in turns triggers the ioBridge to send the X10 command to the desired device.

This is what I used for this project:

I’m not going to do a full walk through on how to set everything up, as things are changing very quickly. There’s lots of up-to-date info on the respective sites. You can check out the results in the video below:

Watch @paulacroken play with our new voice activated system.

The first step is to get SiriProxy running successfully and the ioBridge module setup with X10. Next you can create individual PHP files for each action and upload them to a folder on your website. Finally create a custom Siri voice command to open the URL of the PHP file you uploaded – this automatically triggers the X10 action and turns the device on or off.

I used this PHP script as the base for each of my actions. I hardcoded the widget ID and state variables (1 for on, 0 for off) in this script – so every time you load the PHP file it triggers an on or off action automatically.

$widgetID = 'mywidgetID'; $state = '0';

Note: Using this technique you can create CRON jobs to scheduled tasks with these same PHP files, ie. turn lights off at 11pm

Here’s an example from the SiriProxy plugin I created to accept the new voice commands (use the example plugin as a great base):

#Turn on Living room lamp
listen_for /siri turn on the living room lamp/i do
open('http://mywebsite.com/controlfiles/livingroom-on.php')
say "Turning on your living room lamp"

request_completed
end

You can replicate this block and create as many actions as you want – you can even call multiple files to chain events like:

#Turn on Christmas Lights
listen_for /siri turn on the christmas lights/i do
open('http://mywebsite.com/controlfiles/decklights-on.php')
open('http://mywebsite.com/controlfiles/tree-on.php')
say "Turning on your christmas lights"

request_completed
end

Final Notes:

  • This can be done on Windows but it’s harder
  • This won’t work once you leave your home Wi-Fi, unless you setup a VPN
  • You don’t need to jailbreak your phone, and this won’t effect normal Siri operations

Good luck if you decide to try this, SiriProxy opens up a ton of interesting DIY ideas!

About the author Mark Hodder

Owner, themedy.com – a premium provider of child themes for the WordPress Thesis & Genesis frameworks.

All posts by Mark Hodder →

45 Comments

  1. […] you’d like to create a similar setup, visit his blog to get started and download the appropriate scripts and plugins. You’ll need an iPhone 4S […]

  2. […] you’d like to create a similar setup, visit his blog to get started and download the appropriate scripts and plugins. You’ll need an Iphone 4S […]

  3. […] en savoir plus… c’est ici (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) […]

  4. […] Learn more on how to make this possible by checking out his blog. [Link] […]

  5. […] you’d like to create a similar setup, visit his blog to get started and download the appropriate scripts and plugins. You’ll need an iPhone 4S […]

  6. […] Hodder, un webmaster freelance, ha recentemente pubblicato le informazioni sul suo blog riguardo al suo progetto di automazione domestica. La configurazione comprende un ioBridge e […]

  7. […] Hodder, a freelance webmaster, recently posted information on his blog regarding his home automation project. The setup includes an ioBridge and several X10 modules which […]

  8. […] Hodder, a freelance webmaster, recently posted information on his blog regarding his home automation project. The setup includes an ioBridge and several X10 modules which […]

  9. […] Wahaab JB on December 3rd, 2011 in Apple A freelance webmaster, Mark Hodder has manged to hack Siri via Siriproxy through which he can turn on/off his room’s lights and […]

  10. […] Hodder, un webmaster freelance, ha recentemente pubblicato le informazioni sul suo blog riguardo al suo progetto di automazione domestica. La configurazione comprende un ioBridge e […]

  11. […] Siri sa controleze tot ce vedem insa platforma Windows este la fel de capabila sa sustina sistemul. Pe blogul utilizatorului care a facut clipul video aveti instructiuni care va ajuta intr-o anumita masura sa […]

  12. […] Hodder, a freelance webmaster, recently posted information on his blog regarding his home automation project. The setup includes an ioBridge and several X10 modules that […]

  13. […] Hodder, a freelance webmaster, recently posted information on his blog regarding his home automation project. The setup includes an ioBridge and several X10 modules that […]

  14. […] Fans, today we have got a new something Mark Hodder, a freelance webmaster, recently posted information on his blog regarding his home automation project. The setup includes an ioBridge and several X10 modules that […]

  15. […] Hodder, a freelance webmaster has recently demonstrated on his blog showing Siri controlling Entire Room Lights, Curtains, Fans which completely automates your home. […]

  16. […] man Interesse an diesem Projekt hat und die benötigten Kenntnisse mitbringt, kann auf seinem Blog die einzelnen Schritte durchlesen, die der Entwickler durchgeführt hat. /* */ […]

  17. […] though SiriProxy installed on his MacBook. He recently posted about his home automation project on his blog which really looks impressive and useful.google_ad_client = "pub-2845809961950434"; /* 336×280, […]

  18. […] though SiriProxy installed on his MacBook. He recently posted about his home automation project on his blog which really looks impressive and […]

  19. […] engine, controlling a thermostat etc. Now the latest innovation comes from a freelance webmaster, Mark Hodder who has manged to hack Siri via Siriproxy through which he can turn on/off his room’s lights and […]

  20. […] engine, controlling a thermostat etc. Now the latest innovation comes from a freelance webmaster, Mark Hodder who has manged to hack Siri via Siriproxy through which he can turn on/off his room’s lights and […]

  21. […] television and even controlling third-party iOS apps. Now, this developer named Mark Hodder has combined SiriProxy with ioBridge, a small module that allows you to web-enable your projects, to create a […]

  22. […] web-enabled clients and controlled them using SiriProxy which he had installed on his MacBook. He posted this video about this home automation project which can be quite […]

  23. […] suo blog lo sviluppatore Mark Hodder spiega come sia riuscito usando SiriProxy e iBridge a creare questo […]

  24. […] To Convert these appliances into web-enabled clients, Mark made use of an ioBridge and several X10 modules which he controlled though SiriProxy installed on his MacBook. He recently posted about home automation on his blog. […]

  25. […] engine, controlling a thermostat etc. Now the latest innovation comes from a freelance webmaster, Mark Hodder who has manged to hack Siri via Siriproxy through which he can turn on/off his room’s lights and […]

  26. […] Well, Mark Hodder the webmaster is one of the masterminds who controlled his fireplace, lights, Christmas and other appliances by using Siri. He published some ideas and information about his Home Automation Project on his blog. […]

  27. […] third-party iOS apps. Now, th&#1110&#1109 developer named M&#1072rk Hodder h&#1072&#1109 combined SiriProxy w&#1110th ioBridge, a small module th&#1072t allows &#1091&#959&#965 t&#959 web-enable […]

  28. […] trigger the ioBridge to send the X10 command to the appliances. The technical details are found on Hodder's Blog. The result is pretty cool as you can see on the video below: As you can see, this is not […]

  29. […] trigger the ioBridge to send the X10 command to the appliances. The technical details are found on Hodder’s Blog. The result is pretty cool as you can see on the video […]

  30. […] nyligen lagt upp information på sin blogg om sitt […]

  31. […] MarkHodder] Related posts on iJailbreak:Siri Can Even Control Your […]

  32. […] MarkHodder] Category: Technology December 7th, 2011 No comments yet admin Leave a Comment or […]

  33. […] more details, visit markhodder.com. Follow us on Twitter of Like our Facebook page to get the latest news from our site: […]

  34. […] Well, Mark Hodder the webmaster is one of the masterminds who controlled his fireplace, lights, Christmas and other appliances by using Siri. He published some ideas and information about his Home Automation Project on his blog. […]

  35. Hi! Any chance you can publish a tutorial on setting everything up for this? I would love to get this working in my home. A step-by-step guid would be awesome!!

    Thanks for sharing this awesome hack!!

  36. […] recognition? Hack-a-day Voice controlled homeSiri- Installing Three little pigs –  SiriProxy to control X10 -Question: Have you found more information on how to control Homeseer with an iPhone using […]

  37. I’d really love a tutorial on this too. It’d be worth a couple of beers!

Comments are closed.