I have a machine running Home Assistant OS 18.1 and Home Assistant Core 2026.7.4.
Here I am trying to get iperf3 to work against a remote server, in configuration.yaml I have added the following;
iperf3:
hosts:
- host: lg.gigahost.no
port: 9201
parallel: 2
monitored_conditions:
- download
- upload
scan_interval: '01:00:00'
This gives me the following error message;
Logs: homeassistant.components.sensor
Source: helpers/entity_platform.py:1085
Integration: Sensor (documentation, issues)
First occurrence: 11:23:15 (1 occurrence)
Last logged: 11:23:15
Logger: homeassistant.components.sensor
Kilde: helpers/entity_platform.py:1085
Integration: Sensor (dokumentasjon, problemer)
Første forekomst: 11:23:15 (1 forekomst)
Sist logget: 11:23:15
Error adding entity sensor.upload_lg_gigahost_no for domain sensor with platform iperf3
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 728, in state
numerical_value = int(value)
ValueError: invalid literal for int() with base 10: 'unknown'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 731, in state
numerical_value = float(value)
ValueError: could not convert string to float: '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 1085, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1446, in add_to_platform_finish
self.async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1061, in async_write_ha_state
self._async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1213, in _async_write_ha_state
) = self.__async_calculate_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1119, in __async_calculate_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1067, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 735, in state
raise ValueError(
...<5 lines>...
) from err
ValueError: Sensor sensor.upload_lg_gigahost_no 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'>)
Home Assistant won’t create Entities or anything, and I’ve tried different servers and ports.
I’ve tried several days now with different solutions without success, is there anyone out there who can help me?
The host lg.gigahost.no works great if I test from Windows and similar.