Running SSHCommand makes HA unresponsive

Hi there!

I’m using the SSHCommand for Home Assistant integration via HACS to shutdown my MagicMirror via an automation at night.
I’ve set up the ssh keys and the automation triggers correctly, but everytime the script is running HA get’s unresponsive and catches back up a few minutes later.

Running on Supervisor 2023.07.1 on a Pi3

Script looks as below:

alias: Shutdown MagicMirror
sequence:
  - service: ssh_command.exec_command
    data:
      host: 192.168.179.35
      user: magicmirror
      pass: *mypassword*
      command: sudo shutdown -h now

Running the script in the automation using script.turn_on

  - service: script.turn_on
    data: {}
    target:
      entity_id: script.1689526983555

Help would be really appreciated! :slight_smile:

Nevermind, I misread the documentation and didn’t see that you don’t need to run it as a script, but can call it directly from the Actions within the automation.