Get logbook
ha_get_logbookRetrieve human-readable Home Assistant logbook entries for a time range or one entity to see when events occurred, who triggered them, and affected entity IDs.
Instructions
Human-readable history entries ("Light turned on by automation"). Args: start (default: 1 day ago), entity (optional), end. Returns entries with when, name, message, entity_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ISO 8601 timestamp, e.g. 2026-10-17T00:00:00+07:00. End of the period. | |
| start | No | ISO 8601 timestamp, e.g. 2026-10-17T00:00:00+07:00. Start of the period. Defaults to 1 day before now. | |
| entity | No | Filter to one entity id |