Skip to main content

Python: Tile BLE

GitHub Release Python Versions Project Stage Project Maintenance License

Build Status Code Coverage

Asynchronous Python client for Tile trackers over Bluetooth.

About

This package talks to a Tile over Bluetooth Low Energy with bleak. It can:

  • check that an auth key belongs to a Tile;
  • make a Tile ring;
  • read the Tile ID of a Tile, without an auth key.

This package is not affiliated with, endorsed by, or connected to Tile or Life360.

Installation

pip install tile-ble

Usage

Each Tile has its own auth key. The key is a base64 string from the Tile cloud. For example, pytile exposes it as Tile.auth_key once that change is released.

import asyncio

from bleak import BleakScanner

from tile_ble import TileBleDevice, TileVolume


async def main() -> None:
    """Ring a Tile."""
    ble_device = await BleakScanner.find_device_by_address("D1:76:AA:BB:CC:DD")
    assert ble_device is not None

    tile = TileBleDevice(ble_device, "AAECAwQFBgcICQoLDA0ODw==")
    await tile.async_authenticate()
    await tile.async_ring(volume=TileVolume.MEDIUM)


if __name__ == "__main__":
    asyncio.run(main())

async_authenticate() proves that the key belongs to this Tile. It does not ring the Tile.

Tiles advertise the TILE_SERVICE_UUID service. Use it to find Tiles in a scan.

Find which Tile is which

The Tile cloud lists each Tile with its Tile ID. You can match a Tile ID to a Bluetooth address without a connection:

from tile_ble import address_matches_tile_id

address_matches_tile_id("D1:76:AA:BB:CC:DD", "5176aabbccdd0102")  # True

You can also connect to a Tile and read its Tile ID. This does not need an auth key:

from tile_ble import async_read_tile_id

tile_id = await async_read_tile_id(ble_device)

Exceptions

All exceptions derive from TileBleError.

Exception Raised when
TileBleConnectionError The Tile cannot be reached, a Bluetooth call fails, or it times out.
TileBleAuthenticationError The Tile rejects the auth key.
TileBleError The Tile returns an error, or refuses to ring.

TileBleDevice raises ValueError when the auth key is not a 16-byte base64 value.

Known limitations

  • Only Tiles that support multi-endpoint TOA are supported.
  • Newer Tiles (firmware 48.x) are reported to fail to enable notifications under BlueZ.
  • It is unknown whether a Tile accepts a connection while the phone of the owner is connected to it.
  • There is no command to stop a ring. A ring stops by itself after a time-out.
  • The protocol is not documented. Tile can change it at any time.
  • address_matches_tile_id() uses a rule for Tiles with a Private ID that is inferred from two Tiles only.

Credits

The protocol implementation follows node-tile, MIT License, Copyright (c) 2024 Lesley De Keyser. jeretile uses the same sequence. The Tile header toa.h in the Nordic nRF5 SDK 16 and the paper "Security and Privacy Analysis of Tile's Location Tracking Protocol" also document parts of the protocol.

Changelog & Releases

This repository keeps a change log using GitHub's releases functionality. The format of the log is based on Keep a Changelog.

Releases are based on Semantic Versioning, and use the format of MAJOR.MINOR.PATCH. In a nutshell, the version will be incremented based on the following:

  • MAJOR: Incompatible or major changes.
  • MINOR: Backwards-compatible new features and enhancements.
  • PATCH: Backwards-compatible bugfixes and package updates.

Contributing

This is an active open-source project. We are always open to people who want to use the code or contribute to it.

We've set up a separate document for our contribution guidelines.

Thank you for being involved! 😍

Setting up development environment

This Python project is fully managed using the uv dependency manager. But also relies on the use of NodeJS for certain checks during development.

You need at least:

  • Python 3.13+
  • uv
  • NodeJS 12+ (including NPM)

To install all packages, including all development requirements:

npm install
uv sync --all-groups

As this repository uses the prek framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:

uv run prek run --all-files

To run just the Python tests:

uv run pytest

Authors & contributors

The content is by Joost Lekkerkerker.

For a full list of all authors and contributors, check the contributor's page.

License

MIT License

Copyright (c) 2026 Joost Lekkerkerker

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The protocol implementation is based on node-tile. See LICENSE.md for its copyright and permission notice.

Metadata

Release files for tile-ble 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tile-ble 0.0.1
File Size Uploaded Provenance Actions
tile_ble-0.0.1.tar.gz 11.3 kB With provenance Details for tile_ble-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tile-ble 0.0.1
File Interpreter ABI Platform Actions
tile_ble-0.0.1-py3-none-any.whl Python 3 none any Details for tile_ble-0.0.1-py3-none-any.whl

Total release size: 23.4 kB

Release files / tile_ble-0.0.1.tar.gz

Download URL tile_ble-0.0.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f30a084dbc22cc46c7ad633a9091db695ab2946340494619bbceed9d747f85d6
BLAKE2b-256 checksum
How to use checksums
be16b609935ed3573296b937a5c16517fc31036055262e2f2c5b28eb1fcafeef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / tile_ble-0.0.1-py3-none-any.whl

Download URL tile_ble-0.0.1-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61fbca41c61673809c04bb02d027f976a99d04af60324a74537b9fe12f59ebba
BLAKE2b-256 checksum
How to use checksums
9696397bec2285ada498d8273dbcfa99b2dd83401ddf52144c26b86405ae6e61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for tile-ble 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tile_ble-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page