Kinda weird. Should work. Brackets should not be necessary with only “and”.
ok, i didn’t know that… never learning out about pimatic
Another question: sometimes two emails are send because the PIR has a uptime duration after detection. How should I deal with that in rules?
i’m using a variable “pir-movement” and set the var active by pir’s
set active with
if PIR test is present is present and $pir-movement = "no" then set $pir-movement to "yes"
if $pir-movement = "yes" for 40 minutes then set $pir-movement to "no"
and the mail-rule
if its after 13:00 and its before 17:30 $pir-movement = "yes" then send mail to:"firstname.lastname@example.org" subject:"PIR activated!" text:"Movement detected by PIR in living room!"
so you will get max. every 40 minutes a mail between 13:00 and 17:30 on momement