0
Under review

How to play sound on panel when received a specific feedback?

Luka 3 weeks ago • updated by Vladimir Ovchinnikov 3 weeks ago 1

I've tried with this, but i don't even know if it's the right way:

IR.SetGlobalListener(IR.EVENT_GLOBAL_TAG_CHANGE, function(name, value)
{
if(value == 100){
IR.PlaySound('School_Fire_Alarm.wav',0,80);
}
});
IR.SubscribeTagChange("UI.ROOM1_Light Trigger (1) 2.Item 3");
Under review

Hello.

Look in the attached project. This example works for sure.

Sound_Modbus.irpz