Trying to set up presence detection with bluetooth tracker

you probably want to look at a bayesian binary sensor for this.
It takes a bit to understand, but it’s really powerful.
This article helped me understand how it works.

This might also be of interest to you