Module homey.manager.ble
Classes
class ManagerBLE-
Manages Bluetooth Low Energy communication. You can access this manager through the Homey instance as
self.homey.ble.Ancestors
- Manager
- SimpleClass
- EventEmitter
- typing.Generic
- abc.ABC
Methods
async def discover(self, service_filter: list[str] | None = None) ‑> tuple[BleAdvertisement, ...]-
Discover BLE peripherals for a certain time.
Requires the
homey:wireless:blepermission. For more information about permissions read the Permissions tutorial.Args
service_filter- A collection of service UUIDs the peripheral should expose.
Returns
A tuple of BLE advertisements, filtered by the service filter if given.
async def find(self, peripheral_uuid: str) ‑> BleAdvertisement-
Find a BLE peripheral with the given UUID.
Requires the
homey:wireless:blepermission. For more information about permissions read the Permissions tutorial.Args
peripheral_uuid:
Returns
The BLE advertisement of the peripheral.
Raises
NotFound- Raised if no peripheral with the given UUID is found.
Inherited members