Binary sensor based on two entities

Hey guys,

I want to make a presence binary sensor based on my and my partners location. If either one of us is home, then the sensor is set to TRUE, else FALSE.

How would I go about implementing this?

Try this:

sensor:
  - platform: template
    sensors:
      anybody_home:
         value_template: '{{% if is_state("device_tracker.you", "home") or is_state("device_tracker.them", "home") -%}
         There is someone in the house.}'

You can also use a group for this

eg I have a group named family with all the device_trackers I want to consider as members.

The status of the group is always home if at least 1 person (well, their phone actually) is home

So I test for the status of the group (group.family in my case) as a condition in automations.

Thanks for the Dixey.