Any way to combine auto-entities card with a card like logbook-card that supports multiple entities?

I am trying to have a logbook-card show all leak sensors that changed state in the last x hours.

A basic version of the logbook showing one of my sensors I am using for testing:

type: custom:logbook-card
desc: true
entity: binary_sensor.upstairs_bathroom_toilet_leak_sensor
title: Water Leak Sensors
style: |
  .card-header {
  font-size: 18px;
  padding: 2px 15px 2px 15px
  }
collapse: 5
show:
  separator: true
separator_style:
  color: black
  style: dashed

At auto-entities card that shows me all of my leak sensors:

type: custom:auto-entities
card:
  title: Water Leak Sensors
  style: |
    .card-header {
    font-size: 18px;
    padding: 2px 15px 2px 15px
    }
  type: entities
filter:
  include:
    - entity_id: binary_sensor.*_leak_sensor

I’d like to combine the two so that the logbook shows me all the applicable leak sensors without me have to list each one. Is that possible? I’ve tried a few permutations and can’t get it to work.

Edit: The style is just to format the card title so it looks like all the rest. Ideally I would also like to add a separator line right under the title. In my entities card I use:

entities:
  - type: section

EDIT2: Looks like logbook-card supports only a single entity. Is there a card that support multiple? I changed the title of the thread to reflect this…

This?

@tom_l I tried that card but it doesn’t keep the state in the log so if the sensor changes back to DRY, you will never see that it was WET. The only thing to go on would be the last change time but that is not reliable enough and I believe that gets set on reboot too.

This gets me closer but the fact the sensor detected moisture is far from obvious:

type: custom:auto-entities
card:
  type: logbook
  title: Water Leak Sensors Log
  style: |
    .card-header {
    font-size: 18px;
    padding: 2px 15px 2px 15px
    }
  hours_to_show: 24
filter:
  include:
    - entity_id: binary_sensor.*_leak_sensor

1 Like

any way to filter and see only when the state is on ?

Try custom logbook card.

I presume like so…

I was just looking on how to do it…

  - type: "custom:button-card"
    template: card_title
    label: "Automations"
  - type: custom:auto-entities
    card:
      type: "custom:multiple-logbook-card"
      square: false
      show:
        state: false
        duration: false
        start_date: false
        end_date: true
        icon: true
        separator: false
        entity_name: true
    filter:
      include:
        - domain: automation
          area: Living Room
          state: "on"

these days it’s kinda easy to quickly test auto entities by creating it in the ui and switching to yaml and copy/paste the code.

this didn’t actually do what I wanted it to do… I was thinking end_time was last triggered… but it’s not… I ended up just using regular logbook

I wanted to add at the bottom of every room the list of my automations that run in that room… I’m excluding the dimmers because they emmit zha_events that aren’t every readable in the log book… however the idle/wake automations are ideal… was hoping it’ll help me quickly tell what’s happening in a room…

  - type: "custom:button-card"
    template: card_title
    label: "Automations"
  - type: custom:auto-entities
    card:
      type: "logbook"
      hours_to_show: 12
      square: false
      show:
        state: false
        duration: false
        start_date: false
        end_date: true
        icon: true
        separator: false
        entity_name: true
    filter:
      include:
        - domain: automation
          area: Living Room
          state: "on"
      exclude:
        - domain: automation
          label: dimmer
        - domain: automation
          label: occupancy
    sort:
      method: name

This more or less does what I want now…