There are different ways to realize a presence detection in Home Assistant:
https://www.home-assistant.io/getting-started/presence-detection/
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.
/config/groups.yaml
family:
- device_tracker.xiaomiredminote8pro
- device_tracker.xioamimi8
