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.12.1.tar.gz
.
File metadata
- Download URL: home_assistant_bluetooth-1.12.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e9c054d04c9e340a7f31e418139f1a8cce2c53a740347b42f7b55468670133d |
|
MD5 | d9fd55477bc599a26ed02c60b53eb0fb |
|
BLAKE2b-256 | d5b57decf7ce896c90690aa86f692bd8b1a2e796bdc218b5e7e0ebfcc94c0372 |
File details
Details for the file home_assistant_bluetooth-1.12.1-py3-none-any.whl
.
File metadata
- Download URL: home_assistant_bluetooth-1.12.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a9115ef222f51f2267438cf6bc107d2df274a2a61d9dce4e7d4458ed14af248 |
|
MD5 | 1787a765244e31408e7511b1ac893b8b |
|
BLAKE2b-256 | abe30ec2f363ed50d3be588e5e2a13d8506c31db2f2de31e8cced44e4d50007f |