Posts: 7,970
Threads: 554
Joined: Mar 2005
02-27-2018, 08:42 PM
(This post was last modified: 02-27-2018, 08:42 PM by IVB.)
Apologies, i'm sure this gets asked a lot but I can't find it. Is there some way for CQC to know that one of the Elk F5/F6 buttons was pressed?
The ISY can tell, and even on which keypad, so it's available via their API somehow...
Posts: 40,483
Threads: 491
Joined: Aug 2002
The driver doc page is missing info on user actions. It probably got lost in the conversion over to the device class based V2 drivers. I'll put that on the list to deal with.
But, it sends out a user action for key presses. The type is KeyPress and the value is the keypad name plus the key name. You can bring up the event trigger monitor (/System/Monitor/Event Triggers) and hit a key and see what it's send. You do have to enable all the appropriate triggers in the Elk to make it send out the notifications.
Dean Roddey
Explorans limites defectum
Posts: 7,970
Threads: 554
Joined: Mar 2005
oh right. I haven't done a user action in forever, will muddle through it. Not home until Friday this week, so will look for the 48 hours that i'm home...
Posts: 7,970
Threads: 554
Joined: Mar 2005
i'm RDP'ed into my host right now, where is the event trigger monitor? I don't see anything in the AdminINtf under /Customize/Events/Monitors/System.
Posts: 40,483
Threads: 491
Joined: Aug 2002
It's in the path I mentioned above. /Customize is for creating things, so only editing stuff would be there. It's in /System/Monitor/Event Triggers.
Dean Roddey
Explorans limites defectum
Posts: 7,970
Threads: 554
Joined: Mar 2005
(02-27-2018, 09:34 PM)Dean Roddey Wrote: The driver doc page is missing info on user actions. It probably got lost in the conversion over to the device class based V2 drivers. I'll put that on the list to deal with.
But, it sends out a user action for key presses. The type is KeyPress and the value is the keypad name plus the key name. You can bring up the event trigger monitor (/System/Monitor/Event Triggers) and hit a key and see what it's send. You do have to enable all the appropriate triggers in the Elk to make it send out the notifications.
ok so I figured out the value (evdata=01/F6). Not sure what to put into the trigger though for Device or Type. I tried "User Action For".
Posts: 40,483
Threads: 491
Joined: Aug 2002
The user action type is 'KeyPress' as I mentioned above.
Dean Roddey
Explorans limites defectum
Posts: 7,970
Threads: 554
Joined: Mar 2005
What about device, just the driver name?
Posts: 40,483
Threads: 491
Joined: Aug 2002
Dean Roddey
Explorans limites defectum
Posts: 7,970
Threads: 554
Joined: Mar 2005
how do I get access to evdata from within the action dialog box?
Since I have 2 keypads and will be trapping on 4 buttons, I assume I should use
If System.Equals(evdata, 01/F5)
thing one
If System.Equals(evdata, 01/F6)
thing two
If System.Equals(evdata, 02/F5)
thing three
If System.Equals(evdata, 02/F6)
thing four
|