In the midst of setting up a bunch of Reolink cameras and had a doubt about how to best set geofencing automations.
What I want to do is set an automation where if either my wife or me (we both have trackers on our phones) are home then the cameras set to private mode.
Where I got stuck is how to make the automation trigger an “either”; and then started wondering if there is a less clunky way of doing this.
I’ve gotten here so far, and I’m not even sure this is right:
However. Do you have person objects setup? Have you assigned device trackers to those persons?
The ‘easiest’ way to tell if ‘anyone is home’ is to setup exactly what I just said above. When a device tracker is detected inside zone home it pops ‘home’ from ‘not_home’ AND if any person is associated with that tracker. Then they are counted as ‘in zone home’ zone home (your default HA zone) increments the number of persons present… And the zone state is updated to that number…
Side effects. All the HA constructs know home/away
Track the count stored in zone.home as your trigger and >0 is anyone tracked is home.
And as long as you assign your trackers properly you’re now operating on Is anyone home then put cameras in private. Is everyone gone put cameras in secure. Etc. And never have to change that again.