[Android Apps and Games] XlAfbk:
I've now also tried with the modded Mi Fit app and still this app says it's unpaired. Which app am I supposed to install as a prereq for this?

Could someone who made this work please post what the prereqs are to use this?

EDIT: made it work with a version compiled from the latest Github-source and setting the MAC manually. However with that I can only get the app itself to work, not Tasker integration.

I ended up adding some debug stuff (listing MACs among others) to figure out what's wrong but am kinda stuck here

app logcat:

D/BLECommunicationManager(27791): Initialising Bluetooth connection
D/BluetoothManagerService( 548): Message: 20
D/BluetoothManagerService( 548): Added callback: android.bluetooth.IBluetoothManagerCallback$Stub$Proxy@858ab35:true
D/BLECommunicationManager(27791): Initialising Bluetooth connection1
D/BLECommunicationManager(27791): 44:2A:60:XX:XX:XX
D/BLECommunicationManager(27791): 00:1D:DF:XX:XX:XX
D/BLECommunicationManager(27791): 00:0A:3A:XX:XX:XX
D/BLECommunicationManager(27791): 08:3E:8E:XX:XX:XX
D/BLECommunicationManager(27791): A0:E9:DB:XX:XX:XX
D/BLECommunicationManager(27791): 00:16:44:XX:XX:XX
D/BLECommunicationManager(27791): Can't find Bluetooth by paired devices. Trying by MAC address
D/BLECommunicationManager(27791): Establishing connection to gatt
D/BluetoothGatt(27791): connect() - device: 88:0F:10:XX:XX:XX, auto: true
D/BluetoothGatt(27791): registerApp()
D/BluetoothGatt(27791): registerApp() - UUID=b10be487-334d-4d0e-af16-6100a1daa5c1
D/BtGatt.GattService( 2664): registerClient() - UUID=b10be487-334d-4d0e-af16-6100a1daa5c1
D/BtGatt.GattService( 2664): onClientRegistered() - UUID=b10be487-334d-4d0e-af16-6100a1daa5c1, clientIf=6
D/BluetoothGatt(27791): onClientRegistered() - status=0 clientIf=6
D/BtGatt.GattService( 2664): clientConnect() - address=88:0F:10:XX:XX:XX, isDirect=true
D/btif_config( 2664): btif_get_address_type: Device [88:0f:10:XX:XX:XX] address type 0
D/btif_config( 2664): btif_get_device_type: Device [88:0f:10:XX:XX:XX] type 2
D/BtGatt.GattService( 2664): onConnected() - clientIf=6, connId=6, address=88:0F:10:XX:XX:XX
D/BluetoothGatt(27791): onClientConnectionState() - status=0 clientIf=6 device=88:0F:10:XX:XX:XX
D/BLECommunicationManager(27791): Gatt state: connected
D/BluetoothGatt(27791): discoverServices() - device: 88:0F:10:XX:XX:XX
D/BtGatt.GattService( 2664): discoverServices() - address=88:0F:10:XX:XX:XX, connId=6
D/BtGatt.GattService( 2664): onSearchCompleted() - connId=6, status=0
D/BluetoothGatt(27791): onSearchComplete() = Device=88:0F:10:XX:XX:XX Status=0
D/BtGatt.GattService( 2664): clientConnect() - address=88:0F:10:XX:XX:XX, isDirect=false
D/btif_config( 2664): btif_get_address_type: Device [88:0f:10:XX:XX:XX] address type 0
D/btif_config( 2664): btif_get_device_type: Device [88:0f:10:XX:XX:XX] type 2

logcat when called from tasker:

D/HeadsetStateMachine( 2664): Disconnected process message: 10, size: 0
D/BLECommunicationManager(27729): Initialising Bluetooth connection
D/BLECommunicationManager(27729): Initialising Bluetooth connection1
D/BLECommunicationManager(27729): 44:2A:60:XX:XX:XX
D/BLECommunicationManager(27729): 00:1D:DF:XX:XX:XX
D/BLECommunicationManager(27729): 00:0A:3A:XX:XX:XX
D/BLECommunicationManager(27729): 08:3E:8E:XX:XX:XX
D/BLECommunicationManager(27729): A0:E9:DB:XX:XX:XX
D/BLECommunicationManager(27729): 00:16:44:XX:XX:XX
D/BLECommunicationManager(27729): Can't find Bluetooth by paired devices. Trying by MAC address
D/MiBandSetting(27729): No Bluetooth device available

EDIT2: I then went and removed the whole device discovery stuff, hardcoding my MAC just before "mBluetoothMi = mBluetoothAdapter.getRemoteDevice(mDeviceAddress);". With that it works from Tasker as well. So it seems there's something flawed in the discovery logic, but I can't spot anything obvious.