An Alfred Workflow that allows you to control your physical graph through Alfred V2 (http://www.alfredapp.com)
#Keywords#
st_login
will take you through the login processst_logout
will destroy your auth tokenst_update
will collect the devices specified in all of your installed smartapp instances and update your local device cache.- This needs to be done every time you change permissions, rename a device, etc.
st
(without a space) will put thest_login
,st_logout
, andst_update
in the search list and allow you to select themst
(with a space) will display the devices specified in all of your installed smartapp instances- remember to use st_update first
st <command> <device>
will send<command>
to your<device>
- example:
st on lamp
will turn on your lamp
- example:
st <device> <command>
will send<command>
to your<device>
- example:
st lamp off
will turn off your lamp
- example:
#Currently Supported Devices#
- switch
- lock
#Currently Supported Commands#
- switch
on
off
- lock
lock
unlock
refresh
#Installing the most recent version#
- Download SmartThings.alfredworkflow
- double-click the
SmartThings.alfredworkflow
file to install it
#Updating the workflow#
- Open Alfred Preferences
cmd+space
(or whatever you have set to open alfred) followed bycmd+,
- In the
Workflows
section, selectSmartThings
, then select the-
at the bottom to remove the workflow - In the project directory, run the
bundle.sh
script - double-click the
SmartThings.alfredworkflow
file to install it
#Tips for developing#
###Finding the installed directory###
To find the installed directory, open Alfred Preferences
, double-click any of the script steps, and select Open workflow folder
from the bottom-right of the window.
###Logging###
Alfred doesn't give you any output that I know of. I have been creating an output.txt
file and writing my logs to that. The output.txt
file will be created in the installed directory
.
###Editing###
You may find it easier to make changes directly in the installed directory
because any changes you make there will be reflected in Alfred immediately. Just make sure you don't copy any generated files back to your git directory (or at the very least don't commit them). We like to keep things clean :)
If you do edit in the installed directory, backup your installed directory and update the workflow using the steps above one last time before committing and test thoroughly. You'd hate to have missed something.