Charmed Quark Systems, Ltd. - Support Forums and Community
user action documentation? - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: CQC Support (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=9)
+--- Thread: user action documentation? (/showthread.php?tid=9913)



user action documentation? - IVB - 08-11-2016

What doc is the user action stuff explained in? Its been years since I even looked at it, need to do some stuff with the HueSim driver, but i'll be damned if I can find the right doc. I looked in the Action guide, but its just a few paragraphs.

which will probably happen the second I hit "submit new thread" though.


user action documentation? - Dean Roddey - 08-12-2016

What gets sent is device specific, so you have to check each individual driver doc. You can also of course use the /System/Explore/Triggers (might be slightly off on the spelling there) tab to watch the live and see what is being sent.


user action documentation? - TurboSam - 08-12-2016

I really like the HueSim driver (thanks, wuench!), and while I use switch/dim for my UPB lights, I use "user actions" for a few Elk commands.

IVB, the triggered event I use is "Is This User Action," the Type is "VoiceCommand" (which I think is required by the driver), and Data is then "NAME_USED_IN_CONFIG,on,xxx" where xxx is true or false. I generally use the (true|false) RegEx with the RegEx box checked so my Data would look like this "Announcements,on,(true|false)" (without quotes). Sorry for the detail, but couldn' post a snip of the screen shot.

As an example, the action that I use for turning off (false)/on (true) non-alarm announcements in Elk (which are Tasks 15 and 16) is then:

TrigEvent::GetUserActionVals
P1=LVar:Type
P2=LVarBig Grinata

System::LogMsg
P1=Echo Test
P2=0
P3=Name = %(LVar:Type) //////// Action = %(LVarBig Grinata)
P4=Status

If System::Equals
P1=%(LVarBig Grinata)
P2=Announcements,on,false
P3=Case

Devices::FieldWrite
P1=Elk.InvokeCmd
P2=ActivateTask:15
P3=True

Else
Devices::FieldWrite
P1=Elk.InvokeCmd
P2=ActivateTask:16
P3=True

End

The System::LogMsg helped me monitor what was happening during setup.

Good luck!


user action documentation? - IVB - 08-12-2016

sweet, thanks dude! Long day today, wasn't at home at all, but i'll look at that tomorrow. Or in a few hours once I chill.