Speedtest returned non-zero exit status 1

I installed 0.18.2 on rpi3 and cannot get Speedtest to work. It shows Unknown on HA but works when I type in speedtest-cli in terminal. My log shows this:

homeassistant.core: BusHandler:Exception doing job
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 801, in job_handler
    func(arg)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/event.py", line 176, in pattern_time_change_listener
    action(now)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 169, in _update_entity_states
    entity.update_ha_state(True)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 145, in update_ha_state
    self.update()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/speedtest.py", line 79, in update
    self.speedtest_client.update()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/util/__init__.py", line 289, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/speedtest.py", line 107, in update
    '--simple']).decode("utf-8"))
  File "/usr/lib/python3.4/subprocess.py", line 620, in check_output
    raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '/usr/local/lib/python3.4/dist-packages/speedtest_cli-0.3.4-py3.4.egg/speedtest_cli.py', '--simple']' returned non-zero exit status 1

Any ideas what I did wrong?

If you could include that part of your config it would be easier to try and help you :slight_smile:

@Landrash Thanks :slight_smile:

My config shows Speedtest to run every half hour:

sensor 1: platform: speedtest minute: - 0 - 30 monitored_conditions: - ping - download - upload

I have two other sensors named respectively:

sensor 2 sensor 3

I tried troubleshooting myself by removing sensor 2 & 3 and renaming the Speedtest sensor to sensor but that still showed Unknown on the front-end. I even installed Jessie on a new SD called with HA and it still didn’t work. I used the following for installation of Speedtest:

sudo apt-get install python-pip
sudo easy_install speedtest-cli

Again, this works in terminal but not on HA :anguished:

Looks like your server ID is missing. You can choose one from this site. https://www.speedtest.net/speedtest-servers.php