"Home Feed" - Template (Motion, contact etc.)

Could anyone point me in the right direction for a ‘home feed’ template (not HACs, just a template)

For example, the default Template if changed from states.weather to states.sensor - I get a load, but ideally wanting to filter them.

{% for state in states.sensor -%}
  {%- if loop.first %}The {% elif loop.last %} and the {% else %}, the {% endif -%}
  {{ state.name | lower }} is {{state.state_with_unit}}
{%- endfor %}.

So will display something like…

“Last 30 minute Feed”

  • Hallway motion - 3 Minutes ago
  • Front door contact opened - 18 minutes ago

etc?

If you just want to display this information in the frontend, maybe the logbook card would work for you.

1 Like

Yep-ish :slight_smile:
Was hoping to do the exact same in a template form for the Android App Widget