Skip to main content

Python library for controlling SAL Pixie BLE mesh wall switches

Project description

pigsydust

Python library for controlling SAL Pixie BLE mesh wall switches.

Installation

pip install pigsydust

Quick Start

import asyncio
from pigsydust import PixieClient

async def main():
    client = PixieClient("AA:BB:CC:DD:EE:FF")
    await client.connect()
    await client.login("Smart Light", "12345678")

    await client.turn_on(0x0001)

    status = await client.query_status()
    for addr, ds in status.items():
        print(f"Device {addr}: {'ON' if ds.is_on else 'OFF'}")

    await client.disconnect()

asyncio.run(main())

Protocol Reference

See PROTOCOL-REFERENCE.md in the Go library repo for full documentation of the Telink mesh BLE protocol — GATT characteristics, authentication, encryption, opcodes, and notification formats.

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

pigsydust-0.1.9.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

pigsydust-0.1.9-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file pigsydust-0.1.9.tar.gz.

File metadata

  • Download URL: pigsydust-0.1.9.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for pigsydust-0.1.9.tar.gz
Algorithm Hash digest
SHA256 224845f3282f04f86aca379345d35a7542f9c9baa11349e3230e0ba7b3d266eb
MD5 92e597a48fe8a6310007c94dbbb6e2b8
BLAKE2b-256 00e89864faed3ce1e827be6b770cafe4759ef03d93802191385b1a89007e9fce

See more details on using hashes here.

File details

Details for the file pigsydust-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: pigsydust-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for pigsydust-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8c12a8bf1b6c8028dc2d3a28d0d20c9b2a5a50a86b3759cb2794b4f5349840e0
MD5 c7c4a16bfe66f4238134d8daf764faa2
BLAKE2b-256 ae163e8ddaa178f71b50c7e9e724428fcbf007f5cf81ac3504b5d000a4513b72

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