The Logbook card displays entries from the logbook for specific entities.
Screenshot of the Logbook card.
To add the Logbook card to your user interface, click the Lovelace menu (three dots at the top right of the screen) and then Edit Dashboard. Click the plus button in the bottom right corner and select Logbook from the card picker.
This is for if you use YAML mode or prefer to use YAML in the Code Editor in the UI.
type: logbook entities: - fan.ceiling_fan - fan.living_room_fan - light.ceiling_lights hours_to_show: 24