Skip to main content

A clean Python library for controlling Neewer RGB lights via Bluetooth LE.

Project description

NeewerLite (v0.2.2)

A Python library to control Neewer RGB lights (specifically tested on RGB62/RGB660 Pro models) via Bluetooth Low Energy (BLE).

Features

  • Auto-Handshake: Handles the connection handshake automatically.
  • Power Control: Turn ON/OFF.
  • RGB Control: Set Hue, Saturation, Brightness.
  • CCT Control: Set Color Temperature (3200K - 5600K).
  • Effects (FX): [EXPERIMENTAL] Trigger built-in scenes (may be unreliable).
  • Scanner: Intelligent discovery of Neewer devices.

Installation

Standard Installation (PyPI)

Since the library is published on PyPI, you can simply run:

pip install neewerlite==0.2.2

From Source (Local Development)

If you have cloned the repository:

pip install -e .

Usage

1. Discovering Lights

Neewer lights often don't show up with their real names in system scans. Use the scanner helper:

import asyncio
from neewerlite import NeewerScanner

async def scan():
    print("Scanning...")
    devices = await NeewerScanner.scan()
    for d in devices:
        print(f"Found: {d.name} ({d.address})")

if __name__ == "__main__":
    asyncio.run(scan())

2. Controlling a Light

import asyncio
from neewerlite import NeewerLight, NeewerEffect

ADDRESS = "AA:BB:CC:DD:EE:FF"  # Your Light's UUID

async def main():
    light = NeewerLight(ADDRESS)
    await light.connect()
    
    # Turn Red
    await light.set_rgb(0, 100, 50)
    
    # Trigger "Police Car" effect
    await light.set_effect(NeewerEffect.COP_CAR, 50)
    
    # Turn Off
    await light.set_power(False)

if __name__ == "__main__":
    asyncio.run(main())

Available Effects

Note: Effects are currently marked as EXPERIMENTAL. They may not work reliably on all firmware versions.

  • COP_CAR (1)
  • AMBULANCE (2)
  • FIRE_TRUCK (3)
  • FIREWORKS (4)
  • PARTY (5)
  • CANDLELIGHT (6)
  • LIGHTNING (7)
  • PAPARAZZI (8)
  • TV_SCREEN (9)

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

neewerlite-0.2.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

neewerlite-0.2.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file neewerlite-0.2.2.tar.gz.

File metadata

  • Download URL: neewerlite-0.2.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for neewerlite-0.2.2.tar.gz
Algorithm Hash digest
SHA256 131a4ec593c68896509439e36b318f5c0a3c01c7fe9d43e6636bdd7f40edaf08
MD5 ed46cfb7cc3abb23e2e74d7cc77d8397
BLAKE2b-256 41e0acc19fe956e77ea09151b48b52253a6f21fd20564620eea4e8c3df808c26

See more details on using hashes here.

File details

Details for the file neewerlite-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: neewerlite-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for neewerlite-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1f4fd9f88dff3864ab2ac0c22262a92c72b3edb19f5ef9d459372f229d826b04
MD5 0a6f1f707dfd41338eb76661181b5b4e
BLAKE2b-256 644bc3921fb237f78433a11f3725288aeb75e78ac72e7f6b143d1a9a7e612a35

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