Your comments

Make a delay before sending the command. In your case, the driver probably didn't have time to initialize. Select the delay experimentally. Example in the attachment.

Ashly.irpz

Hello.

function hexToDec (hex)
{
return parseInt(hex,16);
}
var hex_value = '1b';
var result = hexToDec(hex_value);
IR.Log("result = " + result);

Hello.

You can choose one of the following options:

1) Define commands in the driver and send them using the Set method.

2) Do not define commands in the driver and send data using the Send method.


In the second case the data to be sent must be specified in the script. You can read data in the EVENT_RECEIVE_TEXT or EVENT_RECEIVE_DATA events.

Clearing the folder will delete all saved settings of the i3 pro client.

Hello.

Delete the folder C:\Users\%username%\Documents\iRidium pro documents\Client\ before starting the emulator.

mqtt_panel.irpz
mqtt_server.sirpz

Hello.

The code should look something like this:

var device = IR.GetDevice("iRidium Server");
IR.AddListener(IR.EVENT_ONLINE, device, function()
{
device.Set("MQTT.room_1", 1);
});

Code for this driver, with the following channel names (specify your channel names):

Тогда используйте EVENT_TAG_CHANGE. Можно вместо него использовать EVENT_GLOBAL_TAG_CHANGE, но это событие работает только в глобальном слушателе, а он в пределах проекта может быть только один (что не всегда удобно в разработке).

Добрый день.

Уточните, что означает включение/выключение. Если сработка реле в KNX, то можно использовать слушатель с EVENT_TAG_CHANGE. В функции со слушателем можно условием выбирать только те фидбэки, которые отвечают за включение/выключение реле.

Hello.

For EditBox, there is an EVENT_ITEM_CHANGE event that is triggered when you enter text in EditBox. Similar events are not provided for other Item types. You can use SetInterval to do GetState, but this is a suboptimal solution to the problem.