Use a Coda Pack to control your Philips Hue lights. To try it out, make a copy of this doc and then sign in with your Philips Hue account.
Or simply install this Pack into your own doc:
Lights 💡
The Pack can be used to control individual lights. Select a light from the drop down below and then use the controls.
Set color
Hue lightbulbs have a , so the light bulb may not exactly match the color previews shown below. From CSS Color
You can use named colors or hex values.
Rooms 🚪
The Pack can also be used to control entire rooms. It’s not possible to fetch the current state for an entire room, though you could do it light by light.
You can use named colors or hex values.
Scenes 🎨
This Pack can load the saved scenes associated with your rooms, and with a button click apply them.
Settings ⚙️
HSB Color Preview (Room): HSB to Hex Formula:
Format("#{1}",
WithName(Hue / 65535 * 360, h,
WithName(Saturation / 254, s,
WithName(Brightness / 254, b,
List(5, 3, 1).FormulaMap(
WithName(CurrentValue, n,
WithName((n + h / 60) % 6, k,
WithName(b * (1 - s * Max(0, Min(k, 4 - k, 1))), f,
255 * f
)
)
)
)
)
)
).FormulaMap(
ToHexadecimal(CurrentValue.Floor(), 2)
).Join("").Lower()
)