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())

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.2.tar.gz (14.3 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.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pigsydust-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e33fcaf15af7f98b84c812abf1d846f2e6db744bc568bd599775c6838f0186e3
MD5 d21762adc7d1a525605305f7281f71ef
BLAKE2b-256 d147f47c42dfd669bdf05cf790982143342c990f6388ba23335503a8f6d14bfb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pigsydust-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 00eb75da3ba62c642ebeead18b3ed73e33d1c69d24730c12fe4aa650621b5907
MD5 cadcdf6b11610eb825387915115680c5
BLAKE2b-256 18a9b12c2cb2add639b6ac9d28c9e7a41bdfee780bf4eec56df8ebabf4a2a556

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