I configured 3 switches to turn on 3 NAS devices. That part works just fine.
But the shell_command to turn off the NAS devices doesn’t work.
The problem I have with this documentation is:
On the server , log in as the user account Home Assistant is running under.
I’m running Hass.io so I can only ssl as root.
I generated the private keys and I can run the ssh command just fine logged in as root.
Take the backtick off the end of the command. That was the solution for using ssh automations.
Also, you should make sure you put the keyfile someplace like /config where it’ll persist since Hass.IO is containerized, everytime you upgrade it’ll go away. Then your ssh command would look like this: