Turn on a light with Siri through the Ilevia system

How to create a shortcut on iOS and link it to an IFTTT link from the Ilevia cloud to turn a light on and off with Siri.

Introduction

This guide explains how to integrate a Switch component with Apple's voice assistant, Siri. This allows you to turn a light on or off using Apple devices.

Creating the IFTTT component

Step 1:

Open the Ilevia Manager configuration software and add a new Switch component to the project. Then apply the IFTTT tag to the component by selecting it from the Select tag menu.

Adding the IFTTT Switch component within the Ilevia Manager home automation configuration software project

Step 2:

Once the tag has been applied to the component, add it to the User Interface: go to the User Interface section, add a new icon to the main menu by clicking the “+” sign and choosing an icon, then drag the Switch component into the third row “Components” of the editor.

Adding the component to the user interface of Ilevia Manager

Step 3:

Now upload the project to the server. Make sure the Logic module is active before proceeding to the next step.

Step 4:

Now log in or sign up at api.ilevia.com. For registration and linking the Ilevia server to the cloud, follow this guide.

Step 5:

Once the server is linked to your cloud space, you can view the Switch in the Devices section, selectable from the left sidebar menu. Click the Switch object: a pop-up menu opens containing 2 IFTTT links; the first sets the component status to “ON” and the second to “OFF”. Finally, copy the link.

Copy IFTTT link to control the switch component

Creating the shortcut

Step 1.1:

From your iOS device, search for “Shortcuts” (in English “Shortcuts”; on the device it may appear as “Scorciatoie”). Once the app is open, click the “+” sign at the top right of the screen.

How to access the Shortcuts app on an iOS device to control a light through the Ilevia home automation system

Step 1.2:

Search for the “URL” module using the search bar at the top of the screen and add it to the shortcut.

Adding the URL module within the Shortcuts actions so that the IFTTT link that will control the light in the Ilevia Manager home automation configuration software project can be applied

Step 1.3:

In the URL module just added, paste the link copied previously in Step 5 of the “Creating the IFTTT component” section.

Adding the IFTTT link within the URL module for controlling the switch within the Ilevia home automation system

Step 1.4:

Add the last module required to run the shortcut: search for the “Get Contents of URL” module.

Adding the module that retrieves content from the Ilevia cloud

Step 1.5:

Test the new shortcut by clicking the button with the name of the previously assigned command. On first launch, a privacy message is displayed asking for permission to connect to the cloud: confirm by pressing Allow.

Permission prompt for cloud connection by the Ilevia shortcut

Voice command to run the shortcut with Siri

To run the shortcut with Siri, say the name of the shortcut: for example “Hey Siri, turn on the light”.

To turn the light off, repeat the creation of the shortcut and give it a different name (for example “turn off the light”), then enter the second link, indicated as the OFF command of the same Switch component.

In this section

Last updated: