z2m_get_logs
Retrieve Zigbee2MQTT bridge logs and lifecycle events to diagnose pairing failures and rejoin loops. Filter by severity or text, or watch live for new lines.
Instructions
Read Zigbee2MQTT bridge logs and lifecycle events (device_joined, device_interview, device_leave, device_announce). Read-only. Returns buffered history by default; watch_seconds instead blocks for that many seconds collecting new lines. Logs are only captured while this server is connected, so history may be empty on a fresh start — use watch_seconds then. Use to diagnose pairing failures and rejoin loops; prefer z2m_health_report to find which devices are affected in the first place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Minimum severity. Note: Zigbee2MQTT never publishes debug lines to MQTT. | |
| limit | No | Maximum lines to return. Default 100. | |
| contains | No | Only lines containing this substring (case-insensitive). | |
| watch_seconds | No | Collect new lines live for this many seconds instead of returning buffered history. Max 120. | |
| include_events | No | Include bridge lifecycle events. Default true. |