0
Answered

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

Luka Krcmar 6 years ago updated by Vladimir Ovchinnikov (expert) 6 years ago 2

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