iRidi skill for Sber Salut
Sber Salut is a voice assistant from Sber.
Documentation updated 01.01.2024
Salut comprises the virtual assistants Sber, Joy, and Athena, available in Sber's mobile applications and smart devices:
- SberBank Online;
- Sber Salut application;
- SberBox;
- SberBox Top;
- Salut TV.
With the "iRidi" skill, Sber Salut can control a smart home through iRidi cloud and iRidi Server. Say "Включи свет" (meaning: turn on the light), and the light turns on. Say "Выключи свет" (meaning: turn off the light), and it turns off. It is that simple!

Working in iRidi Pro
Adding the driver and devices
-
Create a server project;
-
Add the Sber Salut driver to the project;

- Add smart devices;

- Fill in the required device parameters:

- Device name - the device name displayed in the SberSalut application;
- Device home - the name of the home containing the device, as displayed in the SberSalut application;
- Device room - the room name.
- Use only Cyrillic characters when filling in these fields.

- Name - the command / feedback channel name;
- Acknowledgment - command acknowledgment:
- True - after a command is sent, the system waits for acknowledgment of a feedback value change from the equipment with a bidirectional binding to the command / feedback pair. If a command sent from the Sber Salut application does not cause a change in the equipment, the application reverses the visual change to the control. This is unsuitable for equipment that takes more than 2 seconds to update its feedback.
- False (recommended) - acknowledgment is not required, even if the equipment was offline and did not respond to the command. The Sber Salut application does not visually reverse your action.
Device and feedback channel descriptions
Sber Salut devices are interfaces between physical devices and the assistant, rather than physical devices themselves. You must implement their functionality in iRidi Server or provide connections to the corresponding physical devices over a suitable protocol. iRidi provides an interface with several device types:
- Lamp
- Socket
- HVAC
- Radiator
- Underfloor heating
- LED strip
- Opening sensor
- Motion sensor
- Fan
- Relay
- Temperature and humidity sensor
- Blinds
- Curtains
- Scene switch
This does not limit your ability to work with other devices. For example, you can control a relay using a binary Socket device.
You do not need to use every device feedback channel; use only the ones you need.
Lamp
Control of a light bulb, light fixture, night light, or chandelier.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Turn the lamp on or off | "Салют, включи лампу" (meaning: Salut, turn on the lamp), "Салют, выключи розетку" (meaning: Salut, turn off the socket). |
| Brightness | 0 - 100% | Change the lamp brightness * | "Салют, увеличь яркость лампы" (meaning: Salut, increase the lamp brightness), "Салют, убавь яркость люстры на 30%" (meaning: Salut, reduce the chandelier brightness by thirty percent), "Салют, сделай яркость ночной подсветки на минимум" (meaning: Salut, set the night lighting brightness to minimum). |
| ColorRGB | 0 - 16777215 | Change the lamp color | "Салют, поменяй цвет лампы на синий" (meaning: Salut, change the lamp color to blue), "Салют, измени цвет ночной подсветки на фиолетовый" (meaning: Salut, change the night lighting color to purple). |
| Color Temperature (K) | 0 - 10000 | Change the color temperature in kelvins | "Салют, сделай свет настольной лампы холоднее" (meaning: Salut, make the desk lamp light cooler), "Салют, сделай свет ночной подсветки теплее" (meaning: Salut, make the night lighting warmer). |
- To convert the value from Sber for use with buses that have separate RGB channels, use this script:
var Sber = IR.GetDevice("Sber Salut");
var device = IR.GetDevice("Modbus TCP");
IR.AddListener(IR.EVENT_TAG_CHANGE, Sber, function(in_sName, in_sValue)
{
if (in_sName == "Лампа:Color RGB") {
var valueR = (in_sValue >> 24) & 0xFF;
var commandR = "Red"; //
setRGB(commandR, valueR);
var valueG = (in_sValue >> 16) & 0xFF; //Получение зеленого
var commandG = "Green"; //Имя канала в которой передается значение
setRGB(commandG, valueG); //Функция отправки значения
var valueB = (in_sValue >> 8) & 0xFF;
var commandB = "Blue";
setRGB(commandB, valueB);
Sber.Set(in_sName, in_sValue);
}
IR.Log(" Красный " + valueR + " Зеленый " + valueG + " Синий " + valueB);
});
/*
/ отправляем на определенную команду значение
/ command - имя команды
/ value - значение
*/
function setRGB (command ,value){
device.Set(command, value);
}
If you use a script converter and change the lamp color outside the Sber Salut application, the application's feedback may show outdated information.
Socket
Smart socket control.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Remotely turn the device on and off | "Салют, включи вентилятор" (meaning: Salut, turn on the fan), "Салют, выключи увлажнитель в детской" (meaning: Salut, turn off the humidifier in the children's room). |
| Child Lock | 0 / 1 | Lock or unlock the power button on the socket housing (child lock). | "Салют, заблокируй утюг" (meaning: Salut, lock the iron), "Салют, разблокируй увлажнитель" (meaning: Salut, unlock the humidifier). |
| Current (mA) | 0 - 30000 | The current flowing through the device. | |
| Power (W) | 0 - 50000 | The power consumed by the device. | |
| Voltage (V) | 0 - 5000 | The voltage supplied to the connected device. |
Converting amperes to milliamperes:
function modify_send_A_to_mA(in_Type, in_Name, in_Value)
{
in_Value *= 1000;
IR.Log("Modification is done. " + in_Name + " has send " + in_Value);
return in_Value;
}
Converting kilowatts to watts:
function modify_send_kW_to_W(in_Type, in_Name, in_Value)
{
in_Value *= 1000;
IR.Log("Modification is done. " + in_Name + " has send " + in_Value);
return in_Value;
}
HVAC
Control of an air conditioner, thermostat, fan, or electric underfloor heating.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Turn the air conditioner on / off | "Салют, включи кондиционер" (meaning: Salut, turn on the air conditioner), "Салют, выключи кондиционер в детской" (meaning: Salut, turn off the air conditioner in the children's room). |
| Ionization | 0 / 1 | Air ionization | |
| Night Mode | 0 / 1 | Air conditioner night mode | "Салют, включи ночной режим на кондиционере" (meaning: Salut, enable night mode on the air conditioner), "Салют, выключи ночной режим на кондиционере в спальне" (meaning: Salut, disable night mode on the air conditioner in the bedroom). |
| Target temperature (°C) | 16 - 32 | Temperature in degrees Celsius | "Салют, установи температуру на кондиционере на 25 градусов" (meaning: Salut, set the air conditioner temperature to twenty-five degrees), "Салют, убавь температуру на кондиционере на 5 градусов" (meaning: Salut, reduce the air conditioner temperature by five degrees), "Салют, поставь температуру на кондиционере на минимум" (meaning: Salut, set the air conditioner temperature to minimum). |
| Humidity (%) | 30 - 90 | Humidity level | |
| Fan Speed | "auto" - automatic mode, "low" - low, "medium" - medium, "high" - high, "quiet" - quiet mode, "turbo" - turbo | Ventilation speed | "Салют, включи кондиционер в режиме «Турбо»" (meaning: Salut, enable Turbo mode on the air conditioner), "Салют, сделай скорость кондиционера на максимум" (meaning: Salut, set the air conditioner speed to maximum). |
| Air Flow Direction | "no" - none, "auto" - auto, "horizontal" - move horizontally, "vertical" - move vertically, "rotation" - move in a circle | Airflow direction | |
| Work Mode | "auto" - auto, "air_purification" - air purification, "comfortable_sleep" - comfortable sleep, "cooling" - cooling, "dehumidification" - dehumidification (not yet implemented in Sber Salut), "eco" - energy saving, "fast_cooling" - fast cooling, "fast_heating" - fast heating, "heating" - heating, "self_cleaning" - self-cleaning, "turbo" - turbo, "ventilation" - ventilation | Air conditioner operating mode | "Салют, включи вентиляцию на кондиционере" (meaning: Salut, enable ventilation on the air conditioner), "Салют, включи самоочистку на кондиционере" (meaning: Salut, enable self-cleaning on the air conditioner), "Салют, выключи режим комфортного сна на кондиционере" (meaning: Salut, disable comfortable sleep mode on the air conditioner). |
Radiator
Radiator control.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Turn the radiator on / off | "Салют, включи радиатор" (meaning: Salut, turn on the radiator), "Салют, выключи радиатор" (meaning: Salut, turn off the radiator). |
| Target temperature (°C) | 5 - 50 | Target temperature | "Салют, установи температуру радиатора на 25 градусов" (meaning: Salut, set the radiator temperature to twenty-five degrees), "Салют, убавь температуру на радиаторе на 5 градусов" (meaning: Salut, reduce the radiator temperature by five degrees), "Салют, поставь температуру на радиаторе на минимум" (meaning: Salut, set the radiator temperature to minimum). |
| Current temperature (°C) | -40 - 200 | Current temperature | "Салют, какая температура в детской?" (meaning: Salut, what is the temperature in the children's room?), "Салют, сколько градусов на веранде?" (meaning: Salut, how many degrees is it on the veranda?), "Салют, какая температура на радиаторе?" (meaning: Salut, what is the radiator temperature?) |
Underfloor heating
Underfloor heating control.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Turn the underfloor heating on / off | "Салют, включи теплый пол" (meaning: Salut, turn on the underfloor heating), "Салют, выключи теплый пол" (meaning: Salut, turn off the underfloor heating). |
| Target temperature (°C) | 5 - 50 | Target temperature | "Салют, установи температуру теплого пола на 25 градусов" (meaning: Salut, set the underfloor heating temperature to twenty-five degrees), "Салют, убавь температуру на теплом поле на 5 градусов" (meaning: Salut, reduce the underfloor heating temperature by five degrees), "Салют, поставь температуру теплого пола на минимум" (meaning: Salut, set the underfloor heating temperature to minimum). |
| Current temperature (°C) | -40 - 200 | Current temperature | "Салют, какая температура в детской?" (meaning: Salut, what is the temperature in the children's room?), "Салют, сколько градусов на веранде?" (meaning: Salut, how many degrees is it on the veranda?), "Салют, какая температура теплого пола?" (meaning: Salut, what is the underfloor heating temperature?) |
| Heating Rate | 1 - 10 - heating rate, "auto" - automatic heating rate, "high" - high heating rate, "low" - low heating rate, "medium" - medium heating rate. | Heating rate | |
| Thermostat mode | "auto" - automatic mode, "cooling" - cooling, "eco" - energy saving, "fast_cooling" - fast cooling, "fast_heating" - fast heating, "heating" - heating, "turbo" - boost mode. | Heating mode |
LED strip
LED strip control.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Turn the LED strip on / off | "Салют, включи свет" (meaning: Salut, turn on the light), "Салют, выключи свет" (meaning: Salut, turn off the light). |
| Brightness | 0 - 100 | Lamp brightness percentage | "Салют, увеличь яркость светодиодной ленты" (meaning: Salut, increase the LED strip brightness), "Салют, убавь яркость светодиодной ленты на 30%" (meaning: Salut, reduce the LED strip brightness by thirty percent), "Салют, сделай яркость ночной подсветки на минимум" (meaning: Salut, set the night lighting brightness to minimum). |
| Color Temperature (K) | 0 - 10000 | Control the color temperature in kelvins | "Салют, сделай свет светодиодной ленты холоднее" (meaning: Salut, make the LED strip light cooler), "Салют, сделай свет ночной подсветки теплее" (meaning: Salut, make the night lighting warmer). |
| ColorRGB | 0 - 16777215 | Set the color value * | "Салют, поменяй цвет светодиодной ленты на синий" (meaning: Salut, change the LED strip color to blue), "Салют, измени цвет ночной подсветки на фиолетовый" (meaning: Salut, change the night lighting color to purple). |
- To convert the value from Sber for use with buses that have separate RGB channels, use this script:
var Sber = IR.GetDevice("Sber Salut");
var device = IR.GetDevice("Modbus TCP");
IR.AddListener(IR.EVENT_TAG_CHANGE, Sber, function(in_sName, in_sValue)
{
if (in_sName == "Лампа:Color RGB") {
var valueR = (in_sValue >> 24) & 0xFF;
var commandR = "Red"; //
setRGB(commandR, valueR);
var valueG = (in_sValue >> 16) & 0xFF; //Получение зеленого
var commandG = "Green"; //Имя канала в которой передается значение
setRGB(commandG, valueG); //Функция отправки значения
var valueB = (in_sValue >> 8) & 0xFF;
var commandB = "Blue";
setRGB(commandB, valueB);
Sber.Set(in_sName, in_sValue);
}
IR.Log(" Красный " + valueR + " Зеленый " + valueG + " Синий " + valueB);
});
/*
/ отправляем на определенную команду значение
/ command - имя команды
/ value - значение
*/
function setRGB (command ,value){
device.Set(command, value);
}
If you use a script converter and change the lamp color outside the Sber Salut application, the application's feedback may show outdated information.
Opening sensor
Opening sensor readings.
| Feedback | Value | Description |
|---|---|---|
| Door state | 0 / 1 | true - the sensor contacts are open (the window, door, or similar structure is open), false - the sensor contacts are closed (the window, door, or similar structure is closed). |
Motion sensor
Motion sensor readings.
| Feedback | Value | Description |
|---|---|---|
| Pir | 0 / 1 | true - motion detected, false - no motion detected. |
Fan
Fan control.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Turn the fan on / off | "Салют, включи вентилятор" (meaning: Salut, turn on the fan), "Салют, выключи вентилятор" (meaning: Salut, turn off the fan). |
| Fan Speed | "auto" - automatic mode, "low" - low, "medium" - medium, "high" - high, "quiet" - quiet mode, "turbo" - turbo. | Fan speed | "Салют, включи кондиционер в режиме «Турбо»" (meaning: Salut, enable Turbo mode on the air conditioner), "Салют, сделай скорость вентилятора максимальной" (meaning: Salut, set the fan speed to maximum). |
| Direction | "left" - left, "right" - right, "up" - up, "down" - down. | Fan direction | "Салют, поверни вентилятор налево" (meaning: Salut, turn the fan to the left), "Салют, нужно, чтобы вентилятор начал дуть правее" (meaning: Salut, I need the fan to blow further to the right), "Салют, направление вентилятора — вверх" (meaning: Salut, set the fan direction upward). |
Relay
Relay control.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Turn the relay on / off | "Салют, включи реле" (meaning: Salut, turn on the relay), "Салют, выключи реле" (meaning: Salut, turn off the relay). |
Temperature and humidity sensor
Temperature and humidity sensor readings.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| Humidity (%) | 0 - 100 | Show the current humidity | "Салют, какой уровень влажности в детской?" (meaning: Salut, what is the humidity level in the children's room?), "Салют, какой уровень влажности на увлажнителе?" (meaning: Salut, what is the humidifier humidity level?), "Салют, какая влажность на кондиционере?" (meaning: Salut, what is the air conditioner humidity?), "Салют, уровень влажности на датчике температуры и влажности" (meaning: Salut, the humidity level on the temperature and humidity sensor). |
| Current temperature (°C) | -40 - 200 | Show the current temperature | "Салют, какая температура в детской?" (meaning: Salut, what is the temperature in the children's room?), "Салют, сколько градусов на веранде?" (meaning: Salut, how many degrees is it on the veranda?), "Салют, какая температура на обогревателе?" (meaning: Salut, what is the heater temperature?) |
Blinds
Control of blinds and roller shades.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| Light transmission | 0 - 100 | Light transmission level | "Салют, установи пропускание света для жалюзи на 60%" (meaning: Salut, set the blinds' light transmission to sixty percent), "Салют, сделай пропускание света для рулонной шторы на 30%" (meaning: Salut, set the roller shade's light transmission to thirty percent). |
| Open percentage | 0 - 100 | Blind opening (%) | "Салют, открой шторы на 90%" (meaning: Salut, open the curtains to ninety percent), "Салют, раздвинь шторы наполовину" (meaning: Salut, open the curtains halfway), "Салют, опусти рулонные шторы на две трети" (meaning: Salut, lower the roller shades by two thirds). |
| Open speed | "auto" - automatic speed, "low" - low speed, "medium" - medium speed, "high" - high speed | Opening speed | "Салют, сделай скорость открытия штор низкой" (meaning: Salut, set the curtain opening speed to low), "Салют, нужно, чтобы шторы открывались на средней скорости" (meaning: Salut, I need the curtains to open at medium speed), "Салют, открой рулонную штору на высокой скорости" (meaning: Salut, open the roller shade at high speed), "Салют, установи низкую скорость открытия штор" (meaning: Salut, set a low curtain opening speed). |
| Open state | "open" - open, "close" - closed, "opening" - opening, "closing" - closing. | Opening state | "Салют, что со шторами?" (meaning: Salut, what is happening with the curtains?), "Салют, в каком положении жалюзи?" (meaning: Salut, what position are the blinds in?), "Салют, подняты ли жалюзи?" (meaning: Salut, are the blinds raised?). |
| Open set | "open" - open, "close" - close, "stop" - stop. | Blind control | "Салют, раздвинь шторы" (meaning: Salut, open the curtains), "Салют, подними жалюзи" (meaning: Salut, raise the blinds), "Салют, останови поднятие жалюзи" (meaning: Salut, stop raising the blinds), "Салют, не закрывай шторы" (meaning: Salut, do not close the curtains). |
Curtains
Curtain control.
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| Left percentage | 0 - 100 | Left curtain opening (%) | "Салют, закрой левую часть штор на 90%" (meaning: Salut, close the left part of the curtains to ninety percent), "Салют, раздвинь левую сторону шторы наполовину" (meaning: Salut, open the left side of the curtain halfway). |
| Left state | "open" - open, "close" - closed, "opening" - opening, "closing" - closing. | Left curtain state | "Салют, что с левой частью шторы?" (meaning: Salut, what is happening with the left part of the curtain?), "Салют, в каком положении левая часть шторы?" (meaning: Salut, what position is the left part of the curtain in?). |
| Left set | "open" - open, "close" - close, "stop" - stop | Left curtain opening | "Салют, закрой левую сторону шторы" (meaning: Salut, close the left side of the curtain), "Салют, закрой левую сторону шторы" (meaning: Salut, close the left side of the curtain). |
| Open percentage | 0 - 100 | Curtain opening (%) | "Салют, распахни шторы на 90%" (meaning: Salut, open the curtains wide to ninety percent), "Салют, раздвинь шторы наполовину" (meaning: Salut, open the curtains halfway). |
| Open speed | "auto" - automatic speed, "low" - low speed, "medium" - medium speed, "high" - high speed | Opening speed | "Салют, сделай скорость открытия штор низкой" (meaning: Salut, set the curtain opening speed to low), "Салют, нужно, чтобы шторы открывались на средней скорости" (meaning: Salut, I need the curtains to open at medium speed), "Салют, открой рулонную штору на высокой скорости" (meaning: Salut, open the roller shade at high speed), "Салют, установи низкую скорость открытия штор" (meaning: Salut, set a low curtain opening speed). |
| Right percentage | 0 - 100 | Right curtain opening (%) | "Салют, закрой правую часть штор на 90%" (meaning: Salut, close the right part of the curtains to ninety percent), "Салют, раздвинь правую сторону шторы наполовину" (meaning: Salut, open the right side of the curtain halfway). |
| Right state | "open" - open, "close" - closed, "opening" - opening, "closing" - closing | Right curtain state | "Салют, что с правой стороной шторы?" (meaning: Salut, what is happening with the right side of the curtain?), "Салют, в каком положении правая сторона штор?" (meaning: Salut, what position is the right side of the curtains in?). |
| Right set | "open" - open, "close" - close, "stop" - stop | Right curtain opening | "Салют, закрой правую сторону шторы" (meaning: Salut, close the right side of the curtain), "Салют, закрой правую сторону шторы" (meaning: Salut, close the right side of the curtain). |
| Open state | "open" - open, "close" - closed, "opening" - opening, "closing" - closing | Curtain state | "Салют, что со шторами?" (meaning: Salut, what is happening with the curtains?), "Салют, в каком положении шторы?" (meaning: Salut, what position are the curtains in?). |
| Open set | "open" - open, "close" - close, "stop" - stop | Curtain control | "Салют, раздвинь шторы" (meaning: Salut, open the curtains), "Салют, не закрывай шторы" (meaning: Salut, do not close the curtains). |
Scene switch
Scene switch control.
| Feedback | Value | Description |
|---|---|---|
| Button event | "click" - single press, "double_click" - double press, "long_press" - long press | Button press |
| Button event (1-10) | "click" - single press, "double_click" - double press, "long_press" - long press | Button press (1-10) |
| button bottom left event | "click" - single press, "double_click" - double press, "long_press" - long press | Bottom left button press |
| button bottom right event | "click" - single press, "double_click" - double press, "long_press" - long press | Bottom right button press |
| button left event | "click" - single press, "double_click" - double press, "long_press" - long press | Left button press |
| button right event | "click" - single press, "double_click" - double press, "long_press" - long press | Right button press |
| button top left event | "click" - single press, "double_click" - double press, "long_press" - long press | Top left button press |
| button top right event | "click" - single press, "double_click" - double press, "long_press" - long press | Top right button press |
Zentec ventilation
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Turn ventilation on / off | "Салют, включи вентиляцию." (meaning: Salut, turn on ventilation), "Салют, выключи вентиляцию." (meaning: Salut, turn off ventilation) |
| FanSpeed | low; medium; high | Operating speed: low; medium; high. | "Салют, включи низкую скорость вентиляции." (meaning: Salut, enable low ventilation speed), "Салют, уменьши скорость вентиляции." (meaning: Salut, reduce the ventilation speed) |
| Mode | heating; ventilation | Operating mode: heating; ventilation. | "Салют, поставь режим нагрева на вентиляции." (meaning: Salut, set ventilation to heating mode), "Салют, включи режим вентиляции на вентиляции Зентек." (meaning: Salut, enable ventilation mode on Zentec ventilation) |
| TargetTemperature | 5 - 35 | Change the supply air temperature setpoint to the required value. | "Салют, теплее на четыре градуса." (meaning: Salut, four degrees warmer), "Салют, прибавь температуру на вентиляции." (meaning: Salut, increase the ventilation temperature) |
To convert values between Zentec ventilation on the bus77 gateway and the Sber Salut ventilation device, use a routine or script:
var Sber Salut = IR.GetDevice("Sber Salut"); // имя драйвера Сбер Салюта
var ModBus = IR.GetDevice("Bus77"); // имя драйвера
IR.AddListener(IR.EVENT_TAG_CHANGE, Sber Salut, function(name, value)
{
IR.Log("От Sber Salut Name: " + name + " значение:" + value);
var NameChannelSet = "";
var ResultForModBus = 0; //значение для МодБас
if(name == "Вентиляция Зентек:Mode")
{
NameChannelSet = "I-CAN-Modbus:TempControlMode (Minibox (Zentec) 1)";
switch (value)
{
case "ventilation":
ResultForModBus = 1;
ModBus.Set(NameChannelSet, ResultForModBus);
break;
case "heating":
ResultForModBus = 2;
ModBus.Set(NameChannelSet, ResultForModBus);
break;
default:
IR.Log("Команда не запрограммирована!");
}
}
if(name == "Вентиляция Зентек:FanSpeed")
{
NameChannelSet = "I-CAN-Modbus:FanSpeed (Minibox (Zentec) 1)";
switch (value)
{
case "low":
ResultForModBus = 1;
ModBus.Set(NameChannelSet, ResultForModBus);
break;
case "medium":
ResultForModBus = 3;
ModBus.Set(NameChannelSet, ResultForModBus);
break;
case "high":
ResultForModBus = 7;
ModBus.Set(NameChannelSet, ResultForModBus);
break;
default:
IR.Log("Команда не запрограммирована!");
}
}
IR.Log("От Sber Salut - Name: " + NameChannelSet + " значение:" + ResultForModBus);
});
IR.AddListener(IR.EVENT_TAG_CHANGE, ModBus, function(name, value)
{
var NameChannelSet = "";
var ResultForSber = 0; //значение для Сбер Салюта
IR.Log("От ModBus Name: " + name + " значение:" + value);
if(name == "I-CAN-Modbus:TempControlMode (Minibox (Zentec) 1)")
{
NameChannelSet = "Вентиляция Зентек:Mode";
switch (value)
{
case 1:
ResultForSber = "ventilation";
Sber Salut.Set(NameChannelSet, ResultForSber);
break;
case 2:
ResultForSber = "heating";
Sber Salut.Set(NameChannelSet, ResultForSber);
break;
default:
IR.Log("Команда не запрограммирована!");
}
}
if(name == "I-CAN-Modbus:FanSpeed (Minibox (Zentec) 1)")
{
NameChannelSet = "Вентиляция Зентек:FanSpeed";
switch (value)
{
case 1:
ResultForSber = "low";
Sber Salut.Set(NameChannelSet, ResultForSber);
break;
case 3:
ResultForSber = "medium";
Sber Salut.Set(NameChannelSet, ResultForSber);
break;
case 7:
ResultForSber = "high";
Sber Salut.Set(NameChannelSet, ResultForSber);
break;
default:
IR.Log("Команда не запрограммирована!");
}
}
IR.Log("От ModBus - Name: " + NameChannelSet + " значение:" + ResultForSber);
});
Royal Clima ventilation
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 1 / 0 | On/off state. | "Салют, включи вентиляцию." (meaning: Salut, turn on ventilation), "Салют, выключи вентиляцию." (meaning: Salut, turn off ventilation) |
| FanSpeed | quiet; low; medium; high; turbo | Operating speed: quiet; low; medium; high; turbo. | "Салют, включи низкую скорость вентиляции." (meaning: Salut, enable low ventilation speed), "Салют, уменьши скорость вентиляции." (meaning: Salut, reduce the ventilation speed) |
| CurrentTemperature | any value | Exhaust air temperature reading from the sensor | "Салют, какая температура приточного воздуха." (meaning: Salut, what is the supply air temperature) |
| TargetTemperature | 10 - 25 | Change the supply air temperature setpoint to the required value. | "Салют, теплее на четыре градуса." (meaning: Salut, four degrees warmer), "Салют, прибавь температуру на вентиляции." (meaning: Salut, increase the ventilation temperature) |
To convert supply and exhaust fan speed values between Royal Clima ventilation on the bus77 gateway and the Sber Salut ventilation device, use a routine or script.
Example project that converts supply and exhaust fan speed values using a script:
Script used in the example project:
var Sber = IR.GetDevice("Sber Salut"); // имя драйвера Сбер
var ModBus = IR.GetDevice("Bus77"); // имя драйвера
IR.AddListener(IR.EVENT_START, 0, function ()
{
IR.AddListener(IR.EVENT_TAG_CHANGE, Sber, function(name, value)
{
IR.Log("От Sber Name: " + name + " значение:" + value);
var NameChannelSetSupply = "";
var NameChannelSetExhaustFanSpeed = "";
var ResultForModBus = 0; //значение для МодБас
if(name == "Вентиляция Роял Клима:Fan Speed")
{
NameChannelSetSupply = "I-CAN-Modbus_тест:SupplyFanSpeed (Вентиляция Royal Clima 1)";
NameChannelSetExhaustFanSpeed = "I-CAN-Modbus_тест:ExhaustFanSpeed (Вентиляция Royal Clima 1)";
switch(value)
{
case "quiet":
{
ResultForModBus = 1;
ModBus.Set(NameChannelSetSupply, ResultForModBus);
IR.SetTimeout(100, function()
{
ModBus.Set(NameChannelSetExhaustFanSpeed, ResultForModBus);
IR.Log("Выставлено значение " + value + " В SupplyFanSpeed");
});
break;
}
case "low":
{
ResultForModBus = 2;
ModBus.Set(NameChannelSetSupply, ResultForModBus);
IR.SetTimeout(100, function()
{
ModBus.Set(NameChannelSetExhaustFanSpeed, ResultForModBus);
IR.Log("Выставлено значение " + value + " В SupplyFanSpeed");
});
break;
}
case "medium":
{
ResultForModBus = 5;
ModBus.Set(NameChannelSetSupply, ResultForModBus);
IR.SetTimeout(100, function()
{
ModBus.Set(NameChannelSetExhaustFanSpeed, ResultForModBus);
IR.Log("Выставлено значение " + value + " В SupplyFanSpeed");
});
break;
}
case "high":
{
ResultForModBus = 8;
ModBus.Set(NameChannelSetSupply, ResultForModBus);
IR.SetTimeout(100, function()
{
ModBus.Set(NameChannelSetExhaustFanSpeed, ResultForModBus);
IR.Log("Выставлено значение " + value + " В SupplyFanSpeed");
});
break;
}
case "turbo":
{
ResultForModBus = 10;
ModBus.Set(NameChannelSetSupply, ResultForModBus);
IR.SetTimeout(100, function()
{
ModBus.Set(NameChannelSetExhaustFanSpeed, ResultForModBus);
IR.Log("Выставлено значение " + value + " В SupplyFanSpeed");
});
break;
}
default:
{
IR.Log("Команда не запрограммирована!");
break;
}
}
}
});
IR.AddListener(IR.EVENT_TAG_CHANGE, ModBus, function(name, value)
{
var NameChannelSet = "";
var ResultForSberSalut = 0; //значение для Сбера
IR.Log("От ModBus Name: " + name + " значение:" + value);
if(name == "I-CAN-Modbus_тест:SupplyFanSpeed (Вентиляция Royal Clima 1)" ||
name == "I-CAN-Modbus_тест:ExhaustFanSpeed (Вентиляция Royal Clima 1)")
{
NameChannelSet = "Вентиляция Роял Клима:Fan Speed";
switch(value)
{
case 1:
ResultForSberSalut = "quiet";
Sber.Set(NameChannelSet, ResultForSberSalut);
break;
case 2:
ResultForSberSalut = "low";
Sber.Set(NameChannelSet, ResultForSberSalut);
break;
case 3:
ResultForSberSalut = "medium";
Sber.Set(NameChannelSet, ResultForSberSalut);
break;
case 7:
ResultForSberSalut = "high";
Sber.Set(NameChannelSet, ResultForSberSalut);
break;
case 10:
ResultForSberSalut = "turbo";
Sber.Set(NameChannelSet, ResultForSberSalut);
break;
default:
IR.Log("Команда не запрограммирована!");
}
}
IR.Log("От ModBus - Name: " + NameChannelSet + " значение:" + ResultForSberSalut);
});
});
Voice control adjusts supply and exhaust fan speeds synchronously: the supply speed equals the exhaust speed. Values are sent to the SupplyFanSpeed and ExhaustFanSpeed channels with a delay of 100 ms.
Example project that converts supply and exhaust fan speed values using routines:
VAKIO ventilation
| Feedback | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Turn ventilation on / off | "Салют, включи вентиляцию." (meaning: Salut, turn on ventilation), "Салют, выключи вентиляцию." (meaning: Salut, turn off ventilation) |
| FanSpeed | low; medium; high; turbo | Operating speed: low; medium; high; turbo. | "Салют, включи низкую скорость вентиляции." (meaning: Salut, enable low ventilation speed), "Салют, уменьши скорость вентиляции." (meaning: Salut, reduce the ventilation speed) |
| Mode | auto; eco; turbo | Operating mode: Auto; Eco (Standby); Turbo. | "Салют, поставь режим Авто." (meaning: Salut, set Auto mode), "Салют, включи режим Турбо на вентиляции Вакио." (meaning: Salut, enable Turbo mode on VAKIO ventilation) |
| TargetTemperature | 10 - 25 | Change the supply air temperature setpoint to the required value. | "Салют, теплее на четыре градуса." (meaning: Salut, four degrees warmer), "Салют, прибавь температуру на вентиляции." (meaning: Salut, increase the ventilation temperature) |
To convert values between VAKIO ventilation on the bus77 gateway and the Sber Salut ventilation device, use a routine or script:
Example project that converts supply fan speed values using a script:
Script used in the example project:
var Voice_assistant = IR.GetDevice("Sber Salut");
var Bus77 = IR.GetDevice("Bus77");
IR.AddListener(IR.EVENT_START, 0, function ()
{
IR.AddListener(IR.EVENT_TAG_CHANGE, Bus77, function(name, value)
{
switch(name)
{
case "I-CAN-Modbus:FanSpeed (Ветиляция VAKIO 1)":
if(value == 3)
{
Voice_assistant.Set("Вентиляция Вакио:FanSpeed", "high")
}
if(value == 1)
{
Voice_assistant.Set("Вентиляция Вакио:FanSpeed", "low")
}
if(value == 2)
{
Voice_assistant.Set("Вентиляция Вакио:FanSpeed", "medium")
}
if(value == 4)
{
Voice_assistant.Set("Вентиляция Вакио:FanSpeed", "turbo")
}
break;
case "I-CAN-Modbus:Mode (Ветиляция VAKIO 1)":
if(value == 1)
{
Voice_assistant.Set("Вентиляция Вакио:Mode", "auto")
}
if(value == 2)
{
Voice_assistant.Set("Вентиляция Вакио:Mode", "turbo")
}
break;
}
});
IR.AddListener(IR.EVENT_TAG_CHANGE, Voice_assistant, function(name, value)
{
switch(name)
{
case "Вентиляция Вакио:FanSpeed":
if(value == "high")
{
Bus77.Set("I-CAN-Modbus:FanSpeed (Ветиляция VAKIO 1)", 3)
}
if(value == "low")
{
Bus77.Set("I-CAN-Modbus:FanSpeed (Ветиляция VAKIO 1)", 1)
}
if(value == "medium")
{
Bus77.Set("I-CAN-Modbus:FanSpeed (Ветиляция VAKIO 1)", 2)
}
if(value == "turbo")
{
Bus77.Set("I-CAN-Modbus:FanSpeed (Ветиляция VAKIO 1)", 4)
}
break;
case "Вентиляция Вакио:Mode":
if(value == "auto")
{
Bus77.Set("I-CAN-Modbus:Mode (Ветиляция VAKIO 1)", 1)
}
if(value == "turbo")
{
Bus77.Set("I-CAN-Modbus:Mode (Ветиляция VAKIO 1)", 2)
}
break;
}
});
});
Example project that converts supply fan speed values using routines:
Universal ventilation
| Channel | Value | Description | Example voice commands |
|---|---|---|---|
| On/Off | 0 / 1 | Turn ventilation on / off | "Салют, включи вентиляцию." (meaning: Salut, turn on ventilation) "Салют, выключи вентиляцию." (meaning: Salut, turn off ventilation) |
| FanSpeed | Fan speed: low: medium: high, turbo. | Operating speed: low; medium; high, turbo. | "Салют, включи низкую скорость вентиляции." (meaning: Salut, enable low ventilation speed) "Салют, уменьши скорость вентиляции." (meaning: Salut, reduce the ventilation speed) |
| Mode | Work mode: auto, eco, turbo. | Operating mode: Auto, Eco (Standby), Turbo. | "Салют, поставь режим Авто." (meaning: Salut, set Auto mode) "Салют, включи режим Турбо на вентиляции." (meaning: Salut, enable Turbo mode on ventilation) |
| TargetTemperature | 15~30 (TURKOV Capsule/iVent/Zenit) 16~30 (GTC Syberia automation) 15~50 (ROYAL CLIMA Soffio Primo 3.0) | Change the supply air temperature setpoint to the required value. The supply air temperature range depends on the selected unit type. | "Салют, теплее на четыре градуса." (meaning: Salut, four degrees warmer) "Салют, прибавь температуру на вентиляции." (meaning: Salut, increase the ventilation temperature) |
To convert values between Universal ventilation on the bus77 gateway and the Sber Salut ventilation device, use a routine or script:
Example project that converts supply fan speed values using a script:
Script used in the example project:
var Voice_assistant = IR.GetDevice("Sber Salut"); // имя драйвера
var Bus77 = IR.GetDevice("Bus77"); // имя драйвер
IR.AddListener(IR.EVENT_START, 0, function ()
{
IR.AddListener(IR.EVENT_TAG_CHANGE, Voice_assistant, function(name, value)
{
IR.Log("От Sber Salut: " + name + " значение:" + value);
switch(name)
{
case "Универсальная вентиляция:Mode":
{
if(value == "auto")
{
Bus77.Set("Универсальная вентиляция:Mode", 1);
}
if(value == "turbo")
{
Bus77.Set("Универсальная вентиляция:Mode", 4);
}
break;
}
case "Универсальная вентиляция:FanSpeed":
{
if(value == "low")
{
Bus77.Set("I-CAN-Modbus:FanSpeed (Вентиляция 1)", 1);
}
if(value == "medium")
{
Bus77.Set("I-CAN-Modbus:FanSpeed (Вентиляция 1)", 2);
}
if(value == "high")
{
Bus77.Set("I-CAN-Modbus:FanSpeed (Вентиляция 1)", 3);
}
if(value == "turbo")
{
Bus77.Set("I-CAN-Modbus:FanSpeed (Вентиляция 1)", 4);
}
break;
}
}
});
IR.AddListener(IR.EVENT_TAG_CHANGE, Bus77, function(name, value)
{
switch(name)
{
case "I-CAN-Modbus:Mode (Вентиляция 1)":
{
IR.Log("От Bus77 Name: " + name + " значение:" + value);
if(value == 1)
{
Voice_assistant.Set("Универсальная вентиляция:Mode", "auto");
}
if(value == 4)
{
Voice_assistant.Set("Универсальная вентиляция:Mode", "turbo");
}
break;
}
case "I-CAN-Modbus:FanSpeed (Вентиляция 1)":
{
IR.Log("От Bus77 Name: " + name + " значение:" + value);
if(value == 1)
{
Voice_assistant.Set("Универсальная вентиляция:FanSpeed", "low");
}
if(value == 2)
{
Voice_assistant.Set("Универсальная вентиляция:FanSpeed", "medium");
}
if(value == 3)
{
Voice_assistant.Set("Универсальная вентиляция:FanSpeed", "high");
}
if(value == 4)
{
Voice_assistant.Set("Универсальная вентиляция:FanSpeed", "turbo");
}
break;
}
}
});
});
An example project that converts supply fan speed values using routines is similar to the implementation for VAKIO ventilation
Processing voice commands using JS
var network = IR.GetDevice("HDL Buspro Network");
var SberSalut = IR.GetDevice("Sber Salut");
IR.AddListener(IR.EVENT_TAG_CHANGE, SberSalut , function(name, value)
{
IR.Log("~~~TagChange in Sber Salut: " + name+ " - " +value)
if(name == "HVAC 1:Work Mode") {
switch(value) {
case 4: //Охлаждение
network.Set("HVAC (HDL-MAC01_331):Mode", 0)
break;
case 9: //Нагрев
network.Set("HVAC (HDL-MAC01_331):Mode", 1)
break;
case 12: //Вентиляция
network.Set("HVAC (HDL-MAC01_331):Mode", 2)
break;
case 1: //Авто
network.Set("HVAC (HDL-MAC01_331):Mode", 3)
break;
case 5: //Осушение
network.Set("HVAC (HDL-MAC01_331):Mode", 4)
break;
}
}
})
IR.AddListener(IR.EVENT_TAG_CHANGE , network, function(name,value)
{
if(name == "HVAC (HDL-MAC01_331):Mode") {
switch(value) {
case 0: //Охлаждение
SberSalut.Set("HVAC 1:Work Mode", 4);
break;
case 1: //Нагрев
SberSalut.Set("HVAC 1:Work Mode", 9);
break;
case 2: //Вентиляция
SberSalut.Set("HVAC 1:Work Mode", 12);
break;
case 3: //Авто
SberSalut.Set("HVAC 1:Work Mode", 1);
break;
case 4: //Осушение
SberSalut.Set("HVAC 1:Work Mode", 5);
break;
}
}
})
Processing voice commands using value forwarding

Forward value to creates a link between a driver command channel and feedback (regardless of driver type). Adding a reference to another tag creates a link that forwards the value when it is written to the source. To link the voice assistant driver (Sber Salut) and the equipment driver (Modbus TCP in this example), follow these steps:
-
Open the Devices tab;
-
In the feedback settings of the Sber Salut driver, configure value forwarding to the corresponding commands of the Modbus TCP driver;
-
In the feedback settings of the Modbus TCP driver, configure value forwarding to the corresponding commands of the Sber Salut driver.
If you need to convert the received value, use Script Modifier. A detailed description of value forwarding setup is available at this link
Processing voice commands using a script
The script receives voice commands from the Assistant and forwards them to physical devices. This example uses devices on a Modbus TCP network.
-
Open the script editor by clicking JS .
-
Select +, then select New Script .
-
Add the following script.
var Sber = IR.GetDevice("Sber Salut");
var Modbus = IR.GetDevice("Лампа");
//Логирование команд, отправленных драйвером Сбер Салют:
IR.AddListener(IR.EVENT_TAG_CHANGE, Sber Salut, function(name, value){
IR.Log("Sber! Device tag: " + name + " , value: " + value);
});
//Пример управления лампой:
IR.AddListener(IR.EVENT_TAG_CHANGE, Modbus, function(name, value){ //прослушиваем устройство на изменение тега.
switch (name) {
case "On/Off":
if (value == 1){ //устройство включено
Sber.Set("Лампа:On/Off", 1) // отсылаем в канал драйвера Сбер Салюта значение 1 - устройство включено.
}
if (value == 0){ //устройство выключено
Sber.Set("Лампа:On/Off", 0) // отсылаем в канал драйвера Сбер Салюта значение 0 - устройство выключено.
}
break;
case "Brightness":
Sber.Set("Лампа:Brightness", value); // отсылаем в канал драйвера Сбер Салюта значение яркости лампы.
break;
}
});
IR.AddListener(IR.EVENT_TAG_CHANGE, Sber, function(name, value){ //прослушиваем команду от драйвера Сбер Салюта.
switch (name) {
case "Лампа:On/Off": //если изменение прошли в теге лампы, начинаем выполнять действия.
if (value == 1){ //при отправке команды от Сбера на включение, в теге появится 1. Modbus.Set("On/Off", 1);//передаем команду от Сбера устройству 1 - включение.
}
if (value == 0) { //при отправке команды от Сбера на выключение, в теге появится 0. Modbus.Set("On/Off", 0);//передаем команду от Сбера устройству 0 - выключение.
}
break;
case "Лампа:Brightness":
Modbus.Set("Brightness", value); // передаём в команду от Сбера устройству значение яркости лампы.
break;
}
});
Uploading the project to iRidi Cloud and the server.
-
Sign in on the iRidi website.
-
Upload the server project and its linked Panel Project to iRidi cloud.

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

-
Start iRidi Server.
-
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 it is being configured, enter:
127.0.0.1:8888)
- Enter the default access password
2007. Click "LOGIN".

- Open Cloud / Projects .

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

Sber Salut works only through iRidi cloud, so it cannot work if the project is uploaded to the server through iRidi transfer.
Configuring Salut
-
Install the Салют (Salut) application on your mobile device and sign in;
-
On the home page, tap the plus icon Добавить (add) ;

- Select Устройства других производителей (devices from other manufacturers) ;

- Select the iRidi skill and click Привязать аккаунт (link account) ;

- The registration form on the iRidi mobile website opens. Enter the account details of the integrator or end user with whom the linked Panel Project has been shared, then click Login .

- In the drop-down list, select the product i3pro and the object that Sber will work with. Click Link .

- Next, select the driver in the drop-down list: Sber Salut .

- Assign the devices to rooms. You can then control them.

- If you modify the project, remember to upload it to iRidi cloud, then update it in iRidi Server. After that, refresh the device list in the Sber Salut application.
Testing the project
You can run the server project on the computer used to work in iRidi Studio. However, the project should be uploaded only through iRidi cloud.
Speak voice commands to SberPortal or in the Sber Salut application. The assistant sends the commands to iRidi Server, which executes them according to the configured logic.
You can use any Modbus TCP server emulator, such as the free Modbus PLC Simulator, to test the project.