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.
ssh [email protected] /sbin/poweroff
But when pressing the switch nothing happens and I get this error message in the log file:
Error running command: `ssh [email protected] /sbin/poweroff`, return code: 255 NoneType: None
This is exactly the same error as this guy has. But I don’t understand what he did to fix it.