๐Ÿ”น Auto-entities - Automatically fill cards with entities

Thx mate. Really. Much appreciated!
Will check the update soon and report back :+1:

update

indeed seems to have fixed it:

only left (for me in this card) is the need for a more-info on tap.

  - type: custom:auto-entities
    card:
      type: entities
#      title: Github repos
      show_header_toggle: false
      header:
        type: picture
        image: /local/images/github_owler.png
    entities:
      - entity: automation.github_repo_update
        secondary_info: last-triggered
    filter:
      include:
        - entity_id: sensor.github*
          options:
            type: custom:template-entity-row
            state: >
              {% if state_attr(config.entity,'latest_release_url') %}
              {{ state_attr(config.entity,'latest_release_url').split('tag/')[1]}}
              {% else %} Not set
              {% endif %}
            secondary: >
              {{ state_attr(config.entity,'latest_commit_message')}}
#  #            secondary: "{{ as_timestamp(states[config.entity].last_changed)| timestamp_custom('%X - %D') }}"
          sort:
            method: name}

when clicking a row, nothing happens. Would be really nice if you could explain to me how I can enable that. If needed, Iโ€™ll hop over to the template-entity-row thread.
aamof, it would be great if we could use both tap and hold action. tap for more-info, hold for url navigation to the repoโ€ฆ

    filter:
      include:
        - entity_id: sensor.github*
          options:
            type: custom:template-entity-row
            state: >
              {% if state_attr(config.entity,'latest_release_url') %}
              {{ state_attr(config.entity,'latest_release_url').split('tag/')[1]}}
              {% else %} Not set
              {% endif %}
            secondary: >
              {{ state_attr(config.entity,'latest_commit_message')}}
          sort:
            method: name
          tap_action:
            action: more-info
          hold_action:
            url_path: >
              {{ state_attr(config.entity,'latest_release_url')}}

hope you will consider.

1 Like