Home Assistant蓝牙模型和助手
项目描述
Home Assistant蓝牙
Home Assistant蓝牙模型和助手
用法
这个库用于访问Home Assistant蓝牙模型。库使用这些模型来接收和解析蓝牙广告数据。
@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
填充BluetoothServiceInfo所使用的数据来自 bleak 的 BLEDevice 和 AdvertisementData,除了 source 字段,它来自Home Assistant,代表数据的来源。
未来,Home Assistant可能支持远程蓝牙收发器,这可能会使用源字段来确定哪个设备最近。
安装
通过pip(或您喜欢的包管理器)安装此软件
pip安装home-assistant-bluetooth
贡献者 ✨
感谢这些可爱的人们 (emoji key)
此项目遵循 all-contributors 规范。欢迎任何类型的贡献!
致谢
此软件包是用 Cookiecutter 和 browniebroke/cookiecutter-pypackage 项目模板创建的。
项目详情
    
       关闭
    
      
        
    
    
  
哈希 对 home_assistant_bluetooth-1.12.2-py3-none-any.whl
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | ded84c2f621255d2ed3bfa9a1ad824e2aadfbbd43c093da700fdc294f0c39202 | |
| MD5 | ed69876a5a019ea9cee6ee52a0dd4081 | |
| BLAKE2b-256 | a4b0c5dd30073261268acfd20853481a3ea848f2180d2864c346bf5a382f4f8e |