Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I would like to create a latching trigger for when the value of the field is less than or equal to another field, can that be done by just entering the field name in the entry box of the trigger?


where $(var.ChickenCoopMinTempAlert) is a variable driver integer field.

Attached Files
.png   screenshot.png (Size: 32 KB / Downloads: 7)
No, you can't do that. The comparison value has to be a literal value. If you wanted to do something like that you'd have to use a triggered or scheduled event to watch for changes in that field. If the field changes rapidly you'd want to use a scheduled event set to go, say, once every few minutes or something. If it doesn't change often, use a triggered event, and set the field to send out a trigger for any change.

Whichever you use, have the event compare the value to the variable driver field where you store the min temp, and then have another variable driver field that provides the latched value. If your even only ever sets it, then it will stay set once set, until you explictly from somewhere else clear it by writing to it.

Maybe we should think about some sort of latching field type thing in the logic server. That would be the logical (pun semi-intended) place for such a thing.
Dean Roddey
Explorans limites defectum

Possibly Related Threads…
Thread Author Replies Views Last Post
  RadioRA2 Triggers gReatAutomation 3 729 03-25-2020, 05:11 PM
Last Post: Dean Roddey
  Reconfig of Driver Causes Built In Triggers to Fire gReatAutomation 2 834 03-25-2020, 04:09 PM
Last Post: gReatAutomation
  More than 4 triggers simplextech 4 1,311 01-09-2020, 10:02 AM
Last Post: simplextech
  Triggered Event and Standard Triggers gReatAutomation 5 1,565 08-23-2019, 12:38 PM
Last Post: Dean Roddey
  Triggered event w/ multiple triggers lleo 16 6,033 06-06-2018, 06:21 PM
Last Post: lleo
  High Level Triggers and Action rules admin screen kfly 1 1,837 11-01-2017, 05:21 PM
Last Post: Dean Roddey
  are triggers reliable? indygreg 4 2,704 06-29-2017, 11:52 AM
Last Post: Dean Roddey
  COuld not update triggers znelbok 11 5,389 06-08-2017, 03:55 PM
Last Post: znelbok
  Problem with Triggers pjgregory 11 5,942 05-11-2017, 11:36 PM
Last Post: pjgregory
  Best Way to Handle Triggers that get Reset kblagron 3 1,940 03-02-2016, 02:13 PM
Last Post: znelbok

Forum Jump:

Users browsing this thread: 1 Guest(s)