OpenHue
GitHubHue Developer Portal
  • OpenHue
  • 📗API
    • OpenHue API
      • Authentication
      • Resource
      • Bridge
      • Home
      • Device
      • Light
      • Scene
      • Room
      • Zone
      • Sensors
  • 💻CLI
    • OpenHue CLI
    • Installation
    • Setup
    • Commands
      • Lights
      • Rooms
      • Scenes
Powered by GitBook
On this page
  • Get Scenes
  • Usage
  • Flags
  • Examples
  • Set Scenes
  • Usage
  • Flags
  • Examples

Was this helpful?

Edit on GitHub
Export as PDF
  1. CLI
  2. Commands

Scenes

Display and control the scenes.

Get Scenes

Usage

openhue get scene [sceneId|sceneName] [flags]

Aliases: scene, scenes

Flags

Name
Shorthand
Default
Usage

room

r

Filter scenes by room (name or ID)

json

j

false

Format output as JSON

Examples

# List all scenes
openhue get scene

# List all scenes as JSON
openhue get scene --json

# Filter scenes for a given room name
openhue get scenes --room "Living Room"

# Filter scenes for a given room ID
openhue get scenes -r 878a65d6-613b-4239-8b77-588b535bfb4a

# List multiple scenes using either the ID or the name of the scene
openhue get scenes "Palm Beach" Nebula 462e54d9-ec5d-4bf6-879d-ad34cb9a692e

Set Scenes

Usage

openhue set scene [sceneId|sceneName] [flags]

Aliases: scene, scenes

Flags

Name
Shorthand
Default
Usage

room

r

Filter lights by room (name or ID).

action

a

active

Action to perform on the scene. Allowed: active, dynamic, or static

Examples

# Activate a scene
openhue set scene Soho

# Activate a scene by ID
openhue set scene 62af7df3-d390-4408-a7ac-4b6b8805531b

# Activate a scene in a specific room
openhue set scene Soho -r Studio

# Activate a scene with a dynamic palette
openhue set scene Soho -a dynamic
PreviousRooms

Last updated 1 year ago

Was this helpful?

💻