Using IFTTT - Controlling my lights from Touch Bar.


Its very easy to add a button on your Touch Bar to control your "smart" lights, or anything IFTTT can control. Im not going through all the setup unless people are interested, but here's a quick synopsis.

  1. Create your IFTTT "applet" using a Webhook control.
  2. Take note of your Webhook key {your key} in your IFTTT account, and the name you gave your applet {event}.
  3. Create your BetterTouchBar Button with the following AppleScript.

return do shell script "curl -X POST{event}/with/key/{yourKey}"

A full writeup can be found here: