Материал из Module developer
//Creating an action with IR.ADVANCED_SELECT l_oSubDevice.AddAction("Power", true, function(in_data){
var l_nValue = parseInt(in_data, 10); //convert it to number format, if required IR.Log(l_nValue); //1 - if a user chooses"Power on"
}, undefined, null, null, { Type: IR.ADVANCED_SELECT, Name "Temperature", Parameters: [ { Caption: "Power on", // a user sees it Value: "1", //It is written in the function }, { Caption: "Power off", Value: "0", } ] }, false);
