SMART

async OPNsenseClient.get_smart(*, details=True)

Return SMART device data from the OPNsense SMART plugin.

Parameters:

details (bool) – Whether to request the detailed SMART device list.

Returns:

SMART device rows normalized to dictionaries

that always include a device key when a usable device name is available.

Return type:

list[dict[str, Any]]

async OPNsenseClient.get_smart_info(device, info_type='a')

Return SMART detail data for a single device.

Parameters:
  • device (str) – SMART device name, such as nvme0 or ada0.

  • info_type (str) – SMART info selector supported by the plugin.

Returns:

Decoded SMART detail payload. Non-mapping outputs

are wrapped under output to preserve a stable mapping API.

Return type:

dict[str, Any]