While dedicated control systems offer robust features, sometimes you just want simple, direct control over a device. Discover how to create an iOS Shortcut that lets you bypass your control system entirely for quick actions, or serves as a powerful supplement to your existing system.
In this article we'll learn how to import an Apple Shortcut, and configure it for controlling a Global Caché device for simple IR commands.
This guide is applicable to Infrared units that implement our HTTP RESTful API. This includes:
- iTach Flex
- Global Connect (IR modules)
Step 1: Download the Shortcut
The Global Caché IR Command Shortcut can be downloaded here:
https://globalcache.box.com/s/1yx19s6rz2ai3c9hbvfi5af3m7zexfo5
Step 2: Install the Shortcut
Using the files App, navigate to your downloads folder and tap the Global Caché IR Command.shortcut to install the shortcut.
Step 3: Run the shortcut
In the shortcuts app, tap the shortcut to run it.
On the first run of the shortcut the shortcut will ask for the IP Address of your Global Caché unit:
The IR port (1 through 3) that the IR command should be transmitted from:
And the IR command the shortcut should send:
For the GC JSON IR format, use iConvert to convert from the more common, "sendir" or "Pronto Hex" formats.
Note: Make sure the "IRcode" field in the GC JSON has that proper capitalization. Older "v1" API commands (iTach Flex) had an alternative capitalization scheme which will not be accepted on current firmware.
Once all fields have been entered an IRConfig.json will be stored on your device containing this configuration data. Click Done to confirm your entry:
Note: If you need to reconfigure the shortcut, use the files app to delete IRConfig.json and re-run the shortcut.
Step 4: Run the shortcut to send the IR command
Tap the shortcut again to execute your IR command.
Note: On first execution you will likely be presented by a privacy warning. Select Always Allow to authorize the sending of this command without a warning on subsequent runs.
Whenever the shortcut is run, your IR command will execute! Link the shortcut with a Siri voice command or add the command to your homescreen for convenient execution.
Limitations:
The current version of the shortcut uses a static "IRConfig.json" file for the shortcut configuration data. If more than one IR command shortcut is added, please modify the references to "IRConfig.json" within the shortcut to a unique filename for each duplicate shortcut.
0 Comments