skillfed

pylutron-caseta

Provides an API to the Lutron Smartbridge

pylutron-caseta v0.29.0 99.2K downloads/30d#13,034 on PyPI176
Permissive license Apache-2.0 Active released

What it is and what it does

pylutron-caseta is an async Python client for the Lutron Caséta smart home bridge, enabling programmatic control of Lutron lighting and shading devices over a local network. It handles TLS authentication, device discovery, and state management through a simple API that returns devices as dictionaries and exposes methods like turn_on, turn_off, and set_level.

The package is designed for integration into larger home automation systems and provides both a high-level Smartbridge class for typical use and lower-level pairing and LEAP protocol access for advanced workflows. It depends on cryptography for TLS, orjson for efficient JSON parsing, and async-timeout for connection management, and requires Python 3.10 or later.

Use it for:

  • Build a home automation dashboard that reads and controls Lutron lights and dimmers from a central Python application.
  • Integrate Lutron Caséta devices into a broader smart home system alongside other IoT platforms via a unified API.
  • Create automated lighting scenes triggered by external events (time, presence, weather) by calling bridge control methods.
  • Develop a mobile or web app backend that communicates with Lutron devices through a Python service.
  • Monitor and log device state changes over time for energy usage analysis or debugging.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python API for controlling Lutron Caséta smart home devices via their bridge, supporting async communication with TLS authentication and device state management.

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and installs cleanly with minimal dependencies. It is well-suited for anyone building Python-based home automation or integrating Lutron Caséta devices into a larger system. The main constraint is the requirement to complete a one-time pairing process with the bridge before use.

Install

pylutron-caseta on PyPI

pip

pip install pylutron-caseta

uv

uv add pylutron-caseta

poetry

poetry add pylutron-caseta

Installing pylutron-caseta

Before you install

Low install friction with a pure-Python wheel and three lightweight runtime dependencies (async-timeout, cryptography, orjson). Active maintenance with a recent release and ongoing commits.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for integration into larger applications.

Quickstart

import asyncio
from pylutron_caseta.smartbridge import Smartbridge

async def example():
    bridge = Smartbridge.create_tls(
        "192.168.1.100", "caseta.key", "caseta.crt", "caseta-bridge.crt"
    )
    await bridge.connect()
    device = bridge.get_devices_by_domain("light")[0]
    await bridge.turn_on(device["device_id"])
    await bridge.close()

asyncio.run(example())

Requires Python 3.10 or later; TLS certificate files must be generated via pairing process (lap-pair tool or async_pair function) before connecting to the bridge.

Verify before relying

  • Whether the package supports all Lutron Caséta device types or only a subset of the product line
  • Performance characteristics when controlling many devices simultaneously or over high-latency networks
  • Whether the cli extras (leap-scan, lap-pair, leap tools) are required for typical use or optional for advanced workflows

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10.0)
Install friction low — pure-Python wheel
Runtime dependencies 3 — async-timeout, cryptography, orjson
Maintenance actively maintained — 65 days since the last release
Last repo commit
First released
Downloads 99,211/month — #13,034 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pylutron_caseta-0.29.0-py3-none-any.whl

License :: OSI Approved :: Apache Software License

Tags

lutron caseta controlsmart home lighting apilutron bridge pythonhome automation dimmerlutron device controlcaseta smartbridgehome automation lighting
home-automationiot-controlasync-api

More Networking packages