Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 101963

Combining auto-entities and decluttering cards challenge

$
0
0

@Mariusthvdb wrote:

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

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 101963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>