Multible devices on a single BUTTON_EVENT ?
Hi guys
I got an BUTTON_EVENT looking like this:
BUTTON_EVENT[TP1,990]
{
PUSH:
{SEND_STRING LUTRON,"'KBP, [1:5:30],17',$0D"
}
}
Very simple. TP1 is touch panel nr 1. I got 3 touch panels in the same setup - and would like the same action when the same button is pressed on either touch panel - something like this:
BUTTON_EVENT[TP1,TP2,TP3,990]
{
PUSH:
{SEND_STRING LUTRON,"'KBP, [1:5:30],17',$0D"
}
}
Can I add multible devices in a BUTTON_EVENT ?
I got an BUTTON_EVENT looking like this:
BUTTON_EVENT[TP1,990]
{
PUSH:
{SEND_STRING LUTRON,"'KBP, [1:5:30],17',$0D"
}
}
Very simple. TP1 is touch panel nr 1. I got 3 touch panels in the same setup - and would like the same action when the same button is pressed on either touch panel - something like this:
BUTTON_EVENT[TP1,TP2,TP3,990]
{
PUSH:
{SEND_STRING LUTRON,"'KBP, [1:5:30],17',$0D"
}
}
Can I add multible devices in a BUTTON_EVENT ?
Comments
DEFINE_DEVICE dvTP1 = 10001:1:0 dvTP2 = 10002:1:0 dvTP3 = 10003:1:0 DEFINE_VARIABLE DEV dvTPs[] = { dvTP1, dvTP2, dvTP3 } DEFINE_EVENT BUTTON_EVENT[dvTPs,990] { PUSH: { SEND_STRING LUTRON,"'KBP, [1:5:30],17',$0D" } }BUTTON_EVENT[TP1,990] BUTTON_EVENT[TP2,990] BUTTON_EVENT[TP3,990] { PUSH: {SEND_STRING LUTRON,"'KBP, [1:5:30],17',$0D" } }You could also create an array of touch panels and use the array for the button event:dev dvTPs[] = {TP1,TP2,TP3} . . . BUTTON_EVENT[dvTPs,990] { PUSH: {SEND_STRING LUTRON,"'KBP, [1:5:30],17',$0D" } }I can think of a couple other ways to accomplish this, but those two are that come to mind right now.Jeff