How to exclude sensor with lon/lat not within lon/lat range

I have some sensors with lon/lat and want to exclude when value is not in range of permitted lon/lat range.

Does anyone have an idea how I could solve this ?

This post shows how to get distances between people and zones along with distance between zones. It might give you some ideas on how to do it.

Distances between zones or persons - Share your Projects! / Dashboards & Frontend - Home Assistant Community (

thanks for helping but this is not the solution I’m searching. It’s not about persons but other sensor states with sequential changing lon/lat

Create a custom device tracker. Use device_tracker.see service to set its state.
Device tracker - Home Assistant (

You need to give more detail about what you are trying to do.

What do you mean by exclude?