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

Uploaded Source

Built Distribution

home_assistant_bluetooth-1.10.1-cp310-cp310-manylinux_2_31_x86_64.whl (355.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

File details

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

File metadata

  • Download URL: home_assistant_bluetooth-1.10.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12

File hashes

Hashes for home_assistant_bluetooth-1.10.1.tar.gz
Algorithm Hash digest
SHA256 c770f58689ecb43097cadc02e93044c695437728386fd5f84a2b051ea94c27a5
MD5 aa2859a5fe87db5f6ca7997989864d03
BLAKE2b-256 14fd5b134595a97f4ec10ee037d4be4934439309b8ad8c6f90b32f1c7af6ed1c

See more details on using hashes here.

File details

Details for the file home_assistant_bluetooth-1.10.1-cp310-cp310-manylinux_2_31_x86_64.whl.

File metadata

  • Download URL: home_assistant_bluetooth-1.10.1-cp310-cp310-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 355.7 kB
  • Tags: CPython 3.10, manylinux: glibc 2.31+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12

File hashes

Hashes for home_assistant_bluetooth-1.10.1-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 84f0df2aef460b486cef74fafa7abe9131d108051e710b9ccfffba54fe86d328
MD5 6187e87c23ee3175c1906dcd79a706d7
BLAKE2b-256 88daad63d28d19e78cffb9bdc1c0cff4953c1f12106d4adc446c9a8526bbd973

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