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

Uploaded Source

Built Distribution

home_assistant_bluetooth-1.4.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file home-assistant-bluetooth-1.4.0.tar.gz.

File metadata

  • Download URL: home-assistant-bluetooth-1.4.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.10 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for home-assistant-bluetooth-1.4.0.tar.gz
Algorithm Hash digest
SHA256 ca0967ec4a62ca2d06a2286f37f73b8284fa9ae8d53420b129351babdb230338
MD5 36aa5778aac87eb21a1fb9e0735055c1
BLAKE2b-256 5e32fc9ac954a1bee2194a766b781d6e4df7b2c76a84cf024faafd69182c9d60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: home_assistant_bluetooth-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.10 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for home_assistant_bluetooth-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c5cb1e931e1198a260d36109dc26c4d186bab54ee8a92a8ae11fe62b90999a9
MD5 4629828de85f55dd4211955af4eb602a
BLAKE2b-256 19426804e6b6037fd0c852303d534ef58ca29846f9cdc51a2a391bd972101b7b

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