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

Standard Installation (PyPI)

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

pip install neewerlite

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

  • 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.1.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.2.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neewerlite-0.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 d62003490e6c0aecc7e190e37ce95f5d34dba8e4434dfe65ddc80d89bc739b24
MD5 c8f582782d5c944f95e626ffa584caee
BLAKE2b-256 e0f0819d7d531f519a88c5b3674ddabd9a53aef69b2d86f70d1afe4ac1692ffe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neewerlite-0.2.1-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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db546c52555e84d2f6b59628f9990d4e5e64234460bae2c8944657b6e47a2e1e
MD5 9e00fa439e1c3f824374622b5b289e66
BLAKE2b-256 3db9e182ec972a4c84e8a10caaea30ca41ef518731847a2208ae7d1ed61f79eb

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