Home Assistant Bluetooth Models and Helpers
Project description
Home Assistant Bluetooth
Home Assistant Bluetooth Models and Helpers
Usage
This library is for accessing Home Assistant Bluetooth models. Libraries use these models to receive and parse Bluetooth advertisement data.
@dataclasses.dataclass
class BluetoothServiceInfo(BaseServiceInfo):
"""Prepared info from bluetooth entries."""
name: str
address: str
rssi: int
manufacturer_data: dict[int, bytes]
service_data: dict[str, bytes]
service_uuids: list[str]
source: str
The data used to populate BluetoothServiceInfo comes from bleak's BLEDevice
and AdvertisementData
, except for the source
field, which comes from Home Assistant and represents the source of the data.
In the future, Home Assistant may support remote Bluetooth transceivers, which may use the source field to determine which device is closest.
Installation
Install this via pip (or your favourite package manager):
pip install home-assistant-bluetooth
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
This package was created with Cookiecutter and the browniebroke/cookiecutter-pypackage project template.
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
File details
Details for the file home_assistant_bluetooth-1.13.0.tar.gz
.
File metadata
- Download URL: home_assistant_bluetooth-1.13.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fa8a0d05a844063501a37e0b98501337e7035623b345d5c285a778e9416fd93 |
|
MD5 | af0fab1e76271410332a56ecc1b41f06 |
|
BLAKE2b-256 | b2862e339e75b8e00c121e3de766718bc4363b3c41b3b0d6c9cb666479dddb3c |
Provenance
File details
Details for the file home_assistant_bluetooth-1.13.0-py3-none-any.whl
.
File metadata
- Download URL: home_assistant_bluetooth-1.13.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caec3d6ced580d3bd015ab74a9ee7e91693650d0548637c5f294101167fc6e82 |
|
MD5 | 8b8cf483b9cbdc51dc5a1a987e8101b9 |
|
BLAKE2b-256 | 50c996c4491583c328773873887065960a538da90fc08aa2a7e81cfec738bb2a |