Skip to main content

CLI tool for controlling Lutron lighting systems via LEAP protocol (Caseta, RA2 Select, RadioRA3, HomeWorks QSX)

Project description

Lutron LEAP CLI

A command-line tool for controlling Lutron lighting systems via the LEAP protocol.

Supported Systems

  • Caseta
  • RA2 Select
  • RadioRA3
  • HomeWorks QSX

Installation

# Using pipx (recommended)
pipx install lutron-leap-cli

# Using uv
uv tool install lutron-leap-cli

# Using pip
pip install lutron-leap-cli

Quick Start

# 1. Discover Lutron bridges on your network
lutron discover

# 2. Pair with your bridge (press pairing button when prompted)
lutron pair 192.168.1.100

# 3. List all zones
lutron list

# 4. Control a light
lutron set "Kitchen Light" --level 50
lutron on "Kitchen Light"
lutron off "Kitchen Light"

Commands

Discovery & Setup

lutron discover              # Scan network for Lutron bridges
lutron pair <IP>            # Pair with a bridge
lutron bridges              # List configured bridges
lutron config               # Show configuration paths

Zone Control

lutron list                 # List all zones
lutron list --rooms         # List zones grouped by room
lutron list --area kitchen  # Filter by area
lutron list --type ColorTune # Filter by control type

lutron status <zone>        # Get zone status
lutron set <zone> -l 50     # Set brightness to 50%
lutron set <zone> -l 100 --hue 30 --sat 70  # Set color
lutron on <zone>            # Turn on (100%)
lutron off <zone>           # Turn off (0%)

Room Control

lutron rooms                # List all rooms
lutron room <room> -l 50    # Set all zones in room to 50%
lutron room <room> --on     # Turn all zones on
lutron room <room> --off    # Turn all zones off

Scene Management

lutron snapshot <name>           # Save current state as scene
lutron snapshot <name> -a patio  # Save only zones in area
lutron recall <name>             # Restore saved scene
lutron scenes                    # List saved scenes
lutron scene show <name>         # Show scene contents
lutron scene delete <name>       # Delete a scene

JSON Output

Add --json to any command for JSON output, useful for scripting and LLM integrations:

lutron list --json
lutron status "Kitchen Light" --json

Configuration

Configuration is stored in platform-specific locations:

  • Linux: ~/.config/lutron-leap-cli/
  • macOS: ~/Library/Application Support/lutron-leap-cli/
  • Windows: C:\Users\<user>\AppData\Local\lutron-leap-cli\

Scenes are saved in ./lutron-scenes/ in the current directory, allowing project-specific scene sets.

Color Control

For zones that support color (ColorTune, SpectrumTune):

# Set color using HSV (Hue 0-360, Saturation 0-100)
lutron set "Pool Light" --level 100 --hue 200 --sat 80

# Warm white: low hue, low saturation
lutron set "Patio" -l 50 --hue 30 --sat 20

# Cool white: low saturation
lutron set "Kitchen" -l 100 --sat 0

# Colored light: high saturation
lutron set "Party" -l 100 --hue 280 --sat 100  # Purple

LLM Integration

This CLI is designed to be LLM-friendly:

  • --json output for structured data
  • Detailed help with examples (lutron --help, lutron <command> --help)
  • Consistent command structure
  • Partial name matching for zones and rooms

Development

# Clone and install in development mode
git clone https://github.com/peterengelbrecht/lutron-leap-cli
cd lutron-leap-cli
uv sync

# Run locally
uv run lutron --help

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lutron_leap_cli-0.1.4.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lutron_leap_cli-0.1.4-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file lutron_leap_cli-0.1.4.tar.gz.

File metadata

  • Download URL: lutron_leap_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for lutron_leap_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a91943c81a27a0fbba101ac0c2ed6e31a382a25ea1a0fb24e1e570d96c9be2c7
MD5 3ed961bf955383002154127f8f3bb7cb
BLAKE2b-256 aa738fee060b049217816ee8c42462c820b2e50f581047c8c3be44a05491a936

See more details on using hashes here.

File details

Details for the file lutron_leap_cli-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for lutron_leap_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d884b7c8cc01b31031d3562673d438a64f8e0ced8f6e024973b6cb6ebd9281dd
MD5 b9e4a7b1a9aecdba47beb7450366a114
BLAKE2b-256 31bc480d39ed7a4a2ec0f42c9fd7a97343ad73ac7ae1acd4495fcb2f6b2dd13c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page