Piston sending multiple SMS messages


#1

Hello,
I have a piston that watches the temperature in a greenhouse. It’s a pretty simple piston. When temperature equal to or greater than 70° turn on fan. That works just fine. It also triggers an SMS notification telling me the fan is on and that the temperature has reached 70° or greater. that works fine except it continues to send that message with every change in temperature. I really only want one notice. Any thoughts? I deleted the piston and will wait for suggestions


#2

Can you post an image of the piston?


#3

I am thinking something like this:

IF Device's temperature RISES ABOVE 69°   (a trigger instead of a condition)
Then
    Turn on Fan
    Send SMS
END IF

This one will only alert you once, at the moment the temp rises above 69°.


#4

I will give that a try. I know this is a simple task.


#5

Just be aware that if the current temp is already above 69°, the fan will not come on this new piston until the temp drops, and then rises again. (this only happens on a newly created/edited piston, and will normally run as expected)


#6

Such an easy solution. Slapping forehead right now. Works perfectly.


#7

Excellent!