Love this! I was just considering resorting to a markdown card before going to bed last night. Since I’m just looking for easy access to modify automations on the fly, I’ve modified this to include links to each automation’s trace:
|Automation|Last Triggered|
|:-|----:|
{% for state in states.automation | selectattr('attributes.last_triggered','defined') | rejectattr('attributes.last_triggered','none') | selectattr('attributes.last_triggered', '>', now() - timedelta(hours=4)) | sort(attribute='attributes.last_triggered', reverse=true) -%}
{%- set t = relative_time(state.attributes.last_triggered)+' ago' -%}
|[{{state.name}}](/config/automation/trace/{{state.attributes.id}})|_{{t}}_|
{% endfor %}
I’ve marked your answer as the solution despite ultimately going another route, because I suspect future search engine voyagers will find yours most relevant.