However, the sensor always fails with the following error:
/bin/sh: my_script.sh: not found
2020-08-16 19:06:05 ERROR (SyncWorker_1) [homeassistant.components.command_line] Command failed: my_script.sh
If I change the command to pwd or ls I can see the working directory for the command is /config and in the ls output I can see my_script.sh listed. I’m clearly missing something very basic here. Note - I’m running home assistant in docker under Ubuntu if that’s important.
Any help or pointers would be much appreciated. Thanks in advance!
Sorry, the script is actually named something else. That’s just a typo in my effort to sanitize for my post here. The real script name matches up with filename in sensor config.