Shell_command

I’m struggling with shell_command. The following doesn’t work:

intent_script:
  testing:
    action:
    - service: shell_command.play_sound

shell_command:
   play_sound: '/usr/bin/aplay /tmp/test.wav'

But if I change the last line:

   play_sound: 'touch /tmp/test.txt'

…it works as expected.

What am I doing wrong?

  • homeassistant is in the audio group, and I’ve tried without the explicit /usr/bin/

Not sure why it wasn’t before, but after messing around a bit, it’s working now… :roll_eyes: