How add Siri voice control to any smart device (*)


There are a lot of smart devices out there these days that are compatible with Alexa, Google Assistant or HomeKit, although most of them only offer support for Alexa or Google Assistant. A lot of them also support IFTTT, an integration platform for end users. If you have an iPhone and a smart device with IFTTT but no HomeKit support, this article is for you. I’ll show you how to add Siri voice control for your device without extra hardware.

In short, these are the steps:

  1. Connect your smart device in IFTTT
  2. Add the Webhooks service in IFTTT
  3. Create an applet in IFTTT that is triggered by Webhooks and controls your device
  4. Create a Shortcut on your iPhone that triggers the IFTTT applet you created at step 3.

 

And here are the above steps in detail:

1. Connect your smart device in IFTTT

IFTTT is an iOS app you can install that allows you to link two different apps. It’s simple and a lot of manufacturers support it.

After your account is set up, follow your device’s instructions for adding support for it inside IFTTT. Basically you securely connect the manufacturer’s service to IFTTT.

2. Add the Webhooks service in IFTTT

Webhooks is a service made by IFTTT that can serve either as a trigger or as an action. Trigger example: an external app calls a url. Action example: IFTTT calls a custom url from an external service.ifttt-webhooks

To add it, just search for it inside IFTTT and activate it. You will get a url with an API key that you can access in your browser to see an example of how to use it. The final URL that you will use at step 4 looks like:

https://maker.ifttt.com/trigger/{garage_door}/with/key/{your_own_ifttt_webhooks_key}

3. Create an applet in IFTTT 

Webhooks based applets cannot be shared, so you will need to create this applet yourself, but not fret, it only takes a minute: start a new applet, then add webhooks as the trigger. Set the Event Name field to your custom word, something like garage_door – this will be used in the call from the Shortcuts iPhone app.

In the action for this applet, add the service for your device (you configured this in step 1).

4. Create a Shortcut on your iPhone

Shortcut is an app made by Apple. You can find it and download it in the AppStore. Then create a new shortcut with the following two steps:

  • URL
  • Get Contents of URL

In the first step, you paste the url in step 2.

For the shortcut settings, you give it a name and set the Siri phrase to invoke it.

 

That’s it! You can now run your shortcut to test it and then ask Siri to run it!