Use a template to populate the entities in a logbook card

Hi home assistant community!

I’m having some trouble with a logbook card and I wondered if what I was trying to do was possible. I want to create a logbook card for all the entities associated with a specific integration, area or device, without having to manually update and maintain them. I tried to write a template to produce a list and add it to the card’s YAML, but it doesn’t seem to work. I’m not sure if that’s simply not supported, or if I’m doing something wrong.

The template is

{{ integration_entities('reolink')  | join('\n- ') }}

In developer tools it returns what looks like a correctly formatted list, but in the card editor I just get errors. Any help appreciated!

Like nearly all core cards templates are not supported.

Oh well, thanks for responding.

You could try this custom-card and see if it fits your needs:

Others have given the correct answer in this case, but I want to point out this template won’t work if you do find a place where you could use it. You can’t add a - in the output to make it a list. What this template is outputting is just one long string that visually looks like a list in YAML, but isn’t.

This alone already gives you a list:

{{ integration_entities('reolink') }}

Why not using auto-entities card?

type: custom:auto-entities
card:
  type: logbook
  hours_to_show: 2
filter:
  template: >-
    {{states.person | map(attribute='entity_id') | list }}

Add you own template here.

2 Likes