Any difference between Hassio and regular HASS as far as shell commands?

Is there any difference between Hassio and regular HASS as far as shell commands? I’ve got a shell command (a wget) that works fine on my dockerized HASS install, but the exact same command seems to be hanging or not executing correctly in a HASSIO install.

I can run the command directly in SSH on the Hassio Pi, but the same command won’t execute on an automation.

A Hassio image runs on a HassOS hypervisor designed for Hassio. You can also install Hassio on Raspbian or any other Debian-based Linux.
One of Hassio’s docker containers is for HASS. It is not running natively on the host OS though.
HASS in a python venv runs on the host OS. A HASS docker installation does not.

The automation is not running on the host OS directly. The container only contains what is needed to run Home assistant.

Any walkthrough on installing something like wget inside the hassio container?

wget works in the hassio container so far as I know. Have you tried running a console in the home assistant container and trying there? Easiest way (or at least how I do it) is by using portainer and opening a console in the Home Assistant container. Running something in the ssh container (like you do when you ssh in) isn’t the same as how Hassio will run it. You could also shell out of the hassio container in your bash script and then run in the ssh container or on the host (if you’re not using HassOS)

I just checked and you can definitely wget in the Home Assistant container. (I run hass.io on a generic linux install on Debian)

I’m using hassio on a pi. When I SSH into the pi, I can run wget from that terminal. But for some reason when the identical shell command is run from an automation it’s not working (it’s not pulling a URL jpg into a file)

so again, test the shell command in the home assistant container - NOT the ssh container/addon… it has to work in the Home Assistant container for it to work in a shell command

Even if you install something in the home Assistant container it would be gone after an upgrade. Upgrades replace Docker containers.

I’m not suggesting he install anything in the HA container… just using that to test if his shell command works. If it works in the container in a console then the shell command will also work

1 Like

I was referring to the earlier post about how to install in the container.
If you do not need addons, I personally think the overhead of running Docker on a limited CPU is of little value since some people find them underpowered for the job anyway.

I actually found running a generic Linux install of hassio over Raspbian performed better than HassOS/Hassio when I was running that before I got my NUC. It was pretty snappy.