ESP32 蓝牙低功耗 RSSI 传感器
ble_rssi 传感器平台可让您追踪
BLE 设备的 RSSI 值或信号强度。有关
设置此平台的说明,请参阅 二值传感器设置。
# Example configuration entryesp32_ble_tracker:
sensor: # RSSI based on MAC address - platform: ble_rssi mac_address: XX:XX:XX:XX:XX:XX name: "BLE Google Home Mini RSSI value" # RSSI based on Identity Resolving Key (IRK) - platform: ble_rssi irk: 1234567890abcdef1234567890abcdef name: "BLE Tracker iPhone" # RSSI based on Service UUID - platform: ble_rssi service_uuid: '11aa' name: "BLE Test Service 16 bit RSSI value" # RSSI based on iBeacon UUID - platform: ble_rssi ibeacon_uuid: '68586f1e-89c2-11eb-8dcd-0242ac130003' name: "BLE Test Service iBeacon RSSI value"NOTE
服务 UUID 可以是 16 位长,如示例所示,但也可以是 32 位长
(如 1122aaff)或 128 位长(如 11223344-5566-7788-99aa-bbccddeeff00)。
-
mac_address (可选, MAC Address): 此传感器要追踪的 MAC 地址。注意,
mac_address、irk、service_uuid或ibeacon_uuid中 恰好必须存在一个。 -
irk (可选, 16 字节十六进制字符串): 此传感器要追踪的身份解析密钥 (IRK)。注意,
mac_address、irk、service_uuid或ibeacon_uuid中 恰好必须存在一个。 -
service_uuid (可选, 16 位、32 位或 128 位 BLE 服务 UUID): 可以追踪的 BLE 服务 UUID(如果设备随机化 MAC 地址)。注意,
mac_address、irk、service_uuid或ibeacon_uuid中 恰好必须存在一个。 -
ibeacon_uuid (可选, string): 用于标识需要追踪的信标的 通用唯一标识符。注意,
mac_address、irk、service_uuid或ibeacon_uuid中恰好必须存在一个。 -
ibeacon_major (可选, int): 需要追踪的信标的 iBeacon 主要标识符。通常用于对信标分组,例如对同一 建筑物中的所有信标进行分组。
-
ibeacon_minor (可选, int): 需要追踪的信标的 iBeacon 次要标识符。通常用于在 iBeacon 组内识别信标。
-
来自 Sensor 的所有其他选项。