Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
One-time event detector
-
I would like to set up an event detector (high limit) but I only want it to run once.
Is there an elegant way to do that?
An example of why I want to do this: We have installed a generator for a customer and wish to be alerted when the customer fires it up for the first time, but not subsequently.
-
One way to do this would be to use a scripting data source to set a point to the value of 1 when it runs off. Have a state detector on this point for the state of 1. Once the value is set to 1 if there isn't anything to set it back to 0 then the event will never fire again.
You could do the same thing with a Meta data point which might be a bit cleaner.
-
OK thanks, that seems straightforward enough.
For the record:
I've created a high level detector on a kW measurement point that should fire when the customer connects for the first time. I also created an empty binary meta-point called 'one-time detector'.
I set up my event detector to set this meta-point to 1 when the high kW condition triggers.
On my 'one-time detector' point, I set an event handler to send an email when the point value is 1.