How do I build a Smart Home through IFTTT?

How do I build a Smart Home through IFTTT?

Details

By combining Surveillance Station Action Rule with IFTTT (if this, then that), you can build a Smart Home with just a few clicks. Smart bulbs can be turned on when motion is detected, and front-door security cameras can start recording when the lock is opened.

Resolution

Use IFTTT services as the Action Rule trigger

This section takes sending emails when Surveillance Station enters Home Mode as an example:

  1. In Surveillance Station, launch Action Rule and click Add.
  2. Follow the instructions provided by the Add Action Rule Wizard and fill in the required information.
  3. In the Action window, select either IFTTT or Webhook as the Action Device.
  4. From your browser, go to the IFTTT website, sign in, and click Create. 1.png
  5. Click If This. In this example we will use Webhooks to create an event as the trigger. 2.png
  6. Enter an event name to create a trigger. 5.png
  7. Click Then That to choose an action (e.g., send an email). Complete the action fields to create an action service. 6.png
  8. Click Continue to review your newly created Applet and finish.
  9. Once your new Applet is created, go to IFTTT webhooks, click Documentation and find the key and URL. You can enter value parameters if needed, and click Test It to try the connection.
    8.png
    9.png
  10. Go back to Action Rule on Surveillance Station.
    • If you selected IFTTT in Step 4, enter the following:
      • Key: Enter the key found in the Webhooks documentation page.
      • Event: Enter the event name you used to create the IFTTT applet (see Step 6).
      • Value 1 to Value 3: (optional) Fill in if needed.10.png
    • If you selected Webhooks in Step 4, enter the following:
      • URL: Enter the URL found in the Webhooks documentation page. Replace {event} with the event name.
      • Username: Enter the username of your IFTTT account.
      • Password: Enter the password of your IFTTT account.
      • Method: HTTPS (Hypertext Transfer Protocol Secure) is used for requests and responses between clients and servers. You can choose from the following methods:
        • Auto: A GET request will be sent first; if it fails a POST request will be sent next.
        • GET: Requests data from a specified resource. As it can be cached and will remain in the browser history, it is not suitable for processing sensitive data.
        • POST: Sends user-generated data to a server. Data will be enclosed in the body of the request message.
        • PUT: Sends data to a server to create or update a resource. It completely overwrites what currently exists at the target URL.11.png
  11. Click Test Send to check the connection and click Next.
  12. Set up the Schedule and finish the setup.

Use IFTTT services as the Action Rule event

This section takes triggering recording when a door lock is opened as an example:

  1. In Surveillance Station, launch Action Rule and click Add.
  2. Follow the instructions provided by the Add Action Rule Wizard and fill in the required information.
  3. In the Event window, select Webhook as the Event source, copy the Webhook URL and click Next.1
    12.png
  4. From your browser, go to the IFTTT website, sign in, and click Create.
  5. Click If This and select the appropriate service.
  6. Click Then That and select Webhooks as the action service. Use the Webhook URL copied from Action Rule to set the Webhooks as the action service.17.png
  7. Go back to Action Rule on Surveillance Station. Modify the required settings and click Next.
  8. Set up the Schedule and finish the setup.

Notes:

  1. The webhook URL generated by the system uses the current login URL. If you want to integrate with external services, ensure that the webhook URL you are using is accessible by those external services.
Details
Contents
Resolution
Use IFTTT services as the Action Rule trigger
Use IFTTT services as the Action Rule event