iperf3 sensor component allows you to measure network bandwidth performance against a private or public Iperf3 server.
By default, it will run every hour. The user can change the update frequency in the config by defining the minute, hour, and day for a iperf3 test to run.
To add the
iperf3 sensor to your installation, add the following to your
Once per hour, on the hour (default):
# Example configuration.yaml entry sensor: - platform: iperf3 host: iperf.he.net monitored_conditions: - download - upload
(list)(Required)Sensors to display in the frontend.
(string)(Required)Specify the Iperf3 test to perform the test against.
(int)(Optional)Specify the test duration in seconds. Default is 10 and the valid range is from 5 to 10.
Default value: 3
(int)Specify the number of concurrent streams to connect to the server. Default is 1 and the valid range is from 1 to 20.
Default value: 1
(string)(Optional)Specify the protocol to be used on the test. Default is TCP and the valid values are TCP or UDP. If your Iperf3 server is located in the Internet, consider to use TCP instead of UDP. If the protocol is set to use UDP, the sensor may not get updated due to package retransmission issues due to its nature.
Default value: tcp
(int)(Optional)Specify the frequency in seconds which the test will be perfomed. Default value is 1 hour.
Default value: 3600
The frequency when the test will be automatically triggered can be adjusted by setting the value
scan_interval in seconds.
Parallel streams can help in some situations. As TCP attempts to be fair and conservative, you may consider increasing the
parallel attribute. Use this value with careful and refer to Iperf3 man page for more information.
You can use the service
sensor.iperf3_update to trigger a manual speed test for all sensors. Iperf3 has its own service call that allow to perform a speed test on a particular entity.
|Service data attribute||Description|
||String that point at
- When running on Raspberry Pi, just note that the maximum speed is limited by its 100 Mbit/s LAN adapter.
- This component requires the
iperf3command to be installed on your OS. Please, refer to the official Iperf3 documentation for installation instructions.