pylywsdxx-async
This is a Python3 library to allow asynchronous interrogation of Xiaomi Mijia LYWSD* sensors via Bluetooth Low Energy (BLE).
Note: This is an unofficial project, and is in no way supported or endorsed by Xiaomi.
Requirements
Development of this package is done in Python 3.12. The package is considered forwards compatible at least upto Python 3.12 and probably also beyond. Backwards compatibility is not guaranteed; if it works on Python 3.9 or before consider yourself lucky. Python versions that are end-of-life are not supported.
The package has been extensively tested on a Raspberry Pi 3 Model B+ (aarch64) with Debian GNU Linux 12 /w Python 3.11.*.
Installation
pip install pylywsdxx-async
Usage
Under construction
import pylywsdxx-async as pyly
mac = "A4:C1:38:0D:EA:D0"
device2 = pyly.Lywsd02(mac)
data2 = device2.data
print(f"Temperature: {data2.temperature}˚C")
device3 = pyly.Lywsd03(mac)
data3 = device3.data
print(f"Temperature: {data3.temperature}˚C")
Disclaimer & License
pylywsdxx-async is distributed under AGPL-3.0-or-later. We make no promises whatsoever.See LICENSE for details.
Metadata
Release files for pylywsdxx-async 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pylywsdxx_async-0.2.1.tar.gz | 29.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pylywsdxx_async-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.6 kB
Release files / pylywsdxx_async-0.2.1.tar.gz
| Download URL | pylywsdxx_async-0.2.1.tar.gz |
|---|---|
| Size | 29.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
448d6da7ded616ccbb6e6a74c8a792de3cdbfee8d7939e69157a3d0bf59b8991
|
|
BLAKE2b-256 checksum How to use checksums |
230715949b12af3ae6ea2e05f3da3c8bdf3829cd24f58fb2f0752095c437d9c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / pylywsdxx_async-0.2.1-py3-none-any.whl
| Download URL | pylywsdxx_async-0.2.1-py3-none-any.whl |
|---|---|
| Size | 32.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d7b8f3ecf13a265ba999a72f10c3fb200a7577ceca3121de5fa15657a958215
|
|
BLAKE2b-256 checksum How to use checksums |
c9b0e379732c2d7a11bbf1fa62a2efe6943bd6fc13c30550d2583584d7269759
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|