Workflow (iOS) - Quick SSH Commands for HASS

Hi

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 - http://image01.seesaawiki.jp/w/o/workflow-ios-memo/b3b98e495aa829f3.png

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…

4 Likes

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! https://workflow.is/workflows/3f1fc6335fa9457789ebca3243acca3f

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

Sebastian

Seems it’s being looked at - https://www.google.co.uk/amp/s/amp.reddit.com/r/workflow/comments/3vbpwe/questions_does_workflows_ssh_client_allow_for/

1 Like