I’m not sure if you can reference a shell command in a separate directory than your config directory. Try moving the actual command to your shell_command file and run it again.
And how are you running it? Those script or automations won’t run without something to trigger them.
So seems that as long as the command is in your path it will find it. I also noticed that reloading scripts and reloading core wasn’t enough, I had to restart the server for any changes made to configuration.yaml
As for running it, I’m just clicking the activate button in the web guide
If you use shell_command to launch a bash script, you may need to use absolute paths to your commands. For example:
#!/bin/bash
date >> /tmp/test.txt
the above command fails with a “return code: 127” error in the home-assistant.log which means command not found. It will create the file, but not write anything to it.
I am trying to implement a solution to restart automatically appdaemon service (HA Dashboard) in case it crashes (That has happened several times since I implemented the solution). I have found the way to read the status of appdaemon service with a command line:
Just in case, maybe someone will help.
If, as a result, an error occurs during the execution of the external shell_command, then as an option this arises due to a lack of rights to run.
An error like this or so: