Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
global actions and lighting groups
#11
See the documentation on that field value equals filter. It's not what you want to use, at least not by itself. You'd want to have first a 'is field change for'. Otherwise, every time any trigger shows up, and the field value is equal to True, it's going to run, no matter what type of trigger.
Dean Roddey
Explorans limites defectum
Reply
#12
You could also avoid the extra field read, by replacing the FldValueEquals with:

Event Fld Equals(/cqsl.fldval/val, True)

When a field trigger occurs, the actual value that triggered is sent along with the event data. If you look at the format of the triggers:

http://www.charmedquark.com/Web2/CQCDocs...TriggerFmt

The 'path' for the field value in a field change event would be "/cqsl.fldval/val", so you can just get it from there, instead of going back to the driver and reading the field again (which may have even changed before you get a chance to look at it, so using the value that comes with the event is safer all around.)

So you'd first check is a field change for the field you care about, then do the above to check the field value that caused the trigger.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sunsetter Awning with RGBW Lighting and CQC kfly 2 248 07-29-2021, 12:55 PM
Last Post: Dean Roddey
  RadioRA2 vs CQC for Lighting Scenes gReatAutomation 1 580 07-10-2020, 12:16 PM
Last Post: Dean Roddey
  Outdoor Landscape Lighting and CQC gReatAutomation 18 5,423 06-01-2020, 07:22 PM
Last Post: rhosch
  Hue Lighting Control jokermac 17 5,333 03-28-2020, 06:18 AM
Last Post: jokermac
  Global Cache GC-100 - How to add IR Code??? Deane Johnson 7 2,096 11-25-2019, 09:26 AM
Last Post: Deane Johnson
  Global-Cache-iTach-Wi-Fi-WF2IR with CQC Deane Johnson 18 7,499 12-20-2014, 06:09 PM
Last Post: znelbok
  IR code / Global Cache question ControlFreak 11 7,810 11-09-2014, 09:27 PM
Last Post: MikeA
  IP2SL Global Cache maxxsinner 7 4,179 06-08-2014, 02:16 PM
Last Post: Dean Roddey
  template actions and passing a value to znelbok 5 3,501 02-20-2014, 05:02 AM
Last Post: wuench
  [NEW] Lighting Control Poll Squintz 33 17,038 01-19-2014, 02:31 AM
Last Post: karenlee

Forum Jump:


Users browsing this thread: 1 Guest(s)