custom-components / ble_monitor

BLE monitor for passive BLE sensors
https://community.home-assistant.io/t/passive-ble-monitor-integration/
MIT License
1.9k stars 245 forks source link

[Bug]: Mi Scale 2 XMTZC02HM #1093

Closed Sk4zz closed 1 year ago

Sk4zz commented 1 year ago

What happened?

I have a Mi Scale 2 (XMTZC02HM) that is not being detected by ble_monitor.

I have several ESP32 running a bluetooth proxy, the closest is about 2m from the scale.

At the moment they are setup as

esp32_ble_tracker:
#    scan_parameters:
#      interval: 1100ms
#      window: 1100ms
#      active: true

bluetooth_proxy:
#    active: true 

I have tried active: true before but to no avail.

Furthermore, there is a bluetooth dongle plugged in the HA Host that is set up using the native bluetooth integration.

The Mi Scale is not detected no matter if I use it in the bathroom, close to a bluetooth proxy or next to the HA host with the bluetooth dongle.

According to this issue https://github.com/custom-components/ble_monitor/issues/1015, the ble_monitor integration does not work with bluetooth_proxy but with the esp gateway. Is that information still relevant? However, the scale should be recognized using the internal bluetooth integration, correct?

Sensor type

No response

Relevant log output

{
  "home_assistant": {
    "installation_type": "Home Assistant Supervised",
    "version": "2023.1.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "5.10.0-20-amd64",
    "supervisor": "2022.12.1",
    "host_os": "Debian GNU/Linux 11 (bullseye)",
    "docker_version": "20.10.22",
    "chassis": "laptop",
    "run_as_root": true
  },
  "custom_components": {
    "dwd_weather": {
      "version": "1.2.24",
      "requirements": [
        "simple_dwd_weatherforecast==1.1.5",
        "markdownify==0.6.5"
      ]
    },
    "daily_schedule": {
      "version": "1.4.1",
      "requirements": []
    },
    "alexa_media": {
      "version": "4.4.0",
      "requirements": [
        "alexapy==1.26.4",
        "packaging>=20.3",
        "wrapt>=1.12.1"
      ]
    },
    "waste_collection_schedule": {
      "version": "1.33.0",
      "requirements": [
        "icalendar",
        "recurring_ical_events",
        "icalevents",
        "bs4"
      ]
    },
    "hacs": {
      "version": "1.29.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "thermal_comfort": {
      "version": "2.0.1",
      "requirements": []
    },
    "bodymiscale": {
      "version": "3.0.5",
      "requirements": [
        "cachetools==5.1.0"
      ]
    },
    "ble_monitor": {
      "version": "11.3.1",
      "requirements": [
        "pycryptodomex>=3.14.1",
        "janus>=1.0.0",
        "aioblescan>=0.2.14",
        "btsocket>=0.2.0",
        "pyric>=0.1.6.3"
      ]
    },
    "daily_min_max": {
      "version": "1.0",
      "requirements": []
    },
    "daily": {
      "version": "0.3.9",
      "requirements": []
    },
    "adaptive_lighting": {
      "version": "1.4.1",
      "requirements": []
    },
    "zoom": {
      "version": "v0.8.4",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "bluetooth",
    "name": "Bluetooth",
    "documentation": "https://www.home-assistant.io/integrations/bluetooth",
    "dependencies": [
      "usb"
    ],
    "after_dependencies": [
      "hassio"
    ],
    "quality_scale": "internal",
    "requirements": [
      "bleak==0.19.2",
      "bleak-retry-connector==2.13.0",
      "bluetooth-adapters==0.15.2",
      "bluetooth-auto-recovery==1.0.3",
      "bluetooth-data-tools==0.3.1",
      "dbus-fast==1.82.0"
    ],
    "codeowners": [
      "@bdraco"
    ],
    "config_flow": true,
    "iot_class": "local_push",
    "loggers": [
      "btsocket",
      "bleak_retry_connector",
      "bluetooth_adapters",
      "bluetooth_auto_recovery"
    ],
    "is_built_in": true
  },
  "data": {
    "manager": {
      "adapters": {
        "hci0": {
          "address": "00:E0:4C:28:C4:16",
          "sw_version": "homeserver",
          "hw_version": "usb:v1D6Bp0246d0537",
          "passive_scan": false,
          "manufacturer": "Realtek",
          "product": "Bluetooth Radio",
          "vendor_id": "2550",
          "product_id": "8761"
        }
      },
      "slot_manager": {
        "manager": true,
        "adapter_slots": {
          "hci0": 5
        },
        "allocations_by_adapter": {
          "hci0": []
        }
      },
      "scanners": [
        {
          "name": "bett (24:62:ab:ff:31:04)",
          "start_time": 192122.439605224,
          "source": "24:62:ab:ff:31:04",
          "scanning": true,
          "type": "ESPHomeScanner",
          "last_detection": 263647.317939692,
          "monotonic_time": 263647.909945162,
          "discovered_devices_and_advertisement_data": [
            {
              "name": "",
              "address": "24:FC:E5:60:90:5B",
              "rssi": -84,
              "advertisement_data": [
                null,
                {
                  "117": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'B\\x04\\x01\\x80`$\\xfc\\xe5`\\x90[&\\xfc\\xe5`\\x90Z\\x01\\x00\\x00\\x00\\x00\\x00\\x00'"
                  }
                },
                {},
                [],
                -127,
                -84,
                []
              ],
              "details": {
                "source": "24:62:ab:ff:31:04",
                "address_type": 0
              }
            },
            {
              "name": "",
              "address": "00:7C:2D:FB:B0:3F",
              "rssi": -84,
              "advertisement_data": [
                null,
                {
                  "117": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'B\\x04\\x01\\x80`\\x00|-\\xfb\\xb0?\\x02|-\\xfb\\xb0>\\x01\\xfe\\x00\\x00\\x00\\x00\\x00'"
                  }
                },
                {},
                [],
                -127,
                -84,
                []
              ],
              "details": {
                "source": "24:62:ab:ff:31:04",
                "address_type": 0
              }
            },
            {
              "name": "F48F922B12663397E9",
              "address": "FA:BA:C2:19:28:DB",
              "rssi": -91,
              "advertisement_data": [
                "F48F922B12663397E9",
                {
                  "1447": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"\\x00\\xca'"
                  }
                },
                {},
                [
                  "0000fe07-0000-1000-8000-00805f9b34fb"
                ],
                -127,
                -91,
                []
              ],
              "details": {
                "source": "24:62:ab:ff:31:04",
                "address_type": 0
              }
            },
            {
              "name": "846B2100FBFC30AEE9",
              "address": "F3:33:C3:9D:74:5E",
              "rssi": -101,
              "advertisement_data": [
                "846B2100FBFC30AEE9",
                {
                  "1447": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x05\"\\x00\\xca'"
                  }
                },
                {},
                [
                  "0000fe07-0000-1000-8000-00805f9b34fb"
                ],
                -127,
                -101,
                []
              ],
              "details": {
                "source": "24:62:ab:ff:31:04",
                "address_type": 1
              }
            },
            {
              "name": "",
              "address": "4B:E9:58:47:F0:C1",
              "rssi": -86,
              "advertisement_data": [
                null,
                {
                  "76": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x10\\x07\\x14\\x1b\\x98\\xceB\\xf6X'"
                  }
                },
                {},
                [],
                -127,
                -86,
                []
              ],
              "details": {
                "source": "24:62:ab:ff:31:04",
                "address_type": 1
              }
            },
            {
              "name": "90676469072830A8E9",
              "address": "F3:33:5C:15:09:49",
              "rssi": -98,
              "advertisement_data": [
                "90676469072830A8E9",
                {
                  "1447": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x04\"\\x00\\xca'"
                  }
                },
                {},
                [
                  "0000fe07-0000-1000-8000-00805f9b34fb"
                ],
                -127,
                -98,
                []
              ],
              "details": {
                "source": "24:62:ab:ff:31:04",
                "address_type": 1
              }
            }
          ],
          "storage": {
            "connectable": false,
            "expire_seconds": 900,
            "discovered_device_advertisement_datas": {
              "24:FC:E5:60:90:5B": {
                "device": {
                  "address": "24:FC:E5:60:90:5B",
                  "name": "",
                  "rssi": -85,
                  "details": {
                    "source": "24:62:ab:ff:31:04",
                    "address_type": 0
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {
                    "117": "420401806024fce560905b26fce560905a01000000000000"
                  },
                  "service_data": {},
                  "service_uuids": [],
                  "rssi": -85,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "00:7C:2D:FB:B0:3F": {
                "device": {
                  "address": "00:7C:2D:FB:B0:3F",
                  "name": "",
                  "rssi": -84,
                  "details": {
                    "source": "24:62:ab:ff:31:04",
                    "address_type": 0
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {
                    "117": "4204018060007c2dfbb03f027c2dfbb03e01fe0000000000"
                  },
                  "service_data": {},
                  "service_uuids": [],
                  "rssi": -84,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "FA:BA:C2:19:28:DB": {
                "device": {
                  "address": "FA:BA:C2:19:28:DB",
                  "name": "F48F922B12663397E9",
                  "rssi": -94,
                  "details": {
                    "source": "24:62:ab:ff:31:04",
                    "address_type": 0
                  }
                },
                "advertisement_data": {
                  "local_name": "F48F922B12663397E9",
                  "manufacturer_data": {
                    "1447": "051001000000000000002200ca"
                  },
                  "service_data": {},
                  "service_uuids": [
                    "0000fe07-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -94,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "F3:33:5C:15:09:49": {
                "device": {
                  "address": "F3:33:5C:15:09:49",
                  "name": "90676469072830A8E9",
                  "rssi": -98,
                  "details": {
                    "source": "24:62:ab:ff:31:04",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": "90676469072830A8E9",
                  "manufacturer_data": {
                    "1447": "051001000000000000042200ca"
                  },
                  "service_data": {},
                  "service_uuids": [
                    "0000fe07-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -98,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "F3:33:C3:9D:74:5E": {
                "device": {
                  "address": "F3:33:C3:9D:74:5E",
                  "name": "846B2100FBFC30AEE9",
                  "rssi": -97,
                  "details": {
                    "source": "24:62:ab:ff:31:04",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": "846B2100FBFC30AEE9",
                  "manufacturer_data": {
                    "1447": "051001000000000000052200ca"
                  },
                  "service_data": {},
                  "service_uuids": [
                    "0000fe07-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -97,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "5C:08:19:FC:4D:3C": {
                "device": {
                  "address": "5C:08:19:FC:4D:3C",
                  "name": "",
                  "rssi": -93,
                  "details": {
                    "source": "24:62:ab:ff:31:04",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {},
                  "service_data": {
                    "0000fd6f-0000-1000-8000-00805f9b34fb": "af754c969a483b1efd4cddbdbc6076c8af717070"
                  },
                  "service_uuids": [
                    "0000fd6f-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -93,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "64:48:D0:6D:1E:0B": {
                "device": {
                  "address": "64:48:D0:6D:1E:0B",
                  "name": "",
                  "rssi": -88,
                  "details": {
                    "source": "24:62:ab:ff:31:04",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {},
                  "service_data": {
                    "0000fd6f-0000-1000-8000-00805f9b34fb": "de8649fcbf2e2108a473f19c1570b708798475aa"
                  },
                  "service_uuids": [
                    "0000fd6f-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -88,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "59:15:29:05:BE:FE": {
                "device": {
                  "address": "59:15:29:05:BE:FE",
                  "name": "",
                  "rssi": -92,
                  "details": {
                    "source": "24:62:ab:ff:31:04",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {},
                  "service_data": {
                    "0000fd6f-0000-1000-8000-00805f9b34fb": "de8649fcbf2e2108a473f19c1570b708798475aa"
                  },
                  "service_uuids": [
                    "0000fd6f-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -92,
                  "tx_power": -127,
                  "platform_data": []
                }
              }
            },
            "discovered_device_timestamps": {
              "24:FC:E5:60:90:5B": 1673365452.976193,
              "00:7C:2D:FB:B0:3F": 1673365451.6201801,
              "FA:BA:C2:19:28:DB": 1673365416.7198522,
              "F3:33:5C:15:09:49": 1673365436.8800416,
              "F3:33:C3:9D:74:5E": 1673365098.4488602,
              "5C:08:19:FC:4D:3C": 1673365053.3284357,
              "64:48:D0:6D:1E:0B": 1673365370.3154163,
              "59:15:29:05:BE:FE": 1673365451.6201801
            }
          },
          "connectable": false,
          "discovered_device_timestamps": {
            "24:FC:E5:60:90:5B": 263647.317939692,
            "00:7C:2D:FB:B0:3F": 263647.301939544,
            "FA:BA:C2:19:28:DB": 263643.757906797,
            "F3:33:C3:9D:74:5E": 263285.226584502,
            "4B:E9:58:47:F0:C1": 263344.099131603,
            "F3:33:5C:15:09:49": 263154.797369441
          },
          "time_since_last_device_detection": {
            "24:FC:E5:60:90:5B": 0.5920054700109176,
            "00:7C:2D:FB:B0:3F": 0.608005618036259,
            "FA:BA:C2:19:28:DB": 4.152038365020417,
            "F3:33:C3:9D:74:5E": 362.6833606600412,
            "4B:E9:58:47:F0:C1": 303.8108135589864,
            "F3:33:5C:15:09:49": 493.11257572099566
          }
        },
        {
          "name": "sensor-bad (f0:08:d1:c7:79:28)",
          "start_time": 192122.439605224,
          "source": "f0:08:d1:c7:79:28",
          "scanning": true,
          "type": "ESPHomeScanner",
          "last_detection": 263645.969927237,
          "monotonic_time": 263647.909945162,
          "discovered_devices_and_advertisement_data": [
            {
              "name": "",
              "address": "00:7C:2D:FB:B0:3F",
              "rssi": -84,
              "advertisement_data": [
                null,
                {
                  "117": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'B\\x04\\x01\\x80`\\x00|-\\xfb\\xb0?\\x02|-\\xfb\\xb0>\\x01\\xfe\\x00\\x00\\x00\\x00\\x00'"
                  }
                },
                {},
                [],
                -127,
                -84,
                []
              ],
              "details": {
                "source": "f0:08:d1:c7:79:28",
                "address_type": 0
              }
            },
            {
              "name": "846B2100FBFC30AEE9",
              "address": "F3:33:C3:9D:74:5E",
              "rssi": -82,
              "advertisement_data": [
                "846B2100FBFC30AEE9",
                {
                  "1447": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x05\"\\x00\\xca'"
                  }
                },
                {},
                [
                  "0000fe07-0000-1000-8000-00805f9b34fb"
                ],
                -127,
                -82,
                []
              ],
              "details": {
                "source": "f0:08:d1:c7:79:28",
                "address_type": 1
              }
            },
            {
              "name": "90676469072830A8E9",
              "address": "F3:33:5C:15:09:49",
              "rssi": -91,
              "advertisement_data": [
                "90676469072830A8E9",
                {
                  "1447": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x04\"\\x00\\xca'"
                  }
                },
                {},
                [
                  "0000fe07-0000-1000-8000-00805f9b34fb"
                ],
                -127,
                -91,
                []
              ],
              "details": {
                "source": "f0:08:d1:c7:79:28",
                "address_type": 1
              }
            },
            {
              "name": "F48F922B12663397E9",
              "address": "FA:BA:C2:19:28:DB",
              "rssi": -92,
              "advertisement_data": [
                "F48F922B12663397E9",
                {
                  "1447": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"\\x00\\xca'"
                  }
                },
                {},
                [
                  "0000fe07-0000-1000-8000-00805f9b34fb"
                ],
                -127,
                -92,
                []
              ],
              "details": {
                "source": "f0:08:d1:c7:79:28",
                "address_type": 0
              }
            },
            {
              "name": "",
              "address": "43:A1:7F:F9:2C:0B",
              "rssi": -94,
              "advertisement_data": [
                null,
                {},
                {
                  "0000fd6f-0000-1000-8000-00805f9b34fb": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\xb5h\\x89\\xbbW\\x1br\\xdelI4\\x9b\\x9b\\xe1\\xbd\\xe2\\xaeg]\\x9e'"
                  }
                },
                [
                  "0000fd6f-0000-1000-8000-00805f9b34fb"
                ],
                -127,
                -94,
                []
              ],
              "details": {
                "source": "f0:08:d1:c7:79:28",
                "address_type": 1
              }
            },
            {
              "name": "MIBCS",
              "address": "F1:46:E3:55:15:C8",
              "rssi": -72,
              "advertisement_data": [
                "MIBCS",
                {
                  "343": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\xf1F\\xe3U\\x15\\xc8'"
                  }
                },
                {
                  "0000181b-0000-1000-8000-00805f9b34fb": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x02\\xa4\\xb2\\x07\\x01\\x01\\x16\\x0c6\\xfd\\xff\\xfcI'"
                  }
                },
                [
                  "0000181b-0000-1000-8000-00805f9b34fb"
                ],
                -127,
                -72,
                []
              ],
              "details": {
                "source": "f0:08:d1:c7:79:28",
                "address_type": 1
              }
            },
            {
              "name": "",
              "address": "3E:95:E1:98:0F:ED",
              "rssi": -98,
              "advertisement_data": [
                null,
                {},
                {
                  "0000fd6f-0000-1000-8000-00805f9b34fb": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x9ek\\x92S\\xd2))\\xd4\\xb3\\xf9\\xe8\\x07\\x12\\x8c^\\x9f\\x9f\\x8d\\xb2\\xe0'"
                  }
                },
                [
                  "0000fd6f-0000-1000-8000-00805f9b34fb"
                ],
                -127,
                -98,
                []
              ],
              "details": {
                "source": "f0:08:d1:c7:79:28",
                "address_type": 1
              }
            },
            {
              "name": "",
              "address": "46:89:5E:6A:6E:BC",
              "rssi": -84,
              "advertisement_data": [
                null,
                {},
                {
                  "0000fd6f-0000-1000-8000-00805f9b34fb": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x84LS\\x03\\xfcL5\\xfc\\xd3\\x88\\x11V{@z\\xc3\\xbbu\\x88\\x05'"
                  }
                },
                [
                  "0000fd6f-0000-1000-8000-00805f9b34fb"
                ],
                -127,
                -84,
                []
              ],
              "details": {
                "source": "f0:08:d1:c7:79:28",
                "address_type": 1
              }
            },
            {
              "name": "",
              "address": "CA:70:48:3E:85:2D",
              "rssi": -99,
              "advertisement_data": [
                null,
                {
                  "76": {
                    "__type": "<class 'bytes'>",
                    "repr": "b'\\x12\\x02\\x00\\x00'"
                  }
                },
                {},
                [],
                -127,
                -99,
                []
              ],
              "details": {
                "source": "f0:08:d1:c7:79:28",
                "address_type": 1
              }
            }
          ],
          "storage": {
            "connectable": false,
            "expire_seconds": 900,
            "discovered_device_advertisement_datas": {
              "00:7C:2D:FB:B0:3F": {
                "device": {
                  "address": "00:7C:2D:FB:B0:3F",
                  "name": "",
                  "rssi": -79,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 0
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {
                    "117": "4204018060007c2dfbb03f027c2dfbb03e01fe0000000000"
                  },
                  "service_data": {},
                  "service_uuids": [],
                  "rssi": -79,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "F3:33:C3:9D:74:5E": {
                "device": {
                  "address": "F3:33:C3:9D:74:5E",
                  "name": "846B2100FBFC30AEE9",
                  "rssi": -84,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": "846B2100FBFC30AEE9",
                  "manufacturer_data": {
                    "1447": "051001000000000000052200ca"
                  },
                  "service_data": {},
                  "service_uuids": [
                    "0000fe07-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -84,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "F3:33:5C:15:09:49": {
                "device": {
                  "address": "F3:33:5C:15:09:49",
                  "name": "90676469072830A8E9",
                  "rssi": -86,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": "90676469072830A8E9",
                  "manufacturer_data": {
                    "1447": "051001000000000000042200ca"
                  },
                  "service_data": {},
                  "service_uuids": [
                    "0000fe07-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -86,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "FA:BA:C2:19:28:DB": {
                "device": {
                  "address": "FA:BA:C2:19:28:DB",
                  "name": "F48F922B12663397E9",
                  "rssi": -93,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 0
                  }
                },
                "advertisement_data": {
                  "local_name": "F48F922B12663397E9",
                  "manufacturer_data": {
                    "1447": "051001000000000000002200ca"
                  },
                  "service_data": {},
                  "service_uuids": [
                    "0000fe07-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -93,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "00:C3:F4:F3:55:99": {
                "device": {
                  "address": "00:C3:F4:F3:55:99",
                  "name": "",
                  "rssi": -103,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 0
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {
                    "117": "420401806000c3f4f3559902c3f4f3559801b85095000000"
                  },
                  "service_data": {},
                  "service_uuids": [],
                  "rssi": -103,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "2E:1D:72:F0:3C:3D": {
                "device": {
                  "address": "2E:1D:72:F0:3C:3D",
                  "name": "",
                  "rssi": -97,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {},
                  "service_data": {
                    "0000fd6f-0000-1000-8000-00805f9b34fb": "ecee22a32ca41591942b1996987381d2f9752bda"
                  },
                  "service_uuids": [
                    "0000fd6f-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -97,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "6B:D6:97:11:8F:62": {
                "device": {
                  "address": "6B:D6:97:11:8F:62",
                  "name": "",
                  "rssi": -94,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {
                    "76": "1006131d4e10b708"
                  },
                  "service_data": {},
                  "service_uuids": [],
                  "rssi": -94,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "3F:31:0A:DC:31:B7": {
                "device": {
                  "address": "3F:31:0A:DC:31:B7",
                  "name": "",
                  "rssi": -94,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {
                    "6": "010920022499d43f354de695335c861b95282f8607d3a870efad7e"
                  },
                  "service_data": {},
                  "service_uuids": [],
                  "rssi": -94,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "6A:B9:4C:DF:84:A6": {
                "device": {
                  "address": "6A:B9:4C:DF:84:A6",
                  "name": "",
                  "rssi": -94,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {},
                  "service_data": {
                    "0000fd6f-0000-1000-8000-00805f9b34fb": "84fd5fab02ff8562aded82e9305db87976fa2378"
                  },
                  "service_uuids": [
                    "0000fd6f-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -94,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "5C:08:19:FC:4D:3C": {
                "device": {
                  "address": "5C:08:19:FC:4D:3C",
                  "name": "",
                  "rssi": -97,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {},
                  "service_data": {
                    "0000fd6f-0000-1000-8000-00805f9b34fb": "af754c969a483b1efd4cddbdbc6076c8af717070"
                  },
                  "service_uuids": [
                    "0000fd6f-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -97,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "0F:46:3A:86:DD:FF": {
                "device": {
                  "address": "0F:46:3A:86:DD:FF",
                  "name": "",
                  "rssi": -95,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {
                    "6": "01092002c377ceadea1abbba88343814cfe3a32bf14e6cbb11e3f9"
                  },
                  "service_data": {},
                  "service_uuids": [],
                  "rssi": -95,
                  "tx_power": -127,
                  "platform_data": []
                }
              },
              "64:48:D0:6D:1E:0B": {
                "device": {
                  "address": "64:48:D0:6D:1E:0B",
                  "name": "",
                  "rssi": -92,
                  "details": {
                    "source": "f0:08:d1:c7:79:28",
                    "address_type": 1
                  }
                },
                "advertisement_data": {
                  "local_name": null,
                  "manufacturer_data": {},
                  "service_data": {
                    "0000fd6f-0000-1000-8000-00805f9b34fb": "de8649fcbf2e2108a473f19c1570b708798475aa"
                  },
                  "service_uuids": [
                    "0000fd6f-0000-1000-8000-00805f9b34fb"
                  ],
                  "rssi": -92,
                  "tx_power": -127,
                  "platform_data": []
                }
              }
            },
            "discovered_device_timestamps": {
              "00:7C:2D:FB:B0:3F": 1673365452.4361877,
              "F3:33:C3:9D:74:5E": 1673365449.8281634,
              "F3:33:5C:15:09:49": 1673365449.8081632,
              "FA:BA:C2:19:28:DB": 1673365450.4921696,
              "00:C3:F4:F3:55:99": 1673365418.8518722,
              "2E:1D:72:F0:3C:3D": 1673365410.1477904,
              "6B:D6:97:11:8F:62": 1673364980.687752,
              "3F:31:0A:DC:31:B7": 1673364982.9477732,
              "6A:B9:4C:DF:84:A6": 1673364696.6650746,
              "5C:08:19:FC:4D:3C": 1673364761.657688,
              "0F:46:3A:86:DD:FF": 1673365445.6841245,
              "64:48:D0:6D:1E:0B": 1673365262.1263995
            }
          },
          "connectable": false,
          "discovered_device_timestamps": {
            "00:7C:2D:FB:B0:3F": 263643.757906797,
            "F3:33:C3:9D:74:5E": 263645.669924465,
            "F3:33:5C:15:09:49": 263645.969927237,
            "FA:BA:C2:19:28:DB": 263644.745915927,
            "43:A1:7F:F9:2C:0B": 262979.447727654,
            "F1:46:E3:55:15:C8": 263636.757842113,
            "3E:95:E1:98:0F:ED": 263546.84901077,
            "46:89:5E:6A:6E:BC": 263326.17896515,
            "CA:70:48:3E:85:2D": 263362.011297914
          },
          "time_since_last_device_detection": {
            "00:7C:2D:FB:B0:3F": 4.152038365020417,
            "F3:33:C3:9D:74:5E": 2.240020697005093,
            "F3:33:5C:15:09:49": 1.940017924993299,
            "FA:BA:C2:19:28:DB": 3.16402923502028,
            "43:A1:7F:F9:2C:0B": 668.4622175080003,
            "F1:46:E3:55:15:C8": 11.152103049040306,
            "3E:95:E1:98:0F:ED": 101.06093439203687,
            "46:89:5E:6A:6E:BC": 321.730980012042,
            "CA:70:48:3E:85:2D": 285.89864724798827
          }
        },
        {
          "name": "hci0 (00:E0:4C:28:C4:16)",
          "start_time": 263606.005557875,
          "source": "00:E0:4C:28:C4:16",
          "scanning": true,
          "type": "HaScanner",
          "last_detection": 263606.005557875,
          "monotonic_time": 263647.909945162,
          "discovered_devices_and_advertisement_data": [],
          "adapter": "hci0"
        }
      ],
      "connectable_history": [],
      "all_history": [
        {
          "name": "00:7C:2D:FB:B0:3F",
          "address": "00:7C:2D:FB:B0:3F",
          "rssi": -84,
          "manufacturer_data": {
            "117": {
              "__type": "<class 'bytes'>",
              "repr": "b'B\\x04\\x01\\x80`\\x00|-\\xfb\\xb0?\\x02|-\\xfb\\xb0>\\x01\\xfe\\x00\\x00\\x00\\x00\\x00'"
            }
          },
          "service_data": {},
          "service_uuids": [],
          "source": "f0:08:d1:c7:79:28",
          "advertisement": [
            null,
            {
              "117": {
                "__type": "<class 'bytes'>",
                "repr": "b'B\\x04\\x01\\x80`\\x00|-\\xfb\\xb0?\\x02|-\\xfb\\xb0>\\x01\\xfe\\x00\\x00\\x00\\x00\\x00'"
              }
            },
            {},
            [],
            -127,
            -84,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(00:7C:2D:FB:B0:3F, )"
          },
          "connectable": false,
          "time": 263643.757906797
        },
        {
          "name": "846B2100FBFC30AEE9",
          "address": "F3:33:C3:9D:74:5E",
          "rssi": -82,
          "manufacturer_data": {
            "1447": {
              "__type": "<class 'bytes'>",
              "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x05\"\\x00\\xca'"
            }
          },
          "service_data": {},
          "service_uuids": [
            "0000fe07-0000-1000-8000-00805f9b34fb"
          ],
          "source": "f0:08:d1:c7:79:28",
          "advertisement": [
            "846B2100FBFC30AEE9",
            {
              "1447": {
                "__type": "<class 'bytes'>",
                "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x05\"\\x00\\xca'"
              }
            },
            {},
            [
              "0000fe07-0000-1000-8000-00805f9b34fb"
            ],
            -127,
            -82,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(F3:33:C3:9D:74:5E, 846B2100FBFC30AEE9)"
          },
          "connectable": false,
          "time": 263645.669924465
        },
        {
          "name": "90676469072830A8E9",
          "address": "F3:33:5C:15:09:49",
          "rssi": -91,
          "manufacturer_data": {
            "1447": {
              "__type": "<class 'bytes'>",
              "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x04\"\\x00\\xca'"
            }
          },
          "service_data": {},
          "service_uuids": [
            "0000fe07-0000-1000-8000-00805f9b34fb"
          ],
          "source": "f0:08:d1:c7:79:28",
          "advertisement": [
            "90676469072830A8E9",
            {
              "1447": {
                "__type": "<class 'bytes'>",
                "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x04\"\\x00\\xca'"
              }
            },
            {},
            [
              "0000fe07-0000-1000-8000-00805f9b34fb"
            ],
            -127,
            -91,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(F3:33:5C:15:09:49, 90676469072830A8E9)"
          },
          "connectable": false,
          "time": 263645.969927237
        },
        {
          "name": "F48F922B12663397E9",
          "address": "FA:BA:C2:19:28:DB",
          "rssi": -92,
          "manufacturer_data": {
            "1447": {
              "__type": "<class 'bytes'>",
              "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"\\x00\\xca'"
            }
          },
          "service_data": {},
          "service_uuids": [
            "0000fe07-0000-1000-8000-00805f9b34fb"
          ],
          "source": "f0:08:d1:c7:79:28",
          "advertisement": [
            "F48F922B12663397E9",
            {
              "1447": {
                "__type": "<class 'bytes'>",
                "repr": "b'\\x05\\x10\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"\\x00\\xca'"
              }
            },
            {},
            [
              "0000fe07-0000-1000-8000-00805f9b34fb"
            ],
            -127,
            -92,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(FA:BA:C2:19:28:DB, F48F922B12663397E9)"
          },
          "connectable": false,
          "time": 263644.745915927
        },
        {
          "name": "24:FC:E5:60:90:5B",
          "address": "24:FC:E5:60:90:5B",
          "rssi": -84,
          "manufacturer_data": {
            "117": {
              "__type": "<class 'bytes'>",
              "repr": "b'B\\x04\\x01\\x80`$\\xfc\\xe5`\\x90[&\\xfc\\xe5`\\x90Z\\x01\\x00\\x00\\x00\\x00\\x00\\x00'"
            }
          },
          "service_data": {},
          "service_uuids": [],
          "source": "24:62:ab:ff:31:04",
          "advertisement": [
            null,
            {
              "117": {
                "__type": "<class 'bytes'>",
                "repr": "b'B\\x04\\x01\\x80`$\\xfc\\xe5`\\x90[&\\xfc\\xe5`\\x90Z\\x01\\x00\\x00\\x00\\x00\\x00\\x00'"
              }
            },
            {},
            [],
            -127,
            -84,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(24:FC:E5:60:90:5B, )"
          },
          "connectable": false,
          "time": 263647.317939692
        },
        {
          "name": "2C:2F:CE:F9:36:42",
          "address": "2C:2F:CE:F9:36:42",
          "rssi": -95,
          "manufacturer_data": {},
          "service_data": {
            "0000fd6f-0000-1000-8000-00805f9b34fb": {
              "__type": "<class 'bytes'>",
              "repr": "b'\\xe5\\xa1\\xee\\x19C\\x8f\\xae\\x0cNR6\\xf8\\xf8\\x1b3a\\xb9\\xf4\\xbc\\xf1'"
            }
          },
          "service_uuids": [
            "0000fd6f-0000-1000-8000-00805f9b34fb"
          ],
          "source": "24:62:ab:ff:31:04",
          "advertisement": [
            null,
            {},
            {
              "0000fd6f-0000-1000-8000-00805f9b34fb": {
                "__type": "<class 'bytes'>",
                "repr": "b'\\xe5\\xa1\\xee\\x19C\\x8f\\xae\\x0cNR6\\xf8\\xf8\\x1b3a\\xb9\\xf4\\xbc\\xf1'"
              }
            },
            [
              "0000fd6f-0000-1000-8000-00805f9b34fb"
            ],
            -127,
            -95,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(2C:2F:CE:F9:36:42, )"
          },
          "connectable": false,
          "time": 262630.780419329
        },
        {
          "name": "43:A1:7F:F9:2C:0B",
          "address": "43:A1:7F:F9:2C:0B",
          "rssi": -94,
          "manufacturer_data": {},
          "service_data": {
            "0000fd6f-0000-1000-8000-00805f9b34fb": {
              "__type": "<class 'bytes'>",
              "repr": "b'\\xb5h\\x89\\xbbW\\x1br\\xdelI4\\x9b\\x9b\\xe1\\xbd\\xe2\\xaeg]\\x9e'"
            }
          },
          "service_uuids": [
            "0000fd6f-0000-1000-8000-00805f9b34fb"
          ],
          "source": "f0:08:d1:c7:79:28",
          "advertisement": [
            null,
            {},
            {
              "0000fd6f-0000-1000-8000-00805f9b34fb": {
                "__type": "<class 'bytes'>",
                "repr": "b'\\xb5h\\x89\\xbbW\\x1br\\xdelI4\\x9b\\x9b\\xe1\\xbd\\xe2\\xaeg]\\x9e'"
              }
            },
            [
              "0000fd6f-0000-1000-8000-00805f9b34fb"
            ],
            -127,
            -94,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(43:A1:7F:F9:2C:0B, )"
          },
          "connectable": false,
          "time": 262979.447727654
        },
        {
          "name": "4B:E9:58:47:F0:C1",
          "address": "4B:E9:58:47:F0:C1",
          "rssi": -86,
          "manufacturer_data": {
            "76": {
              "__type": "<class 'bytes'>",
              "repr": "b'\\x10\\x07\\x14\\x1b\\x98\\xceB\\xf6X'"
            }
          },
          "service_data": {},
          "service_uuids": [],
          "source": "24:62:ab:ff:31:04",
          "advertisement": [
            null,
            {
              "76": {
                "__type": "<class 'bytes'>",
                "repr": "b'\\x10\\x07\\x14\\x1b\\x98\\xceB\\xf6X'"
              }
            },
            {},
            [],
            -127,
            -86,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(4B:E9:58:47:F0:C1, )"
          },
          "connectable": false,
          "time": 263344.099131603
        },
        {
          "name": "MIBCS",
          "address": "F1:46:E3:55:15:C8",
          "rssi": -72,
          "manufacturer_data": {
            "343": {
              "__type": "<class 'bytes'>",
              "repr": "b'\\xf1F\\xe3U\\x15\\xc8'"
            }
          },
          "service_data": {
            "0000181b-0000-1000-8000-00805f9b34fb": {
              "__type": "<class 'bytes'>",
              "repr": "b'\\x02\\xa4\\xb2\\x07\\x01\\x01\\x16\\x0c6\\xfd\\xff\\xfcI'"
            }
          },
          "service_uuids": [
            "0000181b-0000-1000-8000-00805f9b34fb"
          ],
          "source": "f0:08:d1:c7:79:28",
          "advertisement": [
            "MIBCS",
            {
              "343": {
                "__type": "<class 'bytes'>",
                "repr": "b'\\xf1F\\xe3U\\x15\\xc8'"
              }
            },
            {
              "0000181b-0000-1000-8000-00805f9b34fb": {
                "__type": "<class 'bytes'>",
                "repr": "b'\\x02\\xa4\\xb2\\x07\\x01\\x01\\x16\\x0c6\\xfd\\xff\\xfcI'"
              }
            },
            [
              "0000181b-0000-1000-8000-00805f9b34fb"
            ],
            -127,
            -72,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(F1:46:E3:55:15:C8, MIBCS)"
          },
          "connectable": false,
          "time": 263636.757842113
        },
        {
          "name": "3E:95:E1:98:0F:ED",
          "address": "3E:95:E1:98:0F:ED",
          "rssi": -98,
          "manufacturer_data": {},
          "service_data": {
            "0000fd6f-0000-1000-8000-00805f9b34fb": {
              "__type": "<class 'bytes'>",
              "repr": "b'\\x9ek\\x92S\\xd2))\\xd4\\xb3\\xf9\\xe8\\x07\\x12\\x8c^\\x9f\\x9f\\x8d\\xb2\\xe0'"
            }
          },
          "service_uuids": [
            "0000fd6f-0000-1000-8000-00805f9b34fb"
          ],
          "source": "f0:08:d1:c7:79:28",
          "advertisement": [
            null,
            {},
            {
              "0000fd6f-0000-1000-8000-00805f9b34fb": {
                "__type": "<class 'bytes'>",
                "repr": "b'\\x9ek\\x92S\\xd2))\\xd4\\xb3\\xf9\\xe8\\x07\\x12\\x8c^\\x9f\\x9f\\x8d\\xb2\\xe0'"
              }
            },
            [
              "0000fd6f-0000-1000-8000-00805f9b34fb"
            ],
            -127,
            -98,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(3E:95:E1:98:0F:ED, )"
          },
          "connectable": false,
          "time": 263546.84901077
        },
        {
          "name": "46:89:5E:6A:6E:BC",
          "address": "46:89:5E:6A:6E:BC",
          "rssi": -84,
          "manufacturer_data": {},
          "service_data": {
            "0000fd6f-0000-1000-8000-00805f9b34fb": {
              "__type": "<class 'bytes'>",
              "repr": "b'\\x84LS\\x03\\xfcL5\\xfc\\xd3\\x88\\x11V{@z\\xc3\\xbbu\\x88\\x05'"
            }
          },
          "service_uuids": [
            "0000fd6f-0000-1000-8000-00805f9b34fb"
          ],
          "source": "f0:08:d1:c7:79:28",
          "advertisement": [
            null,
            {},
            {
              "0000fd6f-0000-1000-8000-00805f9b34fb": {
                "__type": "<class 'bytes'>",
                "repr": "b'\\x84LS\\x03\\xfcL5\\xfc\\xd3\\x88\\x11V{@z\\xc3\\xbbu\\x88\\x05'"
              }
            },
            [
              "0000fd6f-0000-1000-8000-00805f9b34fb"
            ],
            -127,
            -84,
            []
          ],
          "device": {
            "__type": "<class 'bleak.backends.device.BLEDevice'>",
            "repr": "BLEDevice(46:89:5E:6A:6E:BC, )"
          },
          "connectable": false,
          "time": 263326.17896515
        }
      ],
      "advertisement_tracker": {
        "intervals": {
          "24:FC:E5:60:90:5B": 18.860177143011242,
          "F3:33:5C:15:09:49": 26.83624424599111,
          "F3:33:C3:9D:74:5E": 19.8521813149855,
          "FA:BA:C2:19:28:DB": 22.432204028998967,
          "F1:46:E3:55:15:C8": 19.540182778029703,
          "4B:E9:58:47:F0:C1": 66.58462050498929,
          "00:7C:2D:FB:B0:3F": 5.492050789005589
        },
        "sources": {
          "24:FC:E5:60:90:5B": "24:62:ab:ff:31:04",
          "F3:33:5C:15:09:49": "f0:08:d1:c7:79:28",
          "F3:33:C3:9D:74:5E": "f0:08:d1:c7:79:28",
          "FA:BA:C2:19:28:DB": "f0:08:d1:c7:79:28",
          "2C:2F:CE:F9:36:42": "24:62:ab:ff:31:04",
          "43:A1:7F:F9:2C:0B": "f0:08:d1:c7:79:28",
          "4B:E9:58:47:F0:C1": "24:62:ab:ff:31:04",
          "F1:46:E3:55:15:C8": "f0:08:d1:c7:79:28",
          "3E:95:E1:98:0F:ED": "f0:08:d1:c7:79:28",
          "46:89:5E:6A:6E:BC": "f0:08:d1:c7:79:28",
          "00:7C:2D:FB:B0:3F": "f0:08:d1:c7:79:28"
        },
        "timings": {
          "2C:2F:CE:F9:36:42": [
            262630.780419329
          ],
          "43:A1:7F:F9:2C:0B": [
            262811.414142246,
            262813.97416651,
            262851.754524168,
            262860.046602564,
            262870.91070522,
            262873.494729628,
            262900.706986461,
            262908.699061821,
            262914.115112874,
            262941.359369475,
            262943.915393532,
            262946.783420521,
            262949.651447507,
            262979.447727654
          ],
          "3E:95:E1:98:0F:ED": [
            263267.910423436,
            263539.09693904,
            263546.84901077
          ],
          "46:89:5E:6A:6E:BC": [
            263315.56286651,
            263323.618941366,
            263326.17896515
          ]
        }
      }
    },
    "adapters": {
      "hci0": {
        "address": "00:E0:4C:28:C4:16",
        "sw_version": "homeserver",
        "hw_version": "usb:v1D6Bp0246d0537",
        "passive_scan": false,
        "manufacturer": "Realtek",
        "product": "Bluetooth Radio",
        "vendor_id": "2550",
        "product_id": "8761"
      }
    },
    "dbus": {
      "/org/bluez": {
        "org.freedesktop.DBus.Introspectable": {},
        "org.bluez.AgentManager1": {},
        "org.bluez.ProfileManager1": {},
        "org.bluez.HealthManager1": {}
      },
      "/org/bluez/hci0": {
        "org.freedesktop.DBus.Introspectable": {},
        "org.bluez.Adapter1": {
          "Address": "00:E0:4C:28:C4:16",
          "AddressType": "public",
          "Name": "homeserver",
          "Alias": "homeserver",
          "Class": 786700,
          "Powered": true,
          "Discoverable": false,
          "DiscoverableTimeout": 180,
          "Pairable": false,
          "PairableTimeout": 0,
          "Discovering": true,
          "UUIDs": [
            "0000110e-0000-1000-8000-00805f9b34fb",
            "0000110a-0000-1000-8000-00805f9b34fb",
            "00001200-0000-1000-8000-00805f9b34fb",
            "0000110b-0000-1000-8000-00805f9b34fb",
            "0000110c-0000-1000-8000-00805f9b34fb",
            "00001800-0000-1000-8000-00805f9b34fb",
            "00001801-0000-1000-8000-00805f9b34fb",
            "0000180a-0000-1000-8000-00805f9b34fb"
          ],
          "Modalias": "usb:v1D6Bp0246d0537",
          "Roles": [
            "central",
            "peripheral"
          ]
        },
        "org.freedesktop.DBus.Properties": {},
        "org.bluez.GattManager1": {},
        "org.bluez.LEAdvertisingManager1": {
          "ActiveInstances": 0,
          "SupportedInstances": 4,
          "SupportedIncludes": [
            "tx-power",
            "appearance",
            "local-name"
          ],
          "SupportedSecondaryChannels": [
            "1M",
            "2M",
            "Coded"
          ]
        },
        "org.bluez.Media1": {},
        "org.bluez.NetworkServer1": {}
      }
    }
  }
}
Ernst79 commented 1 year ago

This needs some explanation

BLE monitor is NOT working with Bluetooth Proxy and is also NOT working with the internal Bluetooth integration.

internal BLE monitor is using aioblescan to get access to the BLE data at a lower level (HCI scan) compared to the internal Bluetooth integration. The internal Bluetooth integration is using bleak, which on its turn is using bluez.

external BLE monitor is working with ESPHome BLE gateway, as equivalent to Bluetooth Proxy.

So, two different ways to get the data, which don't work together.

Keep in mind that we are moving stuff from BLE monitor to HA Bluetooth integrations. BLE monitor can be seen as the predecessor of the Bluetooth integration + the individual BLE integrations (like Xiaomi-ble, govee-ble exc). Bluetooth proxy can be seen as the predecessor of Bluetooth proxy.

Now, the explanation why the Mi Scale isn't working. You are using Bluetooth Proxy to forward data to HA. The Bluetooth integration does receive this data, but it also needs an integration that understands the data. The Xiaomi-BLE integration is not yet able to parse MiScale data. MiScale is using a different format that the other Xiaomi sensors, and MiScale isn't converted yet. So, you have to wait till that is done. It's on my planning, like many other things.

If you place your scale close to your HA machine, and you install BLE monitor, it should be able to receive the data from the Miscale (via BLE monitor, NOT via the Bluetooth integration). But note that you use the same type of scanning (active/passive) for both integrations, if you want to use both (e.g. for other sensors). You can also use ESP gateway to forward the data to BLE monitor.

Hopefully it makes it a bit more clear.

Sk4zz commented 1 year ago

Hi Ernst,

thank you for your quick and thorough reply! Indeed you made it a lot clearer.

I just realized that I can use Bluetooth proxy and Bluetooth gateway at the same time (at least it seems so). Now the MiScale was discovered by BLE monitor. However, the impedance seems not to be reported but that is a separate problem, that I will try to figure out myself.

Can I subscribe somewhere to get a notification as soon as the Mi Scale integration was moved to the native integration?

Ernst79 commented 1 year ago

I thought I have seen a similar issue about the impedance. If you can’t find it, post some raw BLE date from ESPhome or BLe monitor, such that I can investigate

Sk4zz commented 1 year ago

I was able to capture some raw BLE data and created a new issue: https://github.com/custom-components/ble_monitor/issues/1094