Lights
Display and control the lights.
Get Lights
Display one or many lights.
Usage
openhue get light [lightId|lightName] [flags]Aliases: light, lights
Flags
room
r
Filter lights by room (name or ID).
json
j
false
Format output as JSON
Examples
# List all lights as a table
openhue get lights
# List all lights as JSON
openhue get lights --json
# Get details for a single light in JSON format
openhue get light aa31ba26-98a7-4830-8ae9-1b7caa8b5700 --json
# Get light by name
openhue get light "Hue Go"
# List all lights for a specific room
openhue get light --room "Living Room"Set Lights
Control one or many lights
Usage
openhue set light [lightId|lightName] [flags]Aliases: light, lights
Flags
on
false
Turn on the light(s)
off
false
Turn off the light(s)
brightness
b
Set the brightness [min=0, max=100]
rgb
RGB hexadecimal value (example #CCE5FF)
cie-x
x
X coordinate in the CIE color space
cie-y
y
Y coordinate in the CIE color space
temperature
t
Color temperature in Mirek [min=153, max=500]
room
r
Force the room of the light(s) in case multiple lights have the same name but belong to different rooms
Examples
# Turn on a light
openhue set light 15f51223-1e83-4e48-9158-0c20dbd5734e --on
# Turn on multiple lights, using ID or name
openhue set light 83111103-a3eb-40c5-b22a-02deedd21fcb "Hue Play TV" --on
# Turn off a light identified by name in a specific room
openhue set light --room "Living Room" "Hue Play Right" --off
# Set brightness of a single light
openhue set light 15f51223-1e83-4e48-9158-0c20dbd5734e --on --brightness 42.65
# Set color (in RGB) of a single light
openhue set light 15f51223-1e83-4e48-9158-0c20dbd5734e --on --rgb #3399FF
# Set color (in CIE space) of a single light
openhue set light 15f51223-1e83-4e48-9158-0c20dbd5734e --on -x 0.675 -y 0.322
# Set color (by name) of a single light
openhue set light 15f51223-1e83-4e48-9158-0c20dbd5734e --on --color powder_blue
# Set color temperature (in Mirek) of a single light
openhue set light MyLight --on -t 250Available Colors
alice_blueantique_whiteaquaaqua_marineazurebeigebisqueblanched_almondblueblue_violetbrownburly_woodcadet_bluechartreusechocolatecoralcorn_flower_bluecorn_silkcrimsoncyandark_bluedark_cyandark_golden_roddark_graydark_greendark_khakidark_magentadark_olive_greendark_orangedark_orchiddark_reddark_salmondark_sea_greendark_slate_bluedark_slate_graydark_turquoisedark_violetdeep_pinkdeep_sky_bluedim_graydodger_bluefirebrickfloral_whiteforest_greenfuchsiagainsboroghost_whitegoldgolden_rodgraygreengreen_yellowhoneydewhot_pinkindian_redindigoivorykhakilavenderlavender_blushlawn_greenlemon_chiffonlight_bluelight_corallight_cyanlight_graylight_greenlight_pinklight_salmonlight_sea_greenlight_sky_bluelight_slate_graylight_steel_bluelight_yellowlimelime_greenlinenmagentamaroonmedium_aqua_marinemedium_bluemedium_orchidmedium_purplemedium_sea_greenmedium_slate_bluemedium_spring_greenmedium_turquoisemedium_violet_redmidnight_bluemint_creammisty_rosemoccasinnavajo_whitenavyold_laceoliveolive_draborangeorange_redorchidpale_golden_rodpale_greenpale_turquoisepale_violet_redpapaya_whippeach_puffperupinkplumpowder_bluepurpleredrosy_brownroyal_bluesaddle_brownsalmonsandy_brownsea_greensea_shellsiennasilversky_blueslate_blueslate_graysnowspring_greensteel_bluetantealthistletomatoturquoisevioletwheatwhitewhite_smokeyellowyellow_green
Last updated
Was this helpful?