#Shell command - Action script.my_cmd uses action shell_command.my_cmd which was not found

1 messages · Page 1 of 1 (latest)

winged folio
#

From configuration.yaml

shell_command:
  my_cmd: ssh user@192.168.1.11 -i /config/.ssh/id_rsa 'mpv /media/alerts/alert16.mp3 &'

I've tested this command from the HA web terminal within the HA web interface, so I'm reasonably sure this command should work. I don't think it's a venv container thing - though I could be wrong.

I've written a script thusly:

action: shell_command.my_cmd

And I get the error message: Action script.cleanup_done_alert_sound uses action shell_command.cleanup_alert which was not found. Additionally, when I go to edit the script, the little dropdown entry box shows "Error in describing action: e.services[t] is undefined".

#

I also, by the way, did a "reload" to make sure that HA had read the current version of configuration.yaml

slender hemlock
#

That's a different shell_command

verbal mantle
winged folio
slender hemlock
#

If you just added the whole shell_command block, you need to restart HA

#

yes, the error is referencing a different shell_command

winged folio
slender hemlock
#

Read the names

#

Restart HA to be sure

winged folio
#

I'm not sure what you mean by "read the names"

slender hemlock
#

shell_command.my_cmd

#

uses action shell_command.cleanup_alert

#

not the same

winged folio
#

Oh, I had changed it when I posted to make it generic. "cleanup_alert" is indeed what it's called

slender hemlock
#

hard to assist when you're actually using something else

#

anyway, that's what the error is talking about

#

restart HA

#

nothing to do with teh command itself

winged folio
#

Yes, I did that, and the error went away. Thank you for your assistance. Sorry to change the name on you, again, I was trying to format it for the ease of people helping me.

slender hemlock