Problem with command_line sensor

Hello everybody!

After upgrading to 0.75 my command_line sensors just stopped working. Not just one, but all. I’m using HASSIO.
HA can’t run even this simple command.

  - platform: command_line
    name: ls
    command: "ls -la"

The error message:
Command failed: ls -la

I can run the command on cli, but HA can’t run them.
My $PATH variable:

core-ssh:/bin# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Try “echo hi” instead. Could be the working directory where the command is run is a directory that the HA user can’t access. Other than that can’t help you much since I don’t use HASSIO.

Thanks, but it’s the same:

  - platform: command_line
    name: echo
    command: "echo hi"

Command failed: echo hi

As best I can tell that error message happens when the command returns a non-zero exit status. Of course, “echo hi” probably shouldn’t be doing that, so it would seem to have more to do with the context HASSIO runs these commands in, which again, unfortunately, I know nothing about. You might want to start a new topic specific to your situation to which others with more pertinent knowledge might reply.