Control Philips Hue lights with the OpenHue CLI

Control Philips Hue lights and scenes through a Hue Bridge with the OpenHue CLI.

OpenClaw Hermes Intermediate Copied: 0
1 resource

Requirements

  • The openhue CLI must be installed; it is available via brew with the formula openhue/cli/openhue-cli.
  • On first run, a button on the Hue Bridge must be pressed to pair.

How to use

Non-Hue smart devices from other brands are not supported.

HomeKit scenes or Shortcuts should instead use Apple's ecosystem.

TV or entertainment system control is not supported.

Thermostat or HVAC control is not supported.

Smart plugs are not supported, unless they are Hue smart plugs.

The Hue Bridge must be on the local network.

Colors only work on color-capable bulbs, not white-only bulbs.

To list resources, you can show all lights, all rooms, or all scenes.

openhue get light       # List all lights
openhue get room        # List all rooms
openhue get scene       # List all scenes

To control a light, turn it on or off, set its brightness from 0 to 100, set its color temperature (warm to cool, 153-500 mirek), or set its color by name or hex value.

# Turn on/off
openhue set light "Bedroom Lamp" --on
openhue set light "Bedroom Lamp" --off

# Brightness (0-100)
openhue set light "Bedroom Lamp" --on --brightness 50

# Color temperature (warm to cool: 153-500 mirek)
openhue set light "Bedroom Lamp" --on --temperature 300

# Color (by name or hex)
openhue set light "Bedroom Lamp" --on --color red
openhue set light "Bedroom Lamp" --on --rgb "#FF5500"

To control a room, turn the entire room off or set its brightness.

# Turn off entire room
openhue set room "Bedroom" --off

# Set room brightness
openhue set room "Bedroom" --on --brightness 30

To work with scenes, activate a scene for a specific room, such as Relax for the bedroom or Concentrate for the office.

# Activate scene
openhue set scene "Relax" --room "Bedroom"
openhue set scene "Concentrate" --room "Office"

Quick presets provide ready-made room settings: a dim warm bedtime setup, a bright cool work mode, and a dim movie mode.

# Bedtime (dim warm)
openhue set room "Bedroom" --on --brightness 20 --temperature 450

# Work mode (bright cool)
openhue set room "Office" --on --brightness 100 --temperature 250

# Movie mode (dim)
openhue set room "Living Room" --on --brightness 10

Source: openclaw/openclaw and its contributors. License: MIT.

Copyright (c) 2026 OpenClaw Foundation

Translation and editorial adaptation by ClawCases.

>Resources

>Related Use Cases

>More at this level: Intermediate