Skip to main content

Home Assistant Bluetooth Models and Helpers

Project description

Home Assistant Bluetooth

CI Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

home_assistant_bluetooth-1.11.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file home_assistant_bluetooth-1.11.0.tar.gz.

File metadata

  • Download URL: home_assistant_bluetooth-1.11.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.1.0 tqdm/4.66.1 importlib-metadata/7.0.0 keyring/24.3.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13

File hashes

Hashes for home_assistant_bluetooth-1.11.0.tar.gz
Algorithm Hash digest
SHA256 75cc805917be2f7cad56bf19b7b2947d58c3919650634154e068f15b320f303d
MD5 d6d3d676a0b86b32489910f21bad3324
BLAKE2b-256 7f6b47a8ae1e9ab8b949c2b5288458e960977702e732f6a05bb2870e62616168

See more details on using hashes here.

File details

Details for the file home_assistant_bluetooth-1.11.0-py3-none-any.whl.

File metadata

  • Download URL: home_assistant_bluetooth-1.11.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.1.0 tqdm/4.66.1 importlib-metadata/7.0.0 keyring/24.3.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13

File hashes

Hashes for home_assistant_bluetooth-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6530c39b4ae6712fff90137c0a3444648db7947bef583e26c4ee3f745d7853c3
MD5 3acbf10fa4ba566ce82dc02c4b0cdf9a
BLAKE2b-256 317a6640b87757849d2f0357c3a9ceeb9344dcc7e32a5bf7c4f9bb0bdf5d18f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page