Skip to content

New Get and Set scene commands#41

Merged
thibauult merged 3 commits into
mainfrom
cmd/set/scene
Feb 2, 2024
Merged

New Get and Set scene commands#41
thibauult merged 3 commits into
mainfrom
cmd/set/scene

Conversation

@thibauult

@thibauult thibauult commented Feb 2, 2024

Copy link
Copy Markdown
Contributor

This PR introduces 2 new scenes' related commands:

  • the openhue get scene command that allows listing the available scenes
  • the openhue set scene command that allows activating a scene

openhue get scene

Displays all the scenes with their main information, including the room they belong to.

Usage:
  openhue get scene [sceneId|sceneName] [flags]

Aliases:
  scene, scenes

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

Flags:
  -h, --help          help for scene
  -r, --room string   Filter scenes by room (name or ID)

Global Flags:
  -j, --json   Format output as JSON

openhue set scene

This command allows the activate a scene using either a static or a dynamic palette.

Usage:
  openhue set scene [sceneId|sceneName] [flags]

Aliases:
  scene, scenes

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

Flags:
  -a, --action string   action to perform on the scene. allowed: active (default), dynamic or static
  -h, --help            help for scene
  -r, --room string     room where the scene is located (in case multiple scenes with the same name exist)

@thibauult thibauult added the feature New feature or request label Feb 2, 2024
@thibauult thibauult merged commit f3137c0 into main Feb 2, 2024
@thibauult thibauult deleted the cmd/set/scene branch February 2, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant