Speedtest

async OPNsenseClient.get_speedtest()

Return the latest and average Speedtest result summaries.

Returns:

Mapping with available plus last and

average sections for download, upload, and latency. Latest results include server, date, and URL metadata; averages include min, max, sample count, and period bounds. Returns {"available": False} when the plugin endpoint is missing.

Return type:

dict[str, Any]

async OPNsenseClient.run_speedtest()

Start a Speedtest run and return the raw run response.

Returns:

Response mapping from the Speedtest run

endpoint, or an empty mapping when the plugin endpoint is unavailable or returns a malformed payload.

Return type:

dict[str, Any]