Hide Map Card when person's not home?

I’ve added a Map Card to show a person in my family’s location, but I’d like to hide that card when the person is home. I’m guessing it could be done with Entity Filter or Auto Entities but I’m not sure how.

Here is my code for the Map Card used in ui-lovelace.yaml

  - type: map
    aspect_ratio: 16:9
    default_zoom: 15
      - device_tracker.persons_iphone

Just to be clear I want to hide the whole map when the person is home, not just hide the person from the map. Does anyone have any idea how to do this?
1 Like

Perfect, thanks a lot!