- Yeah, wired on a 1Gbps port. Virtualized in VMware though, so there might be some overhead there. I recently moved from the e1000 driver to the vmxnet3 driver, which theoretically should be able to do up to 40Gbps.
- Yeah, on the laptop itself using proof.ovh.net i get 940Mbps or so.
- 1Gbps connection, see above.
- Mmm, around 20% i suppose.
- Yeah i tried a few different ones, but i’m a bit put off that i keep getting connection refused and stuff like that. I guess they are just very popular.
That’s a pretty good result for a Pi4! I suspect in my case it’s the virtualisation overhead, as the iperf results i did get previously were also around the speedtest (with the add-on that’s out there that aims to improve speeds) reports.
If you put the configure to manual though, does the service call still use the port and parallel arguments that are in the configuration.yaml ? As one can’t these in the developer tool service call. I’m thinking i will just use manual and call it myself several times per day rather then use the scan_interval option. But for that obviously the service call does need to take those arguments in consideration.
As i keep getting operation timed out. I did read something interesting though:
| Service data attribute | Description | | `host` | String that point at a configured `host` from `configuration.yaml` . Otherwise, tests will be run against all configured hosts.
It seems i can have different entries in configuration.yaml, and then i could call the service call without host arguments and it should start iperf client sessions on all configured hosts.
Edit: Forget that, that doesn’t work like it’s described.
Should this work for multiple hosts?
iperf3:
monitored_conditions:
- download
- upload
scan_interval: '00:30:00'
hosts:
- host: iperf.par2.as49434.net
port: 9202
parallel: 2
- host: proof.ovh.net
port: 5201
parallel: 2
manual: false
As i get this error upon startup, i don’t know if this is because it can’t reach them or ?
Error adding entities for domain sensor with platform iperf3
Error while setting up iperf3 platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 590, in state
numerical_value = int(value)
^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'unknown'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 504, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 788, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1006, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 742, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 810, in _async_write_ha_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 748, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 594, in state
raise ValueError(
ValueError: Sensor sensor.download_iperf_par2_as49434_net has device class 'data_rate', state class 'measurement' unit 'Mbit/s' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)