There are different ways to realize a presence detection in Home Assistant:
As I have a FritzBox at home, I’m using the AVM FRITZ!Box Tools Integration, which has “presence detection by looking at connected devices”.
You can find your devices using the developer tools and looking for the
device_tracker entity. I then use the devices in a group to easily check if anyone is home.