Send a limited number of emails

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Franzel007
Normal user
Posts: 12
Joined: 01 Aug 2021, 16:18

Send a limited number of emails

#1 Post by Franzel007 » 01 Nov 2021, 15:19

Hihi,

I have set a rule that sends an email when the analog value is over 950 (heating on failure).

on LDR#Analog>950 do
notify 1, "Heizung auf Stoerung"
endon

Now I want to change this so that it is only executed three times and then stopped until the analog value falls below 100 again.

Do you have any ideas about how I would have to change the rule?

Regards Franzel

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Send a limited number of emails

#2 Post by TD-er » 01 Nov 2021, 17:29

You can store the count in a variable.

Code: Select all

let,1,[int#1]+1
if [int#1] < 3
...
endif
And in the situation where you want to reset this counter, call "let,1,0"

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests