Question on currentEventValue


#1

Hi guys - I’ve been using this piston for a few years with no issues. However I recently had to delete my Aeon MultiSensor 6 from ST and re-add it, and when I updated the piston afterward I may have inadvertantly changed the “with” line, which I think may have had TWO things listed, not just the “with Aeon MultiSensor 6”.

Here is the code in question:

If Aeon MultiSensor 6's humidity drops below {{humidityLevelOff - {alertThreshold}}%
then
  with Aeon MultiSensor 6
  do 
   Send SMS notification "Alert Low Humidity at {$currentEventValue}%
  end with
end if

The piston is sending me the alert when the humidity falls below the target point. However the currentEventValue it inserts into the message is the TEMPERATURE from the Aeon MultiSensor 6, not the HUMIDITY. For example when the humidity drops to 40% I get a message “Alert Low Humidity at 75%”, where 75 is the temperature from that sensor. Since the IF condition is based on Humidity, shouldn’t currentEventValue have the Humidity, not the Temperature? As stated, this was working fine for a long time until just yesterday when I inadvertently changed something.

Thank you!


#2

Create a small test piston that logs the value of your sensor’s humidity and see if it’s the right value?