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.9.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

home_assistant_bluetooth-1.9.2-cp39-cp39-manylinux_2_31_x86_64.whl (312.4 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

File details

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

File metadata

  • Download URL: home_assistant_bluetooth-1.9.2.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.3 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.16

File hashes

Hashes for home_assistant_bluetooth-1.9.2.tar.gz
Algorithm Hash digest
SHA256 29ad60340adfc95e54bab07bc68894a23cee07da9ce3684b79cb7d814098a9ce
MD5 977983c90d8d5d2d82f671947b4baa4b
BLAKE2b-256 031df2a3bd355bb312995afc9d6e823f868f8c0e8ef961481b9eac62e7c419e1

See more details on using hashes here.

Provenance

File details

Details for the file home_assistant_bluetooth-1.9.2-cp39-cp39-manylinux_2_31_x86_64.whl.

File metadata

  • Download URL: home_assistant_bluetooth-1.9.2-cp39-cp39-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 312.4 kB
  • Tags: CPython 3.9, manylinux: glibc 2.31+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.3 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.16

File hashes

Hashes for home_assistant_bluetooth-1.9.2-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4dc54fb0d4dac517b2a88628b330145643877dd745742ba3fa7d2ddea0ca2208
MD5 6b3030848f8a49763cc81fe72d386971
BLAKE2b-256 e7a128bfbe2ea3157e9c75fe7cfcd6f9b8490084cb89af24146a93d41e654904

See more details on using hashes here.

Provenance

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