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!