Skip to main content

iRidi skill for Amazon Alexa

Voice control of equipment through Amazon Alexa and iRidi


Documentation updated on 19.03.2026

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 Alexa-enabled devices from third-party manufacturers.

The iRidi skill supports several languages:

  • English (US),
  • English (UK),
  • English (India),
  • Spanish (Spain),
  • Spanish (Mexico),
  • Spanish (US),
  • Italian (Italy),
  • German (Germany),
  • Portuguese (Brazil),
  • Hindi (India),
  • French (France),
  • Japanese (Japan).

With the "iRidium" skill, Alexa can control a smart home through iRidi cloud and an iRidi server. Say "Turn on the light" and the light turns on. Say "Turn off the light" and it turns off. It's simple!

Alexa_scheme.png

Supported devices:

  • dimmers and switches,
  • door locks,
  • entertainment devices, such as smart TVs,
  • smart home cameras,
  • thermostats and fans,
  • microwave ovens,
  • and much more.

Working in iRidi Studio​

Adding the driver and devices​

  1. Create a server project.

  2. Add the Amazon Alexa Network network driver to the project.

AlexaNetwork1.png

  1. Add smart devices to the project.

AlexaNetwork2.png

  1. Rename the devices using the names you want to say when speaking to Alexa.
Note

Device feedback channels must not be renamed because their names have specific meanings.

AlexaNetwork3.png


Device and feedback channel descriptions​

Amazon Alexa devices are not physical devices; they provide an interface between physical devices and Alexa. You must implement their functionality in iRidi Server or link them to the corresponding physical devices using an appropriate protocol. iRidi provides an interface with four device types:

  • Switch
  • Dock Station
  • Dimmer
  • HVAC

This does not limit your ability to work with other devices. For example, you can control a relay using a binary Switch device.

Note

You do not need to use every device feedback channel; use only the ones you need.

Switch​

Example applications:

  • switch,
  • light,
  • relay.

FeedbackDescriptionActionsExample voice commands
PowerOn/off statusturnOn
turnOff
"Alexa, turn on switch"
"Alexa, turn off switch"

Dock Station​

Example applications:

  • charging dock,
  • heating thermostat.

FeedbackDescriptionActionsExample voice commands
LevelNumeric valuesetPercentage
incrementPercentage
decrementPercentage
"Alexa, set dock station to fifty percents"
"Alexa, raise dock station by five degrees"
"Alexa, lower dock station by two percents"

Dimmer​

Example applications:

  • single-channel dimmer,
  • electric underfloor heating.
FeedbackDescriptionActionsExample voice commands
PowerOn/off statusturnOn
turnOff
"Alexa, turn on dimmer"
"Alexa, turn off dimmer"
LevelPercentagesetPercentage
incrementPercentage
decrementPercentage
"Alexa, set dimmer to hundred percents"
"Alexa, raise dimmer by five percents"
"Alexa, lower dimmer by two percents"

HVAC​

Example applications:

  • thermostat,
  • air conditioner,
  • fan,
  • electric underfloor heating.

FeedbackDescriptionActionsExample voice commands
PowerOn/off statusturnOn
turnOff
"Alexa, turn on HVAC"
"Alexa, turn off HVAC"
LevelPercentage setpointsetPercentage
incrementPercentage
decrementPercentage
"Alexa, set HVAC to fifty percent"
"Alexa, increase HVAC by five percents"
"Alexa, decrease HVAC by two percents"
Target TemperatureTemperature setpoint in degreessetTargetTemperature
incrementTargetTemperature
decrementTargetTemperature
getTargetTemperature
"Alexa, set HVAC to thirty degrees"
"Alexa, increase HVAC by five degrees"
"Alexa, reduce HVAC by two degrees"
"Alexa, make it warmer in here"
"Alexa, make it cooler in here"
"Alexa, what is HVAC target temperature?"
Sensor TemperatureTemperature from the sensorgetTemperatureReading
getTargetTemperature
"Alexa, what HVAC temperature?"
Cool Target TemperatureUpper temperature setpointgetTemperatureReading
getTargetTemperature
"Alexa, what temperature is my HVAC set to?"
Heat Target TemperatureLower temperature setpoint
Temperature ModeOperating modeThermostatModeThis function is not yet supported

TemperatureMode can take the following values:

  • IR.SUB_DEVICE_STATE_CLIMATE_TEMP_MODE_AUTO,
  • IR.SUB_DEVICE_STATE_CLIMATE_TEMP_MODE_COOLING,
  • IR.SUB_DEVICE_STATE_CLIMATE_TEMP_MODE_DRY,
  • IR.SUB_DEVICE_STATE_CLIMATE_TEMP_MODE_FAN,
  • IR.SUB_DEVICE_STATE_CLIMATE_TEMP_MODE_HEATING,
  • IR.SUB_DEVICE_STATE_CLIMATE_TEMP_MODE_OFF.

Use these constants to set the thermostat operating mode in a script.

Creating a script​

The script receives voice commands from Alexa and forwards them to physical devices.

To create a driver:

  1. Create a server project .sirpz ;

  2. Add a script by clicking JS > + > New script .

  3. Paste the following template into the script:

//Let's create a driver, four subdevices and log the name of the device from which the feedback came and its value 

// Device creation (IR.DEVICE_AMAZON_ALEXA - device type)
var l_pDevice = IR.CreateDevice(IR.DEVICE_AMAZON_ALEXA, "Amazon Alexa");
if(l_pDevice)
{
/* * * SubDevice creation
* Params:
* 1. Name of SubDevice
* 2. Type of SubDevice:
* IR.SUB_DEVICE_TYPE_THROUGH_DIMMER - Dimmer
* IR.SUB_DEVICE_TYPE_THROUGH_RELAY - Switch
* IR.SUB_DEVICE_TYPE_AIR_CONDITIONER - Thermostat (HVAC)
* IR.SUB_DEVICE_TYPE_DOCK_STATION - Dock Station
*/
l_pDevice.AddSubDevice("Dimmer", IR.SUB_DEVICE_TYPE_THROUGH_DIMMER);
l_pDevice.AddSubDevice("Switch", IR.SUB_DEVICE_TYPE_THROUGH_RELAY);
l_pDevice.AddSubDevice("Thermostat", IR.SUB_DEVICE_TYPE_AIR_CONDITIONER);
l_pDevice.AddSubDevice("DockStation", IR.SUB_DEVICE_TYPE_DOCK_STATION);

//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 'HVAC:Level':
IR.GetDevice("Modbus TCP").Set("HVAC Level", value);
break;
case 'HVAC:Sensor Temperature':
IR.GetDevice("Modbus TCP").Set("HVAC Sensor Temperature", value);
break;
case 'Dock Station:Level':
IR.GetDevice("Modbus TCP").Set("Dock Station Level", value);
break;
}
})
}
  1. Change the device names to the names you want to say when speaking to Alexa.

Device creation example:


Dimmer "Bathroom light":

l_pDevice.AddSubDevice("Bathroom light", IR.SUB_DEVICE_TYPE_THROUGH_DIMMER);

Dimmer "Garage light":

l_pDevice.AddSubDevice("Garage light", IR.SUB_DEVICE_TYPE_THROUGH_DIMMER);

Create the other devices in the same way as in the example.

  1. Configure the connections between Alexa subdevices and the equipment.
Note

When using feedback channels in the Amazon Alexa Network driver, specify the subdevice name and feedback channel separated by a colon. The complete list of subdevices and feedback channels is provided in the table under "Device and feedback channel descriptions".

Example of handling Alexa responses and sending commands to the Modbus driver:

IR.AddListener(IR.EVENT_TAG_CHANGE, l_pDevice, function(name, 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 'HVAC:Level':
IR.GetDevice("Modbus TCP").Set("HVAC Level", value);
break;
case 'HVAC:Sensor Temperature':
IR.GetDevice("Modbus TCP").Set("HVAC Sensor Temperature", value);
break;
case 'Dock Station:Level':
IR.GetDevice("Modbus TCP").Set("Dock Station Level", value);
break;
}
})
  1. Upload the project to the server through the cloud;

  2. Synchronize the project with Alexa.

Tip

Important:

  • Device names in the driver must be unique;
  • Use only English for subdevice names;
  • Feedback channels must not be created or edited. Each Alexa device already has a standard set of feedback channels that it uses;
  • For device discovery in Alexa App, the project must be running on the server;
  • Stable operation of the native and script-based drivers in the same project is not guaranteed.
Tip

Download the demo project:

Uploading the project to iRidi cloud and the server​

  1. Sign in on the iRidi website.

  2. Upload the server project and Panel Project to iRidi cloud.

Alexa_cloud01.png

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

Alexa3.png

  1. Start iRidi Server.

  2. Open the server web interface by entering the following in the browser address bar:

<server IP address>:8888

(If iRidi Server is running on the same computer on which you are configuring it, enter:

127.0.0.1:8888)

  1. Enter the default access password 2007. Click "LOGIN".

Alexa_web01.png

  1. Open Cloud / Projects .

Alexa_web02.png

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

Alexa_web03.png

Attention

Alexa works only through iRidi cloud, so it cannot work if the project is uploaded to the server through iRidi transfer.

Configuring Alexa​

Registering the smart speaker​

Alexa is configured using Alexa App on mobile devices or Amazon's web service on a laptop or desktop computer.

Note

In either case, the device needs Wi-Fi to connect directly to the smart speaker.

  1. Sign up on the Amazon website if you do not already have an account.

  2. On mobile devices, you will be prompted to download Alexa App. On a laptop or desktop computer, you can continue setup on the Amazon website.

Alexa_App01(1).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.
Note

Make sure Alexa App is available for download from Google Play and the App Store in your region.

  1. Complete the smart speaker registration steps by following the on-screen instructions.

Enabling the skill​

The skill is installed only in the Alexa App .

  1. Start the application. Open the menu in the upper-left corner.

Alexa_App02(1).png

  1. Open Smart Home .

Alexa_App03(1).png

  1. Click YOUR SMART HOME SKILLS to view all installed smart home skills.

Alexa_App04(1).png

  1. Click ENABLE SMART HOME SKILLS to add a new skill.

Alexa_App05(1).png

  1. In the search field, enter iRidi to find the iRidium skill, then select it.

Alexa_App06(1).png

  1. Read about the skill, then click ENABLE .

Alexa_App07(1).png

  1. The sign-up form on the iRidium mobile website opens. Enter the end user's account credentials and click Login .

Alexa1.png

  1. From the drop-down list, select the object Alexa will work with. Click Grant access .

Alexa2.png

  1. Alexa has successfully connected to the iRidi object.

Alexa_App12.png

Importing devices from iRidi cloud​

  1. Select DISCOVER DEVICES .

Alexa_App13.png

  1. The process takes no more than 20 seconds.

Alexa_App14.png

  1. Devices from the iRidi server project are automatically imported into Alexa App .
Note

Devices are imported only if iRidi Server is running and the Alexa project has been loaded onto it.

Alexa_App15.png

  1. After changing the project, upload it to iRidi cloud and update it on iRidi Server. Then click Add Device on the Smart Home tab in Alexa App .

Testing the project​

You can run the server project on the same computer used for iRidi Studio. However, upload the project only through iRidi cloud.

Say voice commands to the Amazon Echo speaker. Alexa forwards them to iRidi Server, which executes them according to the script.

You can use any Modbus TCP server emulator to test the project, such as the free Modbus PLC Simulator.

Alexa tips​

Note

You can register one Amazon Echo speaker with several iRidi objects. Voice commands are sent to all available (running) iRidi servers, which can cause control conflicts. Remember to remove inactive or test Alexa projects from iRidi cloud.

Note
  • You can change the temperature units (Celsius or Fahrenheit) in the regional settings in Alexa App.