Multiple Alerts Trigged From Piston


#1

I took a copy of this battery low piston I found here and everything seems great except when a device hits the threshold. When this happens, the triggered warning happens repeatedly instead of once a day.

Any ideas?


#2

I added a couple items… untested.

image


#3

I’ll give it a shot.

Isn’t this always going to be false in the “if” statement though?


#4

You’re right, I don’t know what I was thinking :slight_smile: remove the value from lastDay variable, right after the push notification in line 47 add the following…

set variable lastDay = $day


#5

Just tried it out. I think that did it. Thanks!


#6

Good deal. If it works as planned, you should only get one alert tomorrow. :smiley: