Hass.io has issues with shell commands see
https://www.home-assistant.io/hassio/run_local/
I wrap shell commands in python wrappers see