Create a sensor that sums up number of people in the house
One of the most powerful abilities of Home Assistant is the ability to easily create automation based on the current location of our home users.
For instance, start the vacuum cleaner and 9:00 am, only if you’re not home.
This of course can be done with the built-in automation editor, but the condition for the scenario can be rather long, particularly if there is more than one person in the house.