Amazon Alexa (v3)
Voice control of equipment through iRidi and Amazon Alexa (API version 3).
Documentation updated on 01.01.2024
Alexa is Amazon's voice assistant, built into the Amazon Echo smart speaker and other devices such as:
- Echo Plus,
- Echo Dot,
- Amazon Tap,
- Echo Sub,
- Echo Show,
- Fabriq Chorus and other third-party Alexa-enabled devices.
The iRidium Assistant skill supports several languages:
- English (Australia);
- English (US),
- English (UK),
- English (India),
- Spanish (Spain),
- Spanish (Mexico),
- Spanish (US),
- Italian (Italy),
- German (Germany),
- Portuguese (Brazil),
- Hindi (India),
- French (France),
- Japanese (Japan).
For the current list of supported languages, see the Amazon website or Alexa App.
With the "iRidium Assistant" skill, Alexa can control a smart home through iRidi Cloud and iRidi Server. Say "Turn on the light" and the light turns on. Say "Turn off the light" and it turns off. It is that simple!

Working in iRidi Studio
Adding the driver and devices
- Create a Server Project.
- Add the Amazon Alexa (v3) Network driver to the project.

- Add smart devices to the project.

- Rename the devices to match the names you want to use when speaking to Alexa.
You must not rename device feedbacks, because each one has a specific meaning.

Devices and feedbacks
Amazon Alexa devices are not physical devices: they are interfaces between physical devices and Alexa. You must implement their functionality in iRidi Server or connect them to the corresponding physical devices using a suitable protocol. iRidi provides interfaces for the following device types:
- Contact sensor,
- Motion sensor,
- Door,
- Curtains,
- Switch,
- Thermostat (Heat - Cool),
- Thermostat,
- Light Color Temperature,
- Light Color,
- Light,
- Dimmer.
This does not prevent you from working with other devices. For example, you can control a relay using a binary Switch device.
You do not have to use every device feedback. Use only the feedbacks you need.
Contact sensor
Limit switches, contact thermometers, electronic sensors.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| State | State: detected / not detected | Detected, NotDetected | "Alexa, is Contact sensor open?" |
Motion sensor
Automatic lighting control.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| State | State: detected / not detected | Detected, NotDetected | - |
Door
Door lock control.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| State | Opening / closing | Lock, Unlock | "Alexa, lock the door" "Alexa, unlock the door" |
Curtains
Curtain control.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| Range | Percentage | setPercentage incrementPercentage decrementPercentage | "Alexa, set curtains to hundred percents" "Alexa, raise curtains by five percents" "Alexa, lower curtains by two percents" |
Switch
Switch, light, relay.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| Power | On/off state | turnOn turnOff | "Alexa, turn on switch" "Alexa, turn off switch" |
Thermostat (Heat - Cool)
Thermostat control with maximum and minimum temperature limits.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| Cool Target Temperature | Upper temperature setpoint | getTemperatureReading getTargetTemperature | "Alexa, what temperature is my thermostat set to?" |
| Heat Target Temperature | Lower temperature setpoint | ||
| Power | On/off state | turnOn turnOff | "Alexa, turn on thermostat" "Alexa, turn off thermostat" |
| Sensor Temperature | Sensor temperature | getTemperatureReading getTargetTemperature | "Alexa, what thermostat temperature?" |
| Target Temperature | Target temperature in degrees | setTargetTemperature incrementTargetTemperature decrementTargetTemperature getTargetTemperature | "Alexa, set thermostat to thirty degrees" "Alexa, increase thermostat by five degrees" "Alexa, reduce thermostat by two degrees" "Alexa, make it warmer in here" "Alexa, make it cooler in here" "Alexa, what is thermostat target temperature?" |
| Temperature Mode | Operating mode | setAuto, setECO, setHeat, setCool, setOff. | "Alexa, set thermostat to cool mode" "Alexa, set thermostat to heat mode" "Alexa, off thermostat" |
Thermostat
Thermostat control.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| Power | On/off state | turnOn turnOff | "Alexa, turn on thermostat" "Alexa, turn off thermostat" |
| Sensor Temperature | Sensor temperature | getTemperatureReading getTargetTemperature | "Alexa, what thermostat temperature?" |
| Target Temperature | Target temperature in degrees | setTargetTemperature incrementTargetTemperature decrementTargetTemperature getTargetTemperature | "Alexa, set thermostat to thirty degrees" "Alexa, increase thermostat by five degrees" "Alexa, reduce thermostat by two degrees" "Alexa, make it warmer in here" "Alexa, make it cooler in here" "Alexa, what is thermostat target temperature?" |
| Temperature Mode | Operating mode | setAuto, setECO, setHeat, setCool, setOff. | "Alexa, set thermostat to cool mode" "Alexa, set thermostat to heat mode" "Alexa, off thermostat" |
Light Color Temperature
A light bulb, luminaire, night light or chandelier with adjustable color temperature.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| Brightness | Percentage | setPercentage incrementPercentage decrementPercentage | "Alexa, set light to hundred percents" "Alexa, raise light by five percents" "Alexa, lower light by two percents" |
| Power | On/off state | turnOn turnOff | "Alexa, turn on light" "Alexa, turn off light" |
| Color Temperature | Color temperature | setColorTemperature | "Alexa, set the light softer" "Alexa, make the light warmer" "Alexa, set the light cooler" "Alexa, make the light white" |
Light Color
A light bulb, luminaire, night light or chandelier with RGB control.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| Brightness | Percentage | setPercentage incrementPercentage decrementPercentage | "Alexa, set light to hundred percents" "Alexa, raise light by five percents" "Alexa, lower light by two percents" |
| Power | On/off state | turnOn turnOff | "Alexa, turn on light" "Alexa, turn off light" |
| Color | RGB | setColor | "Alexa, set the light to red" "Alexa, set the front porch light to blue" "Alexa, set the bedroom light to red" "Alexa, set the kitchen light to blue" |
Light
Dimmable light control.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| Brightness | Percentage | setPercentage incrementPercentage decrementPercentage | "Alexa, set light to hundred percents" "Alexa, raise light by five percents" "Alexa, lower light by two percents" |
| Power | On/off state | turnOn turnOff | "Alexa, turn on light" "Alexa, turn off light" |
Dimmer
Single-channel dimmer, electric underfloor heating.
| Feedback | Description | Actions | Voice command examples |
|---|---|---|---|
| Power | On/off state | turnOn turnOff | "Alexa, turn on dimmer" "Alexa, turn off dimmer" |
| Level | Percentage | setPercentage incrementPercentage decrementPercentage | "Alexa, set dimmer to hundred percents" "Alexa, raise dimmer by five percents" "Alexa, lower dimmer by two percents" |
Creating a script
The script receives voice commands from Alexa and forwards them to physical devices. This example uses devices on a Modbus TCP network.
To create the driver:
- Create a ** .sirpz* Server Project;
- Add a script by clicking JS > + > New script.
- Paste the template into the script and configure the connections between Alexa subdevices and the equipment:
//Let's get a link to the "Amazon Alex (v3) Network" driver.
var l_pDevice = IR.GetDevice("Amazon Alexa (v3) Network");
if(l_pDevice)
{
//Log the name of the device from which the feedback came and its value
IR.AddListener(IR.EVENT_TAG_CHANGE, l_pDevice, function(name, value){
IR.Log("Name: " + name + " Value: " + value);
switch(name)
{
case "Dimmer:Level":
IR.GetDevice("Modbus TCP").Set("Dimmer:Level", value);
break;
case "Switch:Power":
IR.GetDevice("Modbus TCP").Set("Switch:Power", value);
break;
case "Contact sensor:State":
IR.GetDevice("Modbus TCP").Set("Contact sensor:State", value);
break;
case "Light Color:Color":
IR.GetDevice("Modbus TCP").Set("Light Color:Color", value);
break;
case "Thermostat (Heat-Cool):Power":
IR.GetDevice("Modbus TCP").Set("Thermostat (Heat-Cool):Power", value);
break;
}
})
}
When using feedback channels in the Amazon Alexa (v3) Network driver, you must specify the subdevice name and feedback channel separated by a colon. For the full list of subdevices and feedback channels, see the Devices and feedbacks tables.
- Upload the project to the server through the cloud;
- Synchronize the project with Alexa.
- Device names in the driver must be unique;
- Use only English for subdevice names;
- You must not create or edit feedbacks: each Alexa device already has a standard set of feedbacks that it uses;
- The project must be running on the server for Alexa App to discover devices.
Uploading the project to iRidi Cloud and the server
- Sign in on the iRidi website.
- Upload the Server Project and Panel Project to iRidi Cloud.

- On the Users and Panels tab, add the end user to the project.

- Start iRidi Server.
- Open the server's web interface by entering the following address in your browser:
<server IP address>:8888
(If iRidi Server runs on the same computer you are using to configure it, enter: 127.0.0.1:8888)
- Enter the default access password
2007. Click "LOGIN".

- Find the Cloud / Projects tab.

- Download the project from the cloud to the server by clicking "CLOUD SYNC", then "Download" next to the required project.

Alexa works only through iRidi Cloud. It will not work if the project is uploaded to the server through iRidi Transfer.
Setting up Alexa
Registering the smart speaker
Alexa is configured using Alexa App on mobile devices or Amazon's web service on laptops and computers.
In either case, the device must have Wi-Fi to connect directly to the smart speaker.
- Register on the Amazon website if you do not already have an account.
- On mobile devices, you will be prompted to download Alexa App. On laptops and computers, you can continue setup on the Amazon website.
-e07b993a5715cf8d66c489889c298685.png)
Alexa App can run on the following operating systems:
- Fire OS 3.0 or later,
- iOS 9.0 or later,
- Android 5.0 or later,
- Windows 10 version 17134.0 or later.
Make sure Alexa App is available for download from Google Play and the App Store in your region.
- Follow the on-screen instructions to register the smart speaker step by step.
Installing the skill
The skill can be installed only in Alexa App.
- Start the app. Open the Devices tab and tap YOUR SMART HOME SKILLS to see all installed smart home skills.

- Tap ENABLE SMART HOME SKILLS to add a new skill.

- Enter iridium assistant in the search field to find the skill, then tap it.
Amazon Alexa (v3) works only with the iRidium assistant skill and does not connect to the old iRidium skill. The iRidium assistant skill supports a single cloud connection for all voice assistants.

- Read the skill description, then tap ENABLE TO USE.

- You will be taken to the sign-in form on the iRidi website. Enter the credentials of the end user with whom you shared the associated Panel Project, then click Login.

- Select the site that Alexa will work with from the drop-down list. Click Grant access.

- Alexa is now connected to the iRidi site.

Importing devices from iRidi Cloud
- Tap DISCOVER DEVICES.

- The process takes no more than 20 seconds.

- Devices from the iRidi Server Project are automatically imported into Alexa App.
Devices are imported only if iRidi Server is running with a project that includes Alexa.

- If you modify the project, remember to upload it to iRidi Cloud and then update it in iRidi Server. After that, tap Add Device on the Devices tab in Alexa App.
Testing the project
The Server Project can run on the same computer you use for iRidi Studio. However, the project must be uploaded only through iRidi Cloud.
Speak voice commands to Amazon Echo. Alexa forwards them to iRidi Server, which executes them according to the script.
You can use any Modbus TCP server emulator, such as the free Modbus PLC Simulator, to test the project.
- You can register one Amazon Echo speaker with several iRidi sites. Voice commands are sent to all available (running) iRidi servers, which can cause control conflicts. Remember to remove unused or test projects with Alexa from iRidi Cloud.
- Temperature units (Celsius or Fahrenheit) can be changed in the regional settings in Alexa App.