Jump to content

Philips Hue Controller Workflow


Recommended Posts

Hey guys, there were some bugs in the last release I put that that prevented you from using the "All lights" command.  I've fixed this in the new version, 2.3.

 

DOWNLOAD

This is a fantastic workflow! Thank you for the time you've put in.

 

I don't want to start barking ideas but this is more of a question:

When I set (with my phone) to a preset (lets say blue rain) and then use alfred to save the preset (hue-preset-save or whatever) can it save that current config? Or is saving presets in alfred only for if you've set the lights up through alfred. I ask because I set to a preset using my phone and then saved the preset with alfred but when i go back to that preset through alfred, it doesnt seem to work

Link to comment
  • 2 weeks later...

This is a fantastic workflow! Thank you for the time you've put in.

 

I don't want to start barking ideas but this is more of a question:

When I set (with my phone) to a preset (lets say blue rain) and then use alfred to save the preset (hue-preset-save or whatever) can it save that current config? Or is saving presets in alfred only for if you've set the lights up through alfred. I ask because I set to a preset using my phone and then saved the preset with alfred but when i go back to that preset through alfred, it doesnt seem to work

 

Interesting.  That *should* actually work.  Can you repeat the action maybe a few times and tell me if it's consistently failing?

Link to comment
  • 9 months later...

How do you delete presets?  

 

I attempted save presets twice and each time only 6-7 of lights included in preset actually turned on.  I would like to delete these save presets but see no instruction for how to do so.  

 

Can you delete save presets, if so how?

Link to comment

How do you delete presets?  

 

I attempted save presets twice and each time only 6-7 of lights included in preset actually turned on.  I would like to delete these save presets but see no instruction for how to do so.  

 

Can you delete save presets, if so how?

 

Use the "-hue" keyword to find the "Open Presets Storage – Use this to delete, rename, or backup presets" option.  This opens the a directory in Finder.  To delete the preset, just delete the folder pertaining to that preset.

 

:)

Edited by benknight
Link to comment
  • 3 months later...
  • 9 months later...
On 10/9/2016 at 0:02 PM, bongobong said:


Thanks. I was sort of hoping i could get it to go "hp <preset name> or some such. 

Thanks! 

 

@bongobong Actually this is possible with some light editing of the workflow source.  Here's a rough guide:

 

1. Open Alfred Preference, go to "Workflows" and select this workflow.

2. Create a new script filter: + > Inputs > Script Filter

3. Double click the new script filter (it will be at the bottom probably)

4. Edit the filter accordingly:

  1. Set to "Argument optional"
  2. Set the Keyword to whatever you like, such as "hp" to use your example
  3. Set the Placeholder title to whatever you like, e.g. "Set Philips Hue Controller preset..."
  4. In the "script" box, enter
    python -m logic.filters "presets {query}"

    -

4. Profit

 

Let me know if it works out for you!

Link to comment
  • 8 months later...

I’ve tested several apps to control Hue from the Mac and wasn’t really satisfied.  This workflow it’s the best thing that I found to do the job. Especially the possibility to use hotkeys. A huge thanks to you, benknight!

Edited by Serge
Link to comment
  • 3 years later...

Since I've installed macOS 12.3, the workflow doesn't work anymore.

 

 I got this :

 [00:33:12.716] Philips Hue Controller[Hotkey] Processing complete
[00:33:12.718] Philips Hue Controller[Hotkey] Passing output 'groups:0:on' to Run Script
[00:33:12.783] ERROR: Philips Hue Controller[Run Script] /bin/bash: /usr/bin/python: No such file or directory
[00:33:12.784] Philips Hue Controller[Run Script] Processing complete
[00:33:12.786] Philips Hue Controller[Run Script] Passing output '' to Post Notification
[00:33:12.786] Philips Hue Controller[Run Script] Passing output '' to Write Text File

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

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...