#Threshold of numeric entity trigger once after going above threshold

1 messages · Page 1 of 1 (latest)

drifting pumice
#

I have a soil moisture sensor that alerts every time the sensor updates if it's below a threshold. I'd also like to trigger once when the sensor goes above the threshold to send an alert that you've basically watered the soil enough. Is there a simpler way to do this than to create a helper boolean that says we've gone under the threshold and check that boolean once over the threshold and update it and also send my notification?

torpid wedge
#

why not just a trigger that notifies you when you go above the threshold...

#

if you only want a single notification ever, then you'll need to build an automation to manage a boolean

drifting pumice
#

that's what I want but it sends an update every time the sensor changes

#

eg it's 10 right now where I have my alert and I water the plant and then it's 35, when my trigger says over 10, when soil hits 34 it triggers

#

and 33 it triggers

#

and so on until it's back under