The best way to get accurate PD(Presence Detection) is to use multiple trackers. These should then be configured/combined to track a "Person".
Note: You can configure via UI or Yaml, but if created via one it can only be "edited" via one as well. I like the UI since it filters devices/etc and finds correct "ID".
https://www.home-assistant.io/integrations/person/
Get the ID via "http://HA/config/users"
configuration.yaml:
cat << 'EOF' >>/opt/homeassistant/configuration.yaml person: - name: FreeSoftwareServers id: 7asd123asdm941179a9412308uzdvnad device_trackers: - device_tracker.nmappixelxl - device_tracker.pixel_xl EOF