Jump to content

Basic Philips Hue control via Alfred


Recommended Posts

Just created a couple of workflows to control my Philips Hue lights.

 

The IP address in the Alfred scripts needs changing to your bridge IP address.

 

Hue Add Alfred Support

 

This adds a user called alfredcontrol on your Hue bridge, this only needs to be run once and can be disabled in the workflow window once run, you'll need to press the button on the bridge too.

 

http://dl.dropbox.com/u/2013925/Alfred/Hue%20Add%20Alfred%20Support.alfredworkflow

 

Hue

 

This turns the lights on or off, I have 3 lights ( the 1 to 3 in the script ), if you have more modify the script to suit.

 

http://dl.dropbox.com/u/2013925/Alfred/Hue.alfredworkflow

 

See http://developers.meethue.com/index.html if you want to get a bit creative.

Edited by NogbadTheBad
Link to comment
  • 1 month later...
  • 1 month later...
  • 2 weeks later...

Problem: After selecting All Lights Color Cycle, the lights will continue to cycle even when switching to other scenes.

 

Solution: add the following line to the Run Script in all the scenes except for "cycle)"

 

curl --request PUT --data "{\"effect\":\"none\"}" http://<YOUR IP ADDRESS>/api/alfredcontrol/groups/0/action

 

That CURL assumes that you want to remove the loop effect from all the lights in your setup, hence the groups/0 address.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...