Hide from map when away

Hi,

Is there currently a way to hide map markers from the standard map for people/device which are marked as away?

A google search mentions a hide_if_away yaml entry but then I also saw a post saying it was depricated and there hasnt been any further mentions since 2020.

Is there a current way of hiding map markers for people who are away?

What is a “standard map”?
If you mean a “Map dashboard” - no way.

Yes, the Map Dashboard.

That’s a shame there is no way. It feels like quite the invasion of privacy for the others in the house.

Is there an alternative map addon or integration that can offer hide_if_away functionality?

Hmmmm…

Even if it was hidden from the map, a user’s location is still available for anyone to grab if their mobile is reporting it.

If privacy is the concern, user should just disable gps coordinates reporting from their app.

???
Then why do you have the map if not to know where people are located?

I don’t really feel I should have to justify my reasoning but seeing as there is such a pile on just from a simple question then I guess I have no choice.

We use the map to make sure the kids get to school safely especially as one of my children has special needs.

We don’t however need to follow me or my wife on the map especially in the run up to birthdays and Christmas where it might give away surprises that are being purchased.

If I disable tracking on my phone so it doesn’t appear on the map then how will automations based on entering or exiting zones work?

Then you will see persons on the Map either at school or on a way.

Then you have ways:
– either switch off location tracking on your mobile devices (might be not good for automations as you noticed);
– or temporarily hide “mom & dad” persons from a Map - but you will have to use a map CARD (which is controllable by a user), not a map VIEW (and note a remark said earlier - location info will be still available in more-info for these persons).

So with the map card you can hide specific people but keep the zone based automations?

If i can do that, then that would be ideal.

What you can do is:

  1. Create 2 conditional cards: one with all persons, another w/o mom/dad.
  2. Then show a particular map card (even in a Panel mode to mimic a Map view) dependently on some switch like “privacy for parents”.

Thank you. This sounds like it will do exactly what i want

That is how I did it.

No Map view. Instead I created a view with one single map card that takes the entire width.

And in the map card you can specify what to track on the map. And then you only add the kids.

You can still see the location data from your app but not just by spotting a map.

Here is the entire yaml for this view.

Note that you can also alter how long back it shows the trail. You can shorten this to say an hour if you only want to show where the person is now.

And in my case I also let the map show the zones I have defined.

When my wife leaves the diane_work zone a TTS message is heard in my house saying “Diane is leaving work, remember to empty the dishwasher”. The art of turning a privacy issue into a service and marriage saver :innocent:

It is also great to know when one of us is leaving the central station so we can know when to fetch the other by car from the local station.


icon: mdi:earth
path: map
title: Map
type: sections
max_columns: 3
sections:
  - type: grid
    cards:
      - type: heading
        heading: Map
        heading_style: title
        badges:
          - type: entity
            show_state: true
            show_icon: true
            entity: person.diane
            name: Diane
            icon: mdi:face-woman
            state_content:
              - name
              - state
          - type: entity
            show_state: true
            show_icon: true
            entity: person.kenneth
            name: Kenneth
            icon: mdi:face-man
            color: indigo
            state_content:
              - name
              - state
      - type: map
        entities:
          - entity: person.diane
          - entity: person.kenneth
          - entity: zone.home
          - entity: zone.central_station
          - entity: zone.diane_work
          - entity: zone.kenneth_work
        default_zoom: 12
        hours_to_show: 12
        auto_fit: false
        theme_mode: auto
        layout_options:
          grid_columns: full
          grid_rows: 10
    column_span: 3
cards: []
dense_section_placement: true