Shell Command Frustrations

So I’ve taken the plunge and installed Hass.io on a new SD card. Everything seems to be up and running that I have configured so far, so that is great. Seems so simple and some of the add-ons are great!!

One limitation that I’ve come across so far is that I’m unable to run Shell Commands. Now, this comes as no surprise as to how Hass.io is set up, and not having access to the core system, but I would have thought that I’d be able to run some commands at least. Seems I can only run the hassio command via terminal.

One command that I really would like to get back up is to remotely put my media server to sleep every night after people go to bed. The automation is fine, I just can’t run the shell command.

Previous I had a shell command with ssh [email protected] sudo systemctl hibernate , but running that gives me an error

Error running command: `ssh [email protected] sudo systemctl hibernate`, return code: 255
11:29 AM /usr/local/lib/python3.6/site-packages/homeassistant/components/shell_command.py (ERROR)

I spent many hours last night looking into this and everything that I’ve found seems to relate to docker and ResinOS, but any tutorial I use just doesn’t work. Given that Hass.io is now running its own OS, HassOS, would things be different and there be a different way to do shell commands?

Thanks for any help. As much as I love Hass.io, it seems rather limited for power users and I might end up going back to my old SD card with HA and a virtual environment on Raspian.

im not really sure about my statement, but i had to put my user in sudo group to do that.

The sudo that is in that command of mine above is on the remote system. I just need to be able to run a shell command from Hass.io and have it actually run. In this case ssh to the remote system.