Skip to main content

pixeljoy-ble

PixelJoy flexible LED panel with the PixelJoy app and remote

The kind of panel this targets (example listing; vendor product photo).

Open protocol notes and a Python client for the PixelJoy flexible Bluetooth LED matrix panels. These are the cheap "LED MATRIX PANEL" units sold for car windows and shop signs, controlled by the PixelJoy app (Shenzhen Wanshun Zhilian Technology) and a small 2.4 GHz remote (BLE adverts, not IR). They are built on a JieLi AC695x/AC6951C BLE SoC.

Status: protocol extracted from the Android app by static analysis and confirmed on a P0AF (32×16, firmware 1.8.5) panel: handshake, properties, clock sync, text, image. See docs/PROTOCOL.md. CLI reference: docs/USAGE.md.

Prior art

As of Nov 2026 nothing public decodes PixelJoy specifically. Its protocol is not iPixel Color, iDotMatrix, CoolLED, BK-Light or Badge Magic. It is its own scheme:

  • per-model GATT UUIDs Exxx/Axxx/Fxxx, where xxx is the model PID
  • A0 cmd len payload crc16-modbus frames
  • a "CCHIP" XOR challenge handshake
  • an A2 chunked transfer for files

The phone renders text into 1-bpp glyphs. Images go up as ordinary PNG files and animations as GIFs.

Install

Not on PyPI. Install from GitHub or a clone. Python 3.10+.

CLI, isolated (pipx):

pipx install git+https://github.com/rgr4y/pixeljoy-ble.git
pixeljoy --help

From a clone: pipx install . (add --force to upgrade in place).

Library, into your own project or venv:

pip install git+https://github.com/rgr4y/pixeljoy-ble.git

Or pin it in your requirements.txt as pixeljoy-ble @ git+https://github.com/rgr4y/pixeljoy-ble.git@<tag-or-sha>. The import name is pixeljoy. See the Python API in docs/USAGE.md.

Development:

python -m venv .venv && . .venv/bin/activate
pip install -r requirements.txt   # runtime deps only: bleak, Pillow
pip install -e '.[test]'          # editable install + pytest
pytest tests

requirements.txt is the single source of runtime dependencies; pyproject.toml reads it.

Quick start

pixeljoy scan            # find the panel, prints name/UUIDs/model
pixeljoy -v info         # handshake + READ_PROPERTY, logs every frame
pixeljoy power off
pixeljoy brightness 50
pixeljoy -v text "HELLO" --color 00ff88
pixeljoy -v image cat.png   # resized to the panel, uploaded as PNG
pixeljoy raw 41 01          # send one raw A0 frame, print replies

Full CLI reference, exit codes and troubleshooting: docs/USAGE.md.

-v logs every TX/RX frame in hex. Please capture that output on first contact with a panel.

Home Assistant

custom_components/pixeljoy is a Home Assistant integration built on the same library. Its structure is adapted from XTimt/LEDDMX (MIT). It uses HA's own Bluetooth stack: local adapters and ESPHome proxies both work.

  • Discovery: panels are found by their scan UUID and model name (all 40 models). They can also be picked from the list of panels in range.
  • Light: on/off and brightness. The panel's 1–100 % maps onto HA's 0–255. State is read from the panel when HA connects; until then it is shown as assumed.
  • Services: pixeljoy.show_text, show_clock (style 1–10; higher styles are rejected because they corrupt the panel's RAM), show_image and show_gif (files must be under allowlist_external_dirs), and sync_time (uses HA's time zone).
  • Remote: event.<panel>_remote fires for each key press on the 2.4 GHz LZ remote. These are passive BLE adverts with no connection, so presses arrive even when the panel is off. Repeated transmissions of the same press are dropped. Event types come from the firmware's key table: power, off, left, right, brightness_up/brightness_down, flip, clock, carousel, timer_12h, button_1..button_3 and the six car signs (sign_left, sign_right, sign_warning, ...).
  • Connection: the BLE link opens on demand and drops after 60 s idle, so the phone app can still connect.

Install (Home Assistant 2026.11+ Marketplace):

  1. Settings → Marketplace → ⋮ → Custom repositories.
  2. Add https://github.com/rgr4y/pixeljoy-ble, type Integration.
  3. Install PixelJoy LED Panel, restart Home Assistant. Panels in range are offered for setup automatically.

The component imports the library from PyPI (pixeljoy-ble, pinned in manifest.json). HA installs it on first load.

Tests run against a real HA core with BLE mocked: pip install -e . pytest-homeassistant-custom-component then pytest tests_ha -o asyncio_mode=auto.

Layout

Path What
docs/USAGE.md CLI reference, troubleshooting, Python API example
docs/PROTOCOL.md the spec, with references to the vendor classes it came from
pixeljoy/protocol.py pure encoders/decoders (framing, CRC, handshake, multi-pack, text/PNG, replies)
pixeljoy/client.py async bleak client: handshake, flow control, upload/show
pixeljoy/render.py Pillow text → glyphs, image → panel-sized PNG
pixeljoy/devices.json 40 known models (size, chip, UUIDs) from the app's th_dev_cfg.json
tools/fetch_apk.sh re-download the vendor APK and decompile it with jadx (output is git-ignored)
tools/patch_apk.py rebuild the vendor app without telemetry for personal use (--offline also drops INTERNET); see docs/APP_PRIVACY.md
docs/APP_PRIVACY.md what the app sends home (hardware device ID on every request, IP geolocation, Tencent cloud speech) and what the patch removes
tests/ unit tests for the encoders (pytest)
custom_components/pixeljoy/ Home Assistant integration (imports the pixeljoy-ble library from PyPI)
hacs.json Marketplace (HACS) metadata
tests_ha/ HA integration tests (pytest-homeassistant-custom-component)

License

MIT. See LICENSE.

Metadata

Release files for pixeljoy-ble 0.1.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 pixeljoy-ble 0.1.0
File Size Uploaded Provenance Actions
pixeljoy_ble-0.1.0.tar.gz 30.5 kB With provenance Details for pixeljoy_ble-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pixeljoy-ble 0.1.0
File Interpreter ABI Platform Actions
pixeljoy_ble-0.1.0-py3-none-any.whl Python 3 none any Details for pixeljoy_ble-0.1.0-py3-none-any.whl

Total release size: 56.5 kB

Release files / pixeljoy_ble-0.1.0.tar.gz

Download URL pixeljoy_ble-0.1.0.tar.gz
Size 30.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a72b53faade7b5efbe4e57132a8ec9fb93626d1572422ea0b29eb7baf5b40a8f
BLAKE2b-256 checksum
How to use checksums
70b53a463cf421ef79b2b55497cb03e832daf63de27e9656393e73c4c8f1f3db
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 18, 2026.

Transparency log

Release files / pixeljoy_ble-0.1.0-py3-none-any.whl

Download URL pixeljoy_ble-0.1.0-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be94e0f56cdbf068d4b53c40b017b5903cf83185e3d0a44a2bd707f5b2d35152
BLAKE2b-256 checksum
How to use checksums
211c7df135e96d9d46d40eb2fc16d36324fb724155acbf5a18bb18cd1dd42764
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 18, 2026.

Transparency log

Security for pixeljoy-ble 0.1.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 pixeljoy_ble-0.1.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 18, 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.1.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