Tags: openhue/openhue-cli
Tags
#44 Set color temperature in Mirek for lights and rooms (#48) It is now possible to set the color temperature in Mirek for lights and rooms. ### Examples: Set color temperature (in Mirek) of a single room: ``` openhue set light Studio --on --temperature 250 ``` Set color temperature (in Mirek) of a single light: ``` openhue set light Desktop --on -t 490 ``` Closes #44
New Get and Set scene commands (#41) 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) ```
The 'openhue set light' command now allows setting the color (#18) Examples: ```shell # 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 ```
PreviousNext