Skip to main content

Control Yongnuo YN360 / YN360 III (Pro) LED lights over Bluetooth LE

Project description

yn360-ble

Control Yongnuo YN360 / YN360 III (Pro) LED lights over Bluetooth LE from Python.

Install

pip install yn360-ble

CLI

yn360 scan
yn360 rgb   AA:BB:CC:DD:EE:FF 255 153 0
yn360 white AA:BB:CC:DD:EE:FF 4500
yn360 off   AA:BB:CC:DD:EE:FF

Library

import asyncio
from yn360 import YN360Light, discover

async def main():
    devices = await discover()
    light = YN360Light(devices[0])
    await light.set_rgb(255, 153, 0)        # orange
    await light.set_white(4500, brightness=0.8)
    await light.turn_off()
    await light.disconnect()

asyncio.run(main())

Protocol

6-byte frame [0xAE, CMD, V1, V2, V3, 0x56]:

Command CMD V1 V2 V3
RGB 0xA1 R G B
White 0xAA 0x01 cool 5500K (0–100) warm 3200K (0–100)
Off 0xA3 0x00 0x00 0x00
  • Service UUID: f000aa60-0451-4000-b000-000000000000
  • Write characteristic: f000aa61-0451-4000-b000-000000000000

See HARDWARE.md for YN360 III Pro confirmation notes.

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

yn360_ble-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

yn360_ble-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yn360_ble-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yn360_ble-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f32afed467544090a152f2a7360741d2cb1641d92c083e0dfd3b237788730f9f
MD5 0c47fca5c9c53a46c5a177f9fe04349a
BLAKE2b-256 94cacb00430bcdabb3893a39edd0ab6869e2abc41554c451ea7f9d5532e0a6c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for yn360_ble-0.1.0.tar.gz:

Publisher: publish.yml on hudsonbrendon/yn360-ble

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: yn360_ble-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yn360_ble-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3194d9162154170c662045a7d93a7ce09a207a9427ddb8ea1b4fa65e2f784c6d
MD5 6828ec10d657468aff33b88f5c9b5606
BLAKE2b-256 86dcbc90cce5a3627c20504c33948cb2fe203c04bc0809e04c7ed72f8006f024

See more details on using hashes here.

Provenance

The following attestation bundles were made for yn360_ble-0.1.0-py3-none-any.whl:

Publisher: publish.yml on hudsonbrendon/yn360-ble

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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