Skip to main content

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

Project description

NeewerLite

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): Trigger built-in scenes (Police, Party, Lightning, etc.).
  • Scanner: Intelligent discovery of Neewer devices.

Installation

From Source (Local Development)

If you have cloned the repository:

pip install -e .

Direct Install from GitHub

To install it in another project without cloning:

pip install git+https://github.com/matthobby/neewer-lib.git

(Note: requires Git installed and access to the repository)

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

  • 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.1.0.tar.gz (4.7 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.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for neewerlite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 06aafaf474cf32b7d5884a688a0fd3f21d96191a56dbfcf4f39c8168fc94f409
MD5 ec1fa64384735ec4aafb1977e75afc43
BLAKE2b-256 718bc8c19e1314f754dc7f374241fbb5afd97f25c303af8dea52f9435a078e90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neewerlite-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02b910865dd9c8fde6a32e7d28a6984b746747a287c421d84313d52f889e82ec
MD5 a22737001cbc8f54d7cc707fcf7903de
BLAKE2b-256 3b62fd874b3a09321776dc8fba9d4362d739414e06d8c982fa19f858a2e3d247

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