Share
Explore

icon picker
Get started with the Philips Hue Pack for Coda

Monitor and control your Philips Hue lights from a Coda doc.
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.
Copy this doc

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.
Select Light:

Current state

On:
true
Brightness:
57
Hue:
75
Saturation:
78
Color:
#cdfe39
Effective Color
Refresh

Controls

Power:
Turn On
Turn Off
Brightness:
000
80
Set
Effect:
Blink
Long blink

Set color

Hue lightbulbs have a , so the light bulb may not exactly match the color previews shown below.

From Hue & Saturation

Hue:
000
133
Saturation:
000
91
Preview
Set color

From CSS Color

You can use named colors or hex values.
CSS color:
#ff0000
Preview
Set color
All Lights
Light
Type
Model
Light Id
Philips Hue icon
Nate's Lamp
tableshade
LCT007
lights/1
Philips Hue icon
Kitchen Lamp
floorshade
LCT001
lights/2
Philips Hue icon
Office Lamp
floorshade
LCT001
lights/3
Philips Hue icon
Entry
ceilingsquare
LCA003
lights/4
Philips Hue icon
Bedroom Lamp
tableshade
LCT007
lights/5
Philips Hue icon
Outside Upper
walllantern
LCT016
lights/6
Philips Hue icon
Outside Walkway
floorlantern
LCT001
lights/7
Philips Hue icon
Baby Lamp
tableshade
LCA005
lights/8
There are no rows in this table


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.
Select Room:
Lights:
@Office Lamp
Power:
Turn On
Turn Off
Brightness:
000
70
Set
Effect:
Blink
Long blink
Hue:
000
320
Saturation:
000
60
Preview
Set color
You can use named colors or hex values.
CSS color:
#00ff00
Preview
Set color
All Rooms
Room
Type
Lights
Room Id
Philips Hue icon
Kids Room
Kids bedroom
groups/1
Philips Hue icon
Downstairs
Downstairs
groups/2
Philips Hue icon
Office
Office
groups/3
Philips Hue icon
Kitchen
Kitchen
groups/4
Philips Hue icon
Outside
Front door
groups/5
Philips Hue icon
Bedroom
Bedroom
groups/6
Philips Hue icon
Baby Room
Nursery
groups/7
There are no rows in this table


Scenes 🎨

This Pack can load the saved scenes associated with your rooms, and with a button click apply them.

Room
Scene
Action
13
11
12
Philips Hue icon
Savanna sunset
Set scene
Philips Hue icon
Tropical twilight
Set scene
Philips Hue icon
Arctic aurora
Set scene
Philips Hue icon
Spring blossom
Set scene
Philips Hue icon
Relax
Set scene
Philips Hue icon
Read
Set scene
Philips Hue icon
Concentrate
Set scene
Philips Hue icon
Energize
Set scene
Philips Hue icon
Bright
Set scene
Philips Hue icon
Dimmed
Set scene
Philips Hue icon
Nightlight
Set scene
Philips Hue icon
Halloween Purple
Set scene
11
18
11
4

Settings ⚙️

Refresh Time:
2/20/2025, 5:17 PM
Selected Lamp State:
Philips Hue icon
Office Lamp
HSB Color Preview:
#16ff49
HSB Color Preview (Room):
#ff66cc
HSB to Hex Formula:


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.