Update Slack Status from SmartThings


#1

Here is an example of updating your Slack chat status and presence using SmartThings instead of IFTTT. If you use more than one Slack this piston is very useful, as in IFTTT you are limited to a single Slack instance connection per IFTTT account.

In my example I’m updating 8 Slack instances. Each Slack instance you add under the tokens array requires you to generate a unique legacy token, which you generate here:

Thanks to @ipaterson for help getting this working!

Improvements welcome and appreciated!

UPDATE 11/29/17: More efficient FOR loop to cycle through multiple slack instances. Replaced GCAL Calendar Search contact sensors with location modes.


Debugging Slack Web Requests
Debugging Slack Web Requests