Command_line : bin file returns command failed on logs

Hi,

Have an Generic x86-64 HomeAssistant (HA) Operating System which I am able to run a bin file (with json output) from CLI correct… i.e:

[~]$ /usr/bin/speedtest.bin --f json-pretty --accept-license
speedtest.bin_cli-output

but when attempting to launch same bin file from the configuration.yaml, it returns the below error on HA Log File:

Command failed: /usr/bin/speedtest.bin --f json-pretty --accept-license

Below sample excerpt from configuration.yaml (check configuration is valid on HA) but am unsure if I am missing a step:

— configuration.yaml —
sensor:

  • platform: command_line
    name: Speedtestdotnet-download
    command: ‘/usr/bin/speedtest.bin --f json-pretty --accept-license’
    value_template: “{{ value_json.download[‘bandwidth’] }}”
    command_timeout: 30
    scan_interval: 1800

Is there anything I am doing incorrectly?

The “/usr/bin” of the SSH addon is not the same as the one of HA itself.
Maybe try to put the executable under “/config”

Thanks Koying - working as expected now.