Übersicht über ausgelöste Automationen

Weitere Möglichkeit wäre eine Markdown-Karte.

Code

        type: markdown
        content: |-
          <!-- Automationen in den letzten 24 Stunden -->

          <font size='4'>Automationen in den letzten 24 Stunden</font>

          *[—> Alle Automationen](/config/automation/dashboard)*

          <!-- WICHTIG: Zwischen den code tags muss sich je ein Absatz befinden! -->

          <!-- <details> </details> -->

          **Zeit &nbsp;&nbsp;&nbsp;&nbsp; Name**
          {% for state in (states.automation
            |selectattr('attributes.last_triggered', 'defined')
            | selectattr('attributes.last_triggered')
            | selectattr('state', 'ne', 'unavailable')
            | sort(attribute='attributes.last_triggered', reverse=true)) [0:10] -%}
            {% if state.attributes.last_triggered and (now() - state.attributes.last_triggered).total_seconds() < 86400 %}
              {%- set t = (as_timestamp(state.attributes.last_triggered) | timestamp_custom('%H:%M:%S', true)) -%}
                {{ t }} &nbsp;&nbsp; _[{{ state.name }}](/config/automation/edit/{{ state.attributes.id }})_
            {% endif -%}
          {% endfor %}

          <details>
          <summary markdown="span">mehr…</summary>

          **Zeit &nbsp;&nbsp;&nbsp;&nbsp; Name**
          {% for state in (states.automation
            |selectattr('attributes.last_triggered', 'defined')
            | selectattr('attributes.last_triggered')
            | selectattr('state', 'ne', 'unavailable')
            | sort(attribute='attributes.last_triggered', reverse=true)) [10:40] -%}
            {% if state.attributes.last_triggered and (now() - state.attributes.last_triggered).total_seconds() < 86400 %}
              {%- set t = (as_timestamp(state.attributes.last_triggered) | timestamp_custom('%H:%M:%S', true)) -%}
                {{ t }} &nbsp;&nbsp; _[{{ state.name }}](/config/automation/edit/{{ state.attributes.id }})_
            {% endif -%}
          {% endfor %}
          </details>

7 „Gefällt mir“