I have a shell command that uses rclone to backup my configs to an encrypted GDrive folder. The script works fine, I also have a cron job of it that works fine. However I also want the ability to call it manually in home assistant.
The simplest way is to try and run the command as homeassistant user, within the virtual environment if you have one set up. Alternatively, use the command line command ls -l to display the permissions on files and directories.
But in your case, as I said in the other thread, user homeassistant does not have sudo permissions, so that command will not run. Fortunately for you, systemctl status does not need sudo permissions and you can change the command to