HACS Updates im Lovelace Dashboard anzeigen

SONOFF S26R2 2PCS WLAN Smarte Steckdose,16A 4000W Alexa Smart Plug,Smart Home Wifi Steckdose mit App Fernsteuerung, Sprachsteuerung und Zeitschaltuhr Funktioniert mit Echo,Echo Dot,Google Home,Ifttt.
SONOFF S26R2 2PCS WLAN Smarte Steckdose,16A 4000W Alexa Smart Plug,Smart Home Wifi Steckdose mit App Fernsteuerung, Sprachsteuerung und Zeitschaltuhr Funktioniert mit Echo,Echo Dot,Google Home,Ifttt.
--

Mithilfe einer „bedingten Elemente-Karte“ (type:conditional) ist es möglich, sich direkt in seinem Dashboard über neue HACS-Updates informieren zu lassen. In Kombination mit der „custom:auto-entities“ werden auch gleich die jeweiligen Updates aufgelistet.


type: conditional
conditions:
  - entity: sensor.hacs
    state: '0'
card:
  type: vertical-stack
  cards:
    - type: conditional
      conditions:
        - entity: sensor.hacs
          state_not: '0'
      card:
        type: markdown
        content: >-
          {% for repo in state_attr('sensor.hacs', 'repositories') %}

          **{{ repo.display_name }}** _{{ repo["installed_version"] }}_ -> _{{
          repo["available_version"] }}_

          {% endfor %}
    - type: vertical-stack
      cards:
        - type: custom:auto-entities
          card:
            type: entities
            title: Add-on Updates
            show_header_toggle: false
          filter:
            include:
              - entity_id: binary_sensor.*update*
                state: 'on'
                options:
                  secondary_info: last-changed
            exclude: []
          sort:
            method: entity_id
          show_empty: false

Mit ein wenig Fantasie und spaß am Code lassen sich dann tolle Übersichten erzeugen!

type: conditional
conditions:
  - entity: sensor.hacs
    state_not: '0'
card:
  type: vertical-stack
  cards:
    - type: entities
      entities:
        - sensor.hacs
      style: |
        ha-card {
          color: var(--color-orange-1);
          --paper-item-icon-color: var(--color-orange-1);
        }
    - type: vertical-stack
      cards:
        - type: conditional
          conditions:
            - entity: sensor.hacs
              state_not: '0'
          card:
            type: markdown
            content: >-
              {% for repo in state_attr('sensor.hacs', 'repositories') %}

              **{{ repo.display_name }}** _{{ repo["installed_version"] }}_ ->
              _{{ repo["available_version"] }}_

              {% endfor %}
        - type: custom:auto-entities
          card:
            type: entities
            title: Add-on Updates
            show_header_toggle: false
          filter:
            include:
              - entity_id: binary_sensor.*update*
                state: 'on'
                options:
                  secondary_info: last-changed
            exclude: []
          sort:
            method: entity_id
          show_empty: false
      style: |
        ha-card {
          color: var(--color-orange-1);
          --paper-item-icon-color: var(--color-orange-1);
        }