i am having problems getting shell commands to run. nothing at all will run
ive ran a test shell command from the front end and the file is not created:
shell_command:
test: touch /tmp/hass-shell-command-test
my actual scenario is running a CL program, sky-remote-cli
it runs perfect from the command line
i have added my homeassistant user to the sudo group…groups homeassistant
returns
pi@raspberrypi:~ $ groups homeassistant
homeassistant : homeassistant sudo audio gpio
my /etc/sudoers
has the following entry:
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
the CL program sky-remote-cli
is located at:
pi@raspberrypi:~ $ whereis sky-remote-cli
sky-remote-cli: /usr/bin/sky-remote-cli /usr/local/bin/sky-remote-cli
calling the shell command from a scripts does not work either.
i have a sky.yaml
located in a folder /.homeassistant/scripts/
sky_pause:
sequence:
- service: shell_command.sky_playpause
sky_power:
sequence:
- service: shell_command.sky_power
sky_record:
sequence:
- service: shell_command.sky_record
my original setup had my shell_command .yaml
files located in /.homeassistant/shell_command and my configuration.yaml
had:
shell_command: !include_dir_merge_named shell_command
i tried a whole load of different permutations for the shell_command .yaml
files, but nothing works.
im at my wits end with this!
if anyone can see something ive missed please put meout of my misery!!!