Workflow (iOS) - Quick SSH Commands for HASS


I’m a big fan of the Workflow app ((on iOS) and it has a great feature where you can create (Worflow) SSH actions for specific tasks.

Here is an screen shot of the SSH template provided in the app -

I’m in the process of creating a Workflow that will prompt you with what you want to do and then execute it for you.

To help with that can anyone think of the best Home Assistant SSH commands you would just like to run at a click of a Workflow button (removing the need to open up your favourite terminal app etc) ?

So far I have the following.

  1. sudo systemctl restart home-assistant
  2. sudo reboot
  3. cat /home/homeassistant/.homeassistant/home-assistant.log

All other suggestions welcome…


Cat the home-assistant.log assuming you could return the results.

This is a great idea Btw.

Done, it would be this.

cat /home/homeassistant/.homeassistant/home-assistant.log

And with Workflow , now that you have the log file in memory, you can look to analyse it :slight_smile:

Im also intrested in this. Im looking for a way to toggle a input boolean or sutch. Great finding btw!

For those interested in what the Workflow iOS app brings…

I have updated my Workflow so it automated a few things - first it restarts the home assistant service and then after waiting five seconds it will pull up and present me with the log so I can see what might of failed.

And to make these restarts even easier to do - the workflow is set to be run via a single click from a HASS Restart button I’ve added to the iOS today screen .

1 Like

Yeah I finally also got some buttons working. Maybe its a good thing to show off some configurations/ workflows for other users?

Check out the workflow I built!

Is there a way to use SSH with public key authentication in Workflow?


Seems it’s being looked at -

1 Like