I am trying to use the On Change block to send an email when a value (water level) changes more than 5 units.This tells me when the sump pump has run. The level will be at 14 inches, and the next report it will be at 4 inches.
This does seem to work, but in testing I am seeing a strange behavior when just watching it take the false path.
I am placing the Previous values in working.previousValue, so I end up with working.previousValue.time and working.previousValue.value
From reading the docs, I thought working.previousValue should update every time, regardless of the True/False result of the comparison?
I expect the data.value to be 11.2 and working.previousValue.value = 11.0.
In actuality, it seems that previousValue only updates when the condition was evaluated to be true.
I can tell this because the previousValue.time does not change on these runs (every 15 seconds or so), until the condition is met, and then previousValue DOES change.
Can anyone please clarify for me, for an OnChange node, when Previous Value is supposed to be updated?
Here is that previous Report, as well as a screenshot of my flow.