Skip to content

A SiriProxy plugin to control Philips Hue lights with Siri

Notifications You must be signed in to change notification settings

hack2learn/siriproxy-hue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hue got me babe

This is a SiriProxy plugin to control Philips Hue lights with Siri. It has been developed for and tested with jimmykane's Three Little Pigs fork of SiriProxy, although the plugin APIs look very similar and for now it may work with both.

Installation Notes

Follow the plugin install instructions from SiriProxy. I had some trouble until I made sure that libmysql-dev was also installed before I could rake install SiriProxy, so use your preferred package manager to do that if necessary.

Example Commands

  • Turn off all the lights
  • Turn on the bedroom light
  • Turn up the kitchen
  • Set the hallway to 20%
  • Set the bedroom to light blue (colors not implemented yet)
  • Make it look like a sunset (scenes not implemented yet)

Initial setup

  • Press the link button on your Hue bridge
  • Make an HTTP request to http://YourHueHub/api with: {"username": "YourMD5Hash", "devicetype": "YourAppName"} I used resty for this.
  • A valid request will return {"success":{"username":"YourMD5Hash"}}
  • Store this MD5 hash in the hueKey class variable in lib/siriproxy-hue.rb
  • Store the Hue's local IP address in the hueIP class variable
  • Add the hue gem to the SiriProxy config file, run siriproxy bundle from it's directory and restart the server

Credit

The API used with the Hue bridge has been sniffed by other people who deserve the credit.

There's also a ton of people who have put work into SiriProxy, thanks to them for making this possible.

About

A SiriProxy plugin to control Philips Hue lights with Siri

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%