Shell_command - timeout override settings

Hey there,

in this thread: shell_command running into timeout i mentioned my issue with the shell_command running into timeout after 60 seconds and terminating the running process.

I dont exactly know the reason, why this timeout was implemented. But it would be nice to have an option, to overide the 60s with another value for one or all configured shell_commands.

Thanks and have a nice one

Yes! This!

This would be great. :slight_smile:

I fully understand Home Assistant needs to set a limit to avoid pending script although, it would be good to be able to set this value (they could still hardcode a maximum value) or at least document it.

By the way, my testing shown that:

  • the script time limit is 10s
Executed: July 22, 2023 at 12:39:04
Result:
params:
  domain: shell_command
  service: workshop_esp32cam_mp4_script
  service_data: {}
  target: {}
running_script: false
limit: 10
  • the script is not killed if it runs longer than 10s. The automation simply runs the next action (which defeats the reason why there would be a time-out).