Search
MENU
  • Expressions
  • System architecture by project type
  • Users and Permissions
  • Siri Shortcuts and Android widgets

    “Hey Siri, Open garage”

    TapHome Control Unit keeps open secured connection with Cloud server, enabling instant remote control of user-defined devices via URL calls. It is possible to perform predefined actions very quickly, without having to open TapHome app, or even without unlocking the phone (Siri).

    Security precautions

    Each of these web requests must contain security token, so that it is not accessible to hackers. Make sure to never expose this token on internet, or send it via unsecured communication. If you have suspicion that somebody might have access to this token, make sure that you change it immediately.

    Enabling Cloud API on Core

    Open Settings → Expose Devices and add new interface: Cloud API.

    Define which devices you want to control this way. Please be aware, that whoever knows your security token, can also control all the devices that you defined here.

    Open the device from the list. It will show you example URL requests for typical actions that can be performed with this device.

    E.g. push button to open garage door:

    Click on it to copy this URL it to clipboard.

    To adjust the content of the URL, see more technical details about Cloud API

    iOS: Siri shortcuts

    1. Open (or install) app Shortcuts by Apple
    2. Select Create a shortcut
    3. Select Add action
    4. In the first section, select Web
    5. In section Web Requests, choose Get Contents of URL
    6. Paste the URL that you copied into clipboard in TapHome App → Expose Devices → Cloud API
    7. Set the name of the shortcut. Save it

    1. You can test your shortcut by pressing the play button in the right bottom corner, or by saying “Hey Siri,” with name of your shortcut. E.g. Hey Siri, Open Garage!

    Android: Custom widgets

    1. Download 3rd party app, that enables sending HTTP requests, e.g. HTTP Request Shortcuts. More info about this project can be found on GitHub
    2. In the app, create a New shortcut, set its name and icon
    3. In Basic Request Settings, select GET method and paste the URL from TapHome app
    4. Optionally, you can also change Response Handling to “Response in Toast (errors only)”
    5. From context menu, select Place On Home Screen
    6. Now you should see your shortcut on home screen of your phone