Logbook as a state card

I would love to be able to add a state card working as a logbook for a selection of entities

Exemple : if I have an “alarm” view of my house I could display a card with all logs relative to entities I selected (door sensor, state update, …)

This would able to create as many custom logbook as needed under the logbook component with including/excluding entities or domain

logbook:
  CUSTOM_LOGBOOK:
    include:
      entities:
        - sensor.front_door
        - sensor.alarm_status

Then they could also be used as a service:

script:
  add_custom_logbook_entry:
    alias: Add line to custom logbook
    sequence:
      - service: logbook.CUSTOM_LOGBOOK.log
        data_template:
          name: Front door
          message: is being opened

Addition: exemple of having logs display in a UI view

  alarm_tab:
    name: Home alarm
    view: yes
    entities:
      - logbook.CUSTOM_LOGBOOK

Additionally the current logbook should be reviewed sice the loading time is terrible. It might happen that the logbook state cards to hag the frontend for a lot of time until they load.