Skip to main content

pyryse

Local (no-cloud) async Python client for RYSE SmartShade motorized shades, driven through a RYSE SmartBridge over its LAN HTTP API.

Built to back the Home Assistant integration ha-ryse-local, but usable on its own. Not affiliated with or endorsed by RYSE; "RYSE", "SmartBridge" and "SmartShade" are trademarks of their owner.

Install

pip install pyryse

Usage

import aiohttp
from pyryse import RyseBridge

async def main():
    async with aiohttp.ClientSession() as session:
        bridge = RyseBridge("192.168.0.123", session)
        device = await bridge.async_get_device()
        for gear in device.gears:
            print(gear.name, gear.position, gear.position_state.name,
                  gear.online, gear.battery)

        # Move a shade. Bridge scale: 0 = open, 100 = closed.
        await bridge.async_set_position(device.gears[0].id, 0)   # open

If your bridge has local security enabled, pass the serial: RyseBridge(host, session, serial="...").

Position convention

The bridge's position is the inverse of Home Assistant's cover scale:

  • 0 = fully open
  • 100 = fully closed

pyryse reports the bridge's native values unchanged; invert in your consumer if you need HA semantics. See docs/PROTOCOL.md for the full reverse-engineered API.

Per-gear settings

Speed and obstacle detection are per shade.

from pyryse import PowerType

gear_id = device.gears[0].id

# Speed, on the RYSE app's 0-100% scale.
await bridge.async_set_speed_percent(gear_id, 10)
print(await bridge.async_get_speed_percent(gear_id))

# Obstacle detection.
await bridge.async_set_obstacle_detection(gear_id, True)
print(await bridge.async_get_obstacle_detection(gear_id))

# Read-only helpers on a Gear from async_get_device():
gear = device.gears[0]
gear.speed_percent                 # app percentage, or None
gear.obstacle_detection_enabled    # bool, or None
gear.power_source is PowerType.BATTERY
  • Speed: the bridge accepts 40-100, and the app shows 0-100% over that range (app % = (bridge - 40) / 60 * 100). async_set_speed takes the raw bridge value and raises ValueError outside 40-100, since the bridge answers with a bare HTTP 405. speed_to_percent and percent_to_speed convert. Not every percentage survives a round trip: the bridge has 61 values for 101 percentages.
  • Power type: PowerType.BATTERY (2), AC_ADAPTER (0) and USB_CHARGER (1). These are inferred from watching one shade's power source change; RYSE doesn't document them. Unrecognised values give PowerType.UNKNOWN.
  • Timing: settings take a few seconds to apply, so a read right after a write may show the old value.

Routines (the app's name for scenes) are not available through the local API. Their endpoints are not known.

License

MIT

Metadata

Release files for pyryse 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyryse 0.3.0
File Size Uploaded Provenance Actions
pyryse-0.3.0.tar.gz 13.8 kB With provenance Details for pyryse-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyryse 0.3.0
File Interpreter ABI Platform Actions
pyryse-0.3.0-py3-none-any.whl Python 3 none any Details for pyryse-0.3.0-py3-none-any.whl

Total release size: 23.3 kB

Release files / pyryse-0.3.0.tar.gz

Download URL pyryse-0.3.0.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a8752722747c7d5fe41f4554411496d1f9180955760bc594af23408549c7dba2
BLAKE2b-256 checksum
How to use checksums
dac34104e940689dcd57947e0e8e109b3d5105b8bbd6f38384cfde251046dd85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / pyryse-0.3.0-py3-none-any.whl

Download URL pyryse-0.3.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
001bd5afc560ec5304286685531b68306ed39eab6296f2f8b67d05feb9c6db6d
BLAKE2b-256 checksum
How to use checksums
56f4d91ce5bea197948f51e02c30e57512e04353b105d63859c1a6f263a0cd84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for pyryse 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyryse-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page