Is anyone familiar with a good good pattern for firing automations when more than two people have left the house or at least one of them return? I’m basically trying to track when the house is “away” or not.
I’ve set up moderately complex node-red flows with some boolean inputs to track state and fire events, but it seems overly complicated. I’m now trying to expand that to have events when we’re “out of town” e.g. “far” away from the house.
The proximity integration seems to provide similar events when we cross zone/distance boundaries but doesn’t allow me to combine two people’s locations into one “home” state without the same fairly compliex node red flows.
For that you would need a template sensor to check that both your trackers are not in the 10 mile zone, or home zone, or any other zones you have inside the 10mile radius.
Sorry to revive this, but it’s exactly my question. From what I see, people can only be grouped by YAML, and the documentation shows this as an “Old Group” and is not recommended. Is this what you are referring to set up? Something like…
The State of a Zone will tell you how many people (of those being tracked) are present. So when “zone.home” changes to zero, all persons have left, and when it changes to >0, someone has arrived.
However, it is not a trivial problem to consistently and accurately determine the zone values - for example if your presence is determined by your cell phone and you leave without out it… the system will probably not realize you’ve left.