Skip to main content

OpenCync

OpenCync is a Python API library for interfacing with Cync smart devices.

OpenCync is a community-maintained continuation of pycync by @Kinachi249, who wrote the library and reverse engineered the protocol it uses. pycync has had no commits or replies since July 2026, and fixes that Home Assistant users need were waiting as open pull requests. OpenCync carries those fixes (see CHANGELOG.md) under the same GPL-3.0-or-later license. If pycync becomes active again, these changes are offered back upstream.

The import name is opencync (from opencync import Auth), so it can be installed next to pycync.

The goal of this project is to make a generalized Cync library that will eventually span the gamut of Cync devices and features, while breaking the underlying protocol into more concrete implementations.

Disclaimers

This library is still an early work in progress. As such, various devices and features may not yet be supported. However, work is ongoing to add features to get the library closer to feature parity with the app.

pycync was originally tested with Cync full color light bulbs and the dynamic effects LED strip. OpenCync is also tested on Cync indoor smart plugs acting as Wi-Fi hubs for Bluetooth-only bulbs.
If you hit a problem with a specific device, please open an issue with debug logs for opencync. Devices nobody on the project owns may take longer to fix.

Currently, only Wi-Fi connected devices are supported. This means that you must have at least one Wi-Fi connected device in your home to utilize the library.
Note that if you have a Wi-Fi connected device that acts as a bridge for other Bluetooth-only devices that communicate via Bluetooth mesh, all of the devices should work.
Direct Bluetooth connections may be supported in the future, however at the moment it isn't a prioritized feature.

This library and its developers are in no way affiliated with GE Lighting or Savant Technologies. All APIs and protocols utilized in the library were created from reverse engineering.

Using the Library

Authenticating

  1. The first step is to create an Auth object, which will handle authenticating your Cync user.
cync_auth = Auth(
                <an aiohttp Client Session>,
                username=your_email,
                password=your_password,
            )
  1. Attempt to log in using the passed in credentials. If successful without two factor, the function will return your User object containing your auth token. If two factor is required, the function will raise a TwoFactorRequiredError, and a two factor code will be emailed to your account at the time of the exception being raised.
try:
    user = cync_auth.login()
catch TwoFactorRequiredError:
    # Handle Two Factor
  1. If a two factor code was required, you may call the same login function, and this time provide your two factor code.
try:
    user = cync_auth.login("123456")
catch AuthFailedError:
    # Handle Auth failure
  1. After you have logged in, you may create a new Cync object and provide your Auth object.
cync_api = Cync.create(cync_auth)

Getting Your Devices

There are two formats you can fetch your account's devices in.

The first is a flattened view, where all of your account's devices are in a single-level list.
This is useful if you want a simple view of all of your account's devices at once.

my_devices = cync_api.get_devices()

The second is a hierarchical format, with your devices organized into homes, rooms, and groups. It will return a list of homes, which each contain rooms, and then groups.
This is useful if you would like to view your setup in a format that more closely matches the Cync app's categorization.

my_homes = cync_api.get_homes()

From here, you can filter devices as desired, and use the functions on the CyncDevice objects to control them.

Setting a State Change Callback

If you would like to specify a callback function to run whenever device states change, you may provide one to the Cync object.
The update_data parameter is a JSON object. The key is the device ID, and the value is the CyncDevice object with its new state set.
The callback function may be either synchronous or asynchronous.

def my_callback(update_data: dict[int, CyncDevice]):
    # Handle updated data
    
cync_api.set_update_callback(my_callback)

Other Things to Note

Only one connection can be established to the Cync server at a time per account.
This means that if you are using the library, and then you open the Cync app on your phone, your library's connection will be closed.
The server is the one that closes the connection, so unfortunately there is no getting around this. The library will attempt to reestablish the connection after 10 seconds.
However, also note that once the library reestablishes the connection, your Cync app's connection will be closed. Love it.

Thanks

A special thanks to nikshriv's cync_lights project (https://github.com/nikshriv/cync_lights), and
unixpickle's cbyge project (https://github.com/unixpickle/cbyge).

These projects and the discussions within them helped kickstart the direction to take for reverse engineering the Cync protocols.

Metadata

Release files for opencync 0.7.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 opencync 0.7.0
File Size Uploaded Provenance Actions
opencync-0.7.0.tar.gz 56.7 kB With provenance Details for opencync-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 105.6 kB

Release files / opencync-0.7.0.tar.gz

Download URL opencync-0.7.0.tar.gz
Size 56.7 kB
Tags Source
SHA-256 checksum
How to use checksums
050426b3942c57d049fc214f109fce78c6de64e6803dd6d7a0fe3b5613d54d23
BLAKE2b-256 checksum
How to use checksums
f80977d1ad9c5ae26d919a1c2ee7ce850ede6077692d8bbe37e4f89c94d17183
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 23, 2026.

Transparency log

Release files / opencync-0.7.0-py3-none-any.whl

Download URL opencync-0.7.0-py3-none-any.whl
Size 48.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6694f88b4e792f613c4c3f5644eb97264b71052275028494825ed05c38347c27
BLAKE2b-256 checksum
How to use checksums
613dbfd88df8297c813a6e4a72cc271bcb1c86132a518a26aa88751d63618460
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 23, 2026.

Transparency log

Security for opencync 0.7.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 opencync-0.7.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 23, 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.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files Full provenance

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