I’m having problems accessing the hass.io gui and need to do some restarts from the command line, but I cannot find the hass command referenced here
anywhere. I don’t see it on the base Ubuntu machine, in the hass.io supervisor container, or in the homeassistant container. I followed the standard hass.io on linux install instructions from here
and so far everything has worked fine as long as I was managing it from the GUI (which is not an option now).
Any ideas? Can I install this cli tool separately?
No, I have SSH set up directly to the host machine… I thought it would be enough… I can get a command line to the host machine, supervisor, or homeassistant containers. Does it set up some other mysterious virtual environment if you use the SSH addon?
This is the correct answer; I just did it last night as a matter of fact and it worked flawlessly. Install the OpenSSH add-on, set the password then port to 2222 (instead of 22). In your ssh client of choice, ensure you change the port to 2222, punch in the IP of your ubuntu host and it’ll map the session straight to the Hass.io CLI.
What exactly am I sshing into if I install the SSH addon if it’s not the homeassistant or hass-supervisor containers or base Ubuntu system? I don’t really relish the idea of 2 different ssh daemons running on my system, and I’m not sure that this would even work without mapping ports out of the docker container… But I suppose I will try it…
it creates another docker container that hosts the hassio-cli environment and sends commands to the main homeassistant instance. It does seem a little heavyweight for that, but that’s how it works.
I was poking around in the source code for hassio-cli today for something else, but I guess you could just build it yourself and use it from anywhere.
Okay, that makes sense then… Thanks for the clarification, it’s always nice to have some idea what you are actually doing when you do things ;-).
Unfortunately as I had to just bounce the homeassistant docker container in the absence of any better method to get it to accept a new config to get access to the gui again, now my hass.io menu has disappeared so no add-on action until I bounce the whole server (unless you know how to get it reconnected to the hassio-supervisor)…
It’s not in the supervisor. That was my first thought as well, but you can start a shell in that container and it’s nowhere to be found. It really does create another Docker container for it as part of the ssh add-on installation.