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

Uploaded Source

Built Distribution

home_assistant_bluetooth-1.7.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: home_assistant_bluetooth-1.7.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/5.0.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.15

File hashes

Hashes for home_assistant_bluetooth-1.7.0.tar.gz
Algorithm Hash digest
SHA256 5d3ea0a3619acb70aaa11c031554134fbcb509f6f9f81627deb41dc892203fed
MD5 a610d0ea0da3b35cc8e423b1f3b72c61
BLAKE2b-256 880a1e45eb31bd676b93bc020f4458a2da72cb04e32edf020d66a2231c1a2ee7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: home_assistant_bluetooth-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/5.0.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.15

File hashes

Hashes for home_assistant_bluetooth-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df065248f7773537c14337e0dd5765c01ec96342c722cff412c6df8f064fa310
MD5 a6b5bc4629b80a0298665c1f6faa8a37
BLAKE2b-256 6e27576c699c5d9fad87e3f72c83280c68a4e76d806b3de7c05ac499e916f408

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