Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help with a simple triggered event
no, thats the on fail parmeter i believe. not the 'action' to take.
GetEvField gets the value into a variable. What you want is something like this:

TrigEvent:GetEvField(/cqsl.fldval/val, LVar:State);
If System::Equals(%(LVar:State), True)
     LocalVars::SetVariable(LVar:Level, 100);
     LocalVars::SetVariable(LVar:Level, 0);
Devices:FieldWrite(ISY.RackRoomFan_Status, %(LVar:Level));

So you get the new field value into LVar:Start. If it's True, set a variable to zero, else to one hundred, then write that value to the lighting field.

Watch the logs to see what's going on. I'm pretty sure you would have seen an error above about the second parameter to GetEvField not being a valid variable.
Dean Roddey
Explorans limites defectum
Thanks! I will try this tonight.
This worked! Thank you. And I learned alot too.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Status of Scheduled and Triggered Events gReatAutomation 4 1,490 04-21-2020, 12:58 PM
Last Post: gReatAutomation
  Simple HTTP Call to Device from CQC mjwhite214 19 7,143 01-23-2020, 03:35 PM
Last Post: simplextech
  event and subsequent countdown timer question dogman 9 5,051 05-03-2018, 06:36 PM
Last Post: dogman
  your sched/triggered/tasker/IFTTT events IVB 17 9,258 01-18-2018, 07:41 AM
Last Post: RichardU
  Idea for a different kind of event processing mechanism Dean Roddey 0 1,590 03-20-2017, 09:29 AM
Last Post: Dean Roddey
  Best Way to Handle Wait Times within a Triggered Event kblagron 9 4,872 06-25-2016, 06:03 PM
Last Post: Dean Roddey
  Thingspeak event monitor potts.mike 5 3,553 05-09-2015, 06:11 PM
Last Post: wuench
  Simple Clarification Questions Deane Johnson 5 3,160 01-03-2015, 03:20 PM
Last Post: Deane Johnson
  Overlay in an Overlay triggered by Widget Deane Johnson 4 3,770 11-09-2014, 10:29 AM
Last Post: Deane Johnson
  event scheduler ellisr63 8 4,112 04-11-2014, 02:43 PM
Last Post: ellisr63

Forum Jump:

Users browsing this thread: 1 Guest(s)