NUT

async OPNsenseClient.get_nut_ups_status()

Return UPS status data from the OPNsense NUT plugin.

Returns:

Decoded NUT UPS status payload, an empty

dictionary when the endpoint is missing (HTTP 404), or None when the request fails or the response body is unusable. With throw_errors enabled, request and decoding errors propagate, and a decoded non-mapping body returns an empty dictionary.

Return type:

dict[str, Any] | None