z2m_list_devices
List Zigbee devices with administrative detail and filter by type, availability, or problems. Sort by battery or link quality to identify weak-signal or offline devices.
Instructions
List Zigbee devices with administrative detail: type, model, vendor, power source, link quality, battery, availability, last_seen, interview state and pending OTA updates. Read-only, though collect_seconds will wait before answering. Use this to answer 'which devices are offline' or 'which have the weakest signal'. Prefer z2m_health_report for a prioritised summary of everything wrong at once, and z2m_get_device when you need one device's exposes, options or bindings. Returns {total, returned, capabilities, devices[]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by Zigbee device type. | |
| limit | No | Maximum number of devices to return. | |
| search | No | Case-insensitive substring match on name, model, vendor or description. | |
| sort_by | No | Default friendly_name. Numeric sorts are ascending, so weakest/lowest first. | |
| has_update | No | Only devices with a pending OTA firmware update. | |
| availability | No | ||
| only_problems | No | Only devices that are offline, disabled, unsupported, mid-interview, weak-signal or low-battery. | |
| collect_seconds | No | Listen for live device traffic for this many seconds before answering, to populate linkquality, battery and OTA fields that Zigbee2MQTT does not publish as retained messages. Max 120. |