CLI Interface¶
This guide explains how to manage light groups using the keylightctl
command-line tool.
Creating Groups¶
Create a new group:
You can also specify the name as a flag:
Or without any arguments to be prompted interactively:
Listing Groups¶
View all groups:
For parseable output:
This shows all groups with their IDs, names, and member lights.
Getting Group Information¶
View the details of a specific group:
For parseable output:
Controlling Groups¶
The basic syntax for setting group properties is:
Power Control¶
Turn all lights in a group on:
Turn all lights in a group off:
You can also use "on" and "off" as values:
Brightness Control¶
Set brightness for all lights in a group (0-100):
Color Temperature Control¶
Set color temperature for all lights in a group in Kelvin (2900-7000):
Modifying Group Membership¶
Edit the lights in a group:
This replaces all lights in the group with the specified lights.
Deleting Groups¶
Delete a group:
Skip the confirmation prompt:
This removes the group but does not affect any lights.
Interactive Mode¶
If you don't provide all required arguments, keylightctl
will prompt you interactively:
# This will show you a list of groups to choose from
keylightctl group get
# This will prompt for group, property, and value
keylightctl group set
# This will prompt for group name
keylightctl group add
Group Properties¶
Groups support the same control operations as individual lights:
- on: Power state (true/false, on/off)
- brightness: Brightness level (0-100)
- temperature: Color temperature in Kelvin (2900-7000)
Examples¶
Common usage patterns:
# Create a group
keylightctl group add office-lights
# List all groups
keylightctl group list
# Get group info
keylightctl group get group-123451
# Turn on all lights in a group at 80% brightness, warm temperature
keylightctl group set group-123451 on true
keylightctl group set group-123451 brightness 80
keylightctl group set group-123451 temperature 3200
# Edit group membership
keylightctl group edit group-123451 "Elgato Key Light ABC1._elg._tcp.local." "Elgato Key Light XYZ2._elg._tcp.local."
# Delete a group
keylightctl group delete group-123451
Group IDs¶
Group IDs are typically in the format "group-" followed by a numeric identifier (e.g., "group-123451"). You can often use the group name as well for identification in some commands.