Logbook card

The logbook card displays entries from the logbook for specific entities, devices, areas, and/or labels.

Screenshot of the logbook card Screenshot of the logbook card.

To add the logbook card to your user interface:

  1. In the top right of the screen, select the edit button.
    • If this is your first time editing a dashboard, the Edit dashboard dialog appears.
      • By editing the dashboard, you are taking over control of this dashboard.
      • This means that it is no longer automatically updated when new dashboard elements become available.
      • Once you’ve taken control, you can’t get this specific dashboard back to update automatically. However, you can create a new default dashboard.
      • To continue, in the dialog, select the three dots menu, then select Take control.
  2. Add a card to your dashboard.

Card settings

Target

The entities, devices, areas and labels whose logbook entries will show in the card. See target selector for more information.

Title

The title that shows on the top of the card.

Hours to show

The number of hours in the past that will be tracked in the card.

Theme

Name of any loaded theme to be used for this card. For more information about themes, see the frontend documentation.

YAML configuration

The following YAML options are available when you use YAML mode or just prefer to use YAML in the code editor in the UI.

Configuration Variables

type string Required

logbook

target map Required

The target to use for the card.

title string (Optional)

Title of the card.

hours_to_show integer (Optional, default: 24)

Number of hours in the past to track. Minimum is 1 hour. Big values can result in delayed rendering, especially if the selected entities have a lot of state changes.

theme string (Optional)

Override the used theme for this card with any loaded theme. For more information about themes, see the frontend documentation.

Examples

type: logbook
target: 
  entity_id:
    - fan.ceiling_fan
    - fan.living_room_fan
    - light.ceiling_lights
hours_to_show: 24
type: logbook
target:
  area_id: living_room
  device_id:
    - ff22a1889a6149c5ab6327a8236ae704
    - 52c050ca1a744e238ad94d170651f96b
  entity_id:
    - light.hallway
    - light.landing
  label_id:
    - lights