Skip to content

Tags: openhue/openhue-cli

Tags

0.15

Toggle 0.15's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
#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

0.14

Toggle 0.14's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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)
```

0.13

Toggle 0.13's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
The setup command now allows the set the bridge IP using the --bridge…

… flag parameter (#38)

Usage: 
```bash
openhue setup --bridge 192.168.1.100
```
or 
```bash
openhue setup -b 192.168.1.100
```

0.12

Toggle 0.12's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

0.11

Toggle 0.11's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
New setup command (#34)

The setup command automatically discovers the Hue Bridge and ask user to
push the pairing button.


![openhue_setup](https://github.com/openhue/openhue-cli/assets/39826516/e2a6d1de-6296-437b-a85b-5785f4583652)

0.10

Toggle 0.10's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Using testify, added a few tests for the home_service.go methods (#32)

We are now using https://github.com/stretchr/testify to ease unit tests
writing.

0.9

Toggle 0.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Bump golang.org/x/net from 0.18.0 to 0.19.0 (#19)

0.8.0

Toggle 0.8.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
```

0.7.0

Toggle 0.7.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#9)

0.6.0

Toggle 0.6.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
The set light command now supports setting the brightness value (#16)

Examples: 

```shell
# Turn on a light
openhue set light 15f51223-1e83-4e48-9158-0c20dbd5734e --on

# Turn on multiple lights
openhue set light 83111103-a3eb-40c5-b22a-02deedd21fcb 8f0a7b52-df25-4bc7-b94d-0dd1a88068ff --on

# Turn off a light
openhue set light 15f51223-1e83-4e48-9158-0c20dbd5734e --off

# Set brightness of a single light
openhue set light 15f51223-1e83-4e48-9158-0c20dbd5734e --on --brightness 42.65
```