Desperate! Command Failed Switch sh script

Hi

I am completely desperate… I have tried everything and I have read lots and lots of posts without any success.

I just want to execute a simple sh script from a command line switch. My lines in the configuration.yaml are:

  • platform: command_line
    switches:
    tv_status:
    command_on: “/home/test.sh”
    command_off: “/home/test.sh”

I have simplify my sh to a file calles “test.sh” with just:

#!/bin/bash
ls -la

Of couse, the script works in the ssh web terminal.

I have tried everything. I have tried to change test.sh permisions to 777. I have read something about the owner of the file but I have not found any user to assign the property of the script (homeassitant, hassio, HA).

Please help!!. I am at one step to give up and choose any other platform.

Thank yo very much in advance!!!