A Python3 class to interrogate Xiaomi Mijia LYWSD* sensors asynchronously.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylywsdxx_async-0.2.1.tar.gz.
File metadata
- Download URL: pylywsdxx_async-0.2.1.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
448d6da7ded616ccbb6e6a74c8a792de3cdbfee8d7939e69157a3d0bf59b8991
|
|
| MD5 |
e585d81afe900291f91ec11b77c7b585
|
|
| BLAKE2b-256 |
230715949b12af3ae6ea2e05f3da3c8bdf3829cd24f58fb2f0752095c437d9c9
|
File details
Details for the file pylywsdxx_async-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pylywsdxx_async-0.2.1-py3-none-any.whl
- Upload date:
- Size: 32.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d7b8f3ecf13a265ba999a72f10c3fb200a7577ceca3121de5fa15657a958215
|
|
| MD5 |
b7ab4313cb3efef254e3d999fdf325b7
|
|
| BLAKE2b-256 |
c9b0e379732c2d7a11bbf1fa62a2efe6943bd6fc13c30550d2583584d7269759
|