Combining auto-entities and decluttering cards challenge

HI,

using this decluttering template, I can show maps for my family members not home. just adopted today from a fellow community member and built into a decluttering template:

card:
  type: conditional
  conditions:
    - entity: 'person.[[name]]'
      state_not: home
  card:
    type: map
    title: '[[naam]]'
    entities:
      - 'person.[[name]]'
    aspect_ratio: 969
    dark_mode: false
    default_zoom: 14

entering the name and friendly_name directly in the card config, shows me 6 maps of the person, correctly mapped… so at least something is working :wink:

I now like to build on that, and auto create these maps for all my family members using the auto-entities card, but I am stuck. Not sure any more which card goes where, and, importantly, how to get the object_if and friendly_name of the magic this.entity_id into the template…

this is the setup which I hope should make clear what I am trying to do…:

  - type: custom:auto-entities
    card:
      type: custom:decluttering-card
      template: map_not_home
    filter:
      include:
        - domain: person
          options:
            variables:
              - name: this.entity_id.object_id
              - naam: this.entity_id.attributes.friendly_name

seeing error like this:

this:

  - type: custom:auto-entities
    card:
      type: entities
    filter:
      include:
        - domain: person
          options:
            type: custom:decluttering-card
            template: map_not_home
            variables:
              - name: object_id
              - naam: attributes.friendly_name

give me 6 (correct total number) maps, but it doesn’t use the state, nor the object_id and friendly_name.
please have a look if you can help me?
thanks

I’m not sure if this helps or just muddies the water but I use a camera to show people on maps

For example…

camera:
  - name: person_location_map
    platform: generic
    still_image_url: https://image.maps.api.here.com - BLAH BLAH - Loads of other stuff here

Lovelace:

          - type: entities
            show_header_toggle: false
            entities:
              - type: custom:hui-picture-entity-card
                show_name: false
                entity: camera.person_location_map
                camera_image: camera.person_location_map
                show_state: false

The still_image_url takes a ton of parameters including longitude and latitude and in the past I have also used Google and MapQuest to provide the map but Here allows you to play with a lot of the formatting.

It is all documented in the Here api docs. I got the idea of using a camera from the HA docs somewhere, but I can’t find it now.

Sorry if I’m barking up the wrong tree…
:thinking: :grinning:

yes, I am replacing these Bing cards (previously even Google maps cards) with the enormous parameter strings in Secrets :wink:

Ill note you suggestion, as Im experimenting with Here also.
Still like to find a way for the decluttering/auto-entities. Has a eureka today already with the auto-entities/multiple-entity-row, maybe shouldn’t push the limits too much …