“V-ID” device event handling which generate “ID1:SID1” element or “ID2:SID2” element.

 

Example:

<item addr="524:248" LAMP01="524:24" LAMP01="524:27" name="Message processing" type="script">

V-ID/LAMP02,
LAMP01 
{
	if(opt0())
	{
		if(senderId() == 524 && senderSubId() == 24) 
		setStatus(@exciterId():32,{1, "RGB is activated"});

		if(senderId() == 524 && senderSubId() == 27)
		setStatus(@exciterId():32,{1, "Dimmer is activated"});
	}
}
</item>
	

//After compilation:


524/524:27, 524:24 
{
	if(opt0())
	{
		if(senderId() == 524 && senderSubId() == 24) 
			setStatus(@exciterId():32,{1, "RGB is activated"});

		if(senderId()== 524 && senderSubId() == 27) 
			setStatus(@exciterId():32,{1, "Dimmer is activated"});
	}
}

Result:

The messages “RGB is activated” or”Dimmer is activated” will be displayed in the interface depending on whether element LAMP01 or element LAMP02 is switched on.