Helper: everybody home/out

Making quite a few automations based on my family (my wife, kids and me) is at home. Can i make a simple boolean to achieve this? Does it already exist?

Looking for this for a long time… i must have overlooked something. Help appreciated!

Edit:
It turns out, i need it as a trigger

Check for entity zone.home

Sure… how can i make 1 helper instead of checking if everyone is (not) at home?

home.zone is numeric. It keeps count of how many people are home.
If home.zone = 0, nobody is home;
if home.zone > 0, someone is home.

Ow, it returns a number… oooh, that’s cool. I might use a treshold sensor then. Let me try that. It’s not a sensor ofcourse…

Alright, it;s quite easy actually. I found this tutorial: