All Projects → benknight → Hue Alfred Workflow

benknight / Hue Alfred Workflow

An Alfred workflow for controlling Philips Hue lights.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Hue Alfred Workflow

Alfred Ssh
Open SSH/SFTP/mosh connections from Alfred 3+
Stars: ✭ 301 (-0.99%)
Mutual labels:  alfred, alfred-workflow
alfred-relative-dates
Alfred workflow to generate relative dates in different locales
Stars: ✭ 30 (-90.13%)
Mutual labels:  alfred, alfred-workflow
pandoc alfred
Pandoc-Suite for Academic Writing in Markdown
Stars: ✭ 68 (-77.63%)
Mutual labels:  alfred, alfred-workflow
alfred-mailto
Send emails to recipients and groups from Alfred
Stars: ✭ 59 (-80.59%)
Mutual labels:  alfred, alfred-workflow
alfred-imessage-2fa
iMessage 2FA Workflow for Alfred
Stars: ✭ 71 (-76.64%)
Mutual labels:  alfred, alfred-workflow
alfred-microsoft-onenote-navigator
Use Alfred to browse through your Microsoft OneNote notebooks, section groups and sections and then jump to them instantly.
Stars: ✭ 52 (-82.89%)
Mutual labels:  alfred, alfred-workflow
linguee-alfred-workflow
Dictionary workflow for Alfred based on linguee.de
Stars: ✭ 59 (-80.59%)
Mutual labels:  alfred, alfred-workflow
alfred-chinese-converter
支持 OpenCC 簡繁體中文詞彙級別轉換、異體字轉換以及地區習慣用詞轉換的 Alfred 2 workflow
Stars: ✭ 42 (-86.18%)
Mutual labels:  alfred, alfred-workflow
alfred-iterm-profiles-workflow
An Alfred 3 workflow to easily search and open iTerm profiles
Stars: ✭ 26 (-91.45%)
Mutual labels:  alfred, alfred-workflow
alfred-latex-symbols-workflow
🔎 Alfred 3-4 workflow to search for latex symbol commands
Stars: ✭ 33 (-89.14%)
Mutual labels:  alfred, alfred-workflow
alfred-tldr
tldr with alfred workflow written in Go
Stars: ✭ 77 (-74.67%)
Mutual labels:  alfred, alfred-workflow
Alfred Laravel Docs
An ultra-fast Laravel docs search workflow for Alfred 3+.
Stars: ✭ 270 (-11.18%)
Mutual labels:  alfred, alfred-workflow
alfred-default-folder-x
Access your Default Folder X favourites and recent items in Alfred
Stars: ✭ 21 (-93.09%)
Mutual labels:  alfred, alfred-workflow
alfred-chrome-history
Search your Google Chrome history in Alfred
Stars: ✭ 169 (-44.41%)
Mutual labels:  alfred, alfred-workflow
alfred-workflows
Collection of Alfred workflows
Stars: ✭ 24 (-92.11%)
Mutual labels:  alfred, alfred-workflow
AlfredWorkflows
My workflow creations for Alfred on macOS.
Stars: ✭ 55 (-81.91%)
Mutual labels:  alfred, alfred-workflow
alfred-caniuse
Quickly reference caniuse.com support tables using Alfred 3.
Stars: ✭ 16 (-94.74%)
Mutual labels:  alfred, alfred-workflow
alfred-ask-create-share
Alfred workflow for creating web submissions (Stack Exchange, Forums and more)
Stars: ✭ 30 (-90.13%)
Mutual labels:  alfred, alfred-workflow
alfred-timing
⏳ Alfred workflow for Timing app
Stars: ✭ 21 (-93.09%)
Mutual labels:  alfred, alfred-workflow
Alfred Slack
The Slack workflow for Alfred app
Stars: ✭ 254 (-16.45%)
Mutual labels:  alfred, alfred-workflow

Philips Hue Controller for Alfred

Quickly and easily control Philips Hue lights with Alfred. Download the workflow

Index

⚠️ Contributing bug fixes and features ⚠️

Last updated 2020-12-16

A few years ago I moved abroad and (gasp!) I didn't take my Hue lights with me. That makes debugging and/or adding new features to this workflow very difficult for me because my only option is to emulate the bridge API which is flawed to say the least.

For bug fixes and or new features, please submit a pull request so that I can review and cut a new version.

Features

Control the state of lights and rooms

  • Set brightness for lights or groups
  • Set color for lights or groups (using CSS color names or HEX codes)
  • Set colorloop effect on lights or groups
  • Set reminders
  • Set groups to custom scenes you've configured in the Philips Hue app
  • Rename lights
Light control
Control lights
Group control
Control groups

Note: groups:0 as seen above is autocompleted by the workflow after selecting room name, or in this case "All lights". Group '0' always refers to all lights. Each room name is associated with a specific group ID on the bridge. Remember this ID if you wish to create hotkeys for rooms (see below).

Color Harmonies

This workflow has some bonus custom color science logic built in that let's you use color wheel relationships such as analogous, complementary, triad, etc. to set group colors. Give it a try to see how it works:

Set harmony
Color Harmony

Hotkeys API

This workflow uses a special action string format that you can use to create a hotkey for any action you could otherwise perform using the hue keyword, which follows the following pattern:

<lights|groups>:<id>:<function>:<value>

Some example valid action strings are:

groups:0:on                    # Turn on all lights (note: Group "0" refers to all lights)
groups:0:off
groups:0:color:random          # Set all lights to a random color
groups:0:color:red
groups:1:set:<scene_name>      # Set a scene on group with ID "1"
lights:1:color:random
lights:1:color:bada55
lights:1:reminder:180          # 180 seconds
lights:1:bri:50                # 50 percent
lights:2:rename:Kitchen
lights:3:effect:colorloop      # Turn on colorloop effect on light with id "3"

Combine multiple commands into one hotkey

You can combine multiple commands into one hotkey by joining action strings with |, for example:

groups:0:on|lights:1:color:random

To create a new hotkey, open Alfred Preferences.app, go to Workflows and select the Philips Hue Controller workflow in the sidebar. In the main panel right click and select Triggers > Hotkey. Set the text argument to the action string, then connect that to the same block as the other preloaded hotkeys.

To make this even easier, open history.txt inside of the Workflow's directory (right click Philips Hue Controller, select "Open in Finder") and there you can see history of all commands. This makes creating a hotkey for setting a scene easier, for example, since scenes have long ID strings e.g. ESyAHbZCG8RJTxi.

Setup & Installation

  1. Download the workflow

  2. The first time you run the workflow it will ask you to press the button on top of the Hue bridge then action the item to authorize the workflow to control your Hue lights:

Setup
Setup

The workflow automatically attempts to find the bridge on your local network. You can also manually specify the bridge's IP address. For example, if your bridge's IP is 192.168.1.103:

hue 192.168.1.103

Credits

Thanks to iconsphere, To Uyen, Setyo Ari Wibowo, Austin Condiff, H Alberto Gongora, Andreis Kirma, and Ananth from the Noun Project for icons.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].