diff --git a/platypush/plugins/bluetooth/_ble/_event_handler.py b/platypush/plugins/bluetooth/_ble/_event_handler.py index 3beedfeea2..4b206cbd11 100644 --- a/platypush/plugins/bluetooth/_ble/_event_handler.py +++ b/platypush/plugins/bluetooth/_ble/_event_handler.py @@ -191,6 +191,10 @@ class EventHandler: """ Check if the beacon received from the given device should be skipped. """ + # Exclude Apple iBeacons + if device.manufacturer == 'Apple, Inc.' and device.model == 'iBeacon': + return True + # "Noisy" beacon devices usually have no associated friendly name. If a # device has a valid name, we should probably include it. if ( @@ -206,6 +210,10 @@ class EventHandler: ): return True + # If the device has no children and no manufacturer, skip it + if not (device.children and device.manufacturer): + return True + # If the device has any children other than services, don't skip it if any(not isinstance(child, BluetoothService) for child in device.children): return False